-
Notifications
You must be signed in to change notification settings - Fork 74
Enable onForeignFunction and proxy-specific extensions to the ABI. #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
…to extending Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Signed-off-by: John Plevyak <jplevyak@gmail.com>
} | ||
WasmResult copyTo(WasmBase *wasm, size_t start, size_t length, uint64_t ptr_ptr, | ||
uint64_t size_ptr) const override; | ||
WasmResult copyFrom(size_t /* start */, size_t /* length */, string_view /* data */) override { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that this is independent from Envoy, we should probably stop using string_view
to represent bytes, and use span
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll open an issue for that. I presume that absl::Span is a suitable substitute. #28
ContextBase *parent = parent_context_; | ||
while (parent != previous) { | ||
previous = parent; | ||
parent = parent->parent_context_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that will result in nullptr
dereference when (accidentally) called on the root context itself. Maybe add a check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parent_context_ is never nullptr. The list is terminated by parent_context_ == this. This is enforced by the constructors for Context.
Signed-off-by: John Plevyak jplevyak@gmail.com