Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: src/builtins/builtins.h

Issue 2203353002: [api] Stay in C++ when constructing an API-function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: set the receiver to the_hole for construct calls Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/builtins/builtins-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins.h
diff --git a/src/builtins/builtins.h b/src/builtins/builtins.h
index 2231632e67397f61fc9b0bb87ba440eb6d9bbf60..3a57b15f70d0499fe3f5c6b11c11b41872bb2696 100644
--- a/src/builtins/builtins.h
+++ b/src/builtins/builtins.h
@@ -596,8 +596,9 @@ class Builtins {
bool is_initialized() const { return initialized_; }
MUST_USE_RESULT static MaybeHandle<Object> InvokeApiFunction(
- Isolate* isolate, Handle<HeapObject> function, Handle<Object> receiver,
- int argc, Handle<Object> args[]);
+ Isolate* isolate, bool is_construct, Handle<HeapObject> function,
+ Handle<Object> receiver, int argc, Handle<Object> args[],
+ Handle<HeapObject> new_target);
enum ExitFrameType { EXIT, BUILTIN_EXIT };
« no previous file with comments | « no previous file | src/builtins/builtins-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698