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

Unified Diff: src/builtins.h

Issue 1359583002: [builtins] Add support for NewTarget to Execution::New. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Merge mips and mips64 ports. Created 5 years, 3 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 | « src/arm64/simulator-arm64.cc ('k') | src/execution.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.h
diff --git a/src/builtins.h b/src/builtins.h
index f2b6b1e5d1f50b1a117c37331260b90eb9209e4a..56f2db91e8e01ab385574a3ad60998147d0cf1b5 100644
--- a/src/builtins.h
+++ b/src/builtins.h
@@ -77,6 +77,9 @@ enum BuiltinExtraArguments {
V(CallFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \
V(Call, BUILTIN, UNINITIALIZED, kNoExtraICState) \
\
+ V(ConstructFunction, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ V(Construct, BUILTIN, UNINITIALIZED, kNoExtraICState) \
+ \
V(PushArgsAndCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \
\
V(InOptimizationQueue, BUILTIN, UNINITIALIZED, kNoExtraICState) \
@@ -276,6 +279,11 @@ class Builtins {
// ES6 section 7.3.12 Call(F, V, [argumentsList])
static void Generate_Call(MacroAssembler* masm);
+ // ES6 section 9.2.2 [[Construct]] ( argumentsList, newTarget)
+ static void Generate_ConstructFunction(MacroAssembler* masm);
+ // ES6 section 7.3.13 Construct (F, [argumentsList], [newTarget])
+ static void Generate_Construct(MacroAssembler* masm);
+
static void Generate_PushArgsAndCall(MacroAssembler* masm);
static void Generate_FunctionCall(MacroAssembler* masm);
« no previous file with comments | « src/arm64/simulator-arm64.cc ('k') | src/execution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698