|
[builtins] Add support for NewTarget to Execution::New.
Introduce new builtins Construct and ConstructFunction (in line
with the Call and CallFunction builtins that we already have) as
proper bottleneck for Construct and [[Construct]] on JSFunctions.
Use these builtins to support passing NewTarget from C++ to
JavaScript land.
Long-term we want the CallConstructStub to be used for
gathering feedback on entry to construction chain (i.e. the
initial new Foo), and use the Construct builtins to do the
actual work inside the construction chain (i.e. calling into
super and stuff).
MIPS and MIPS64 ports contributed by akos.palfi@imgtec.com.
R=jarin@chromium.org
BUG= v8:4430
LOG=n
Committed: https://crrev.com/1dfac69f1fb5ad8e2db2d5be591c094def55d451
Cr-Commit-Position: refs/heads/master@{#30857}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+706 lines, -427 lines) |
Patch |
 |
M |
src/arm/builtins-arm.cc
|
View
|
|
7 chunks |
+88 lines, -16 lines |
0 comments
|
Download
|
 |
M |
src/arm/code-stubs-arm.cc
|
View
|
1
|
2 chunks |
+11 lines, -36 lines |
0 comments
|
Download
|
 |
M |
src/arm64/builtins-arm64.cc
|
View
|
|
8 chunks |
+88 lines, -15 lines |
0 comments
|
Download
|
 |
M |
src/arm64/code-stubs-arm64.cc
|
View
|
1
|
2 chunks |
+12 lines, -39 lines |
0 comments
|
Download
|
 |
M |
src/arm64/macro-assembler-arm64.h
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
src/arm64/macro-assembler-arm64.cc
|
View
|
|
1 chunk |
+12 lines, -5 lines |
0 comments
|
Download
|
 |
M |
src/arm64/simulator-arm64.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/arm64/simulator-arm64.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
src/builtins.h
|
View
|
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/execution.h
|
View
|
|
1 chunk |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
M |
src/execution.cc
|
View
|
|
4 chunks |
+17 lines, -11 lines |
0 comments
|
Download
|
 |
M |
src/full-codegen/arm/full-codegen-arm.cc
|
View
|
|
3 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
 |
M |
src/full-codegen/arm64/full-codegen-arm64.cc
|
View
|
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
src/full-codegen/ia32/full-codegen-ia32.cc
|
View
|
|
2 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
src/full-codegen/mips/full-codegen-mips.cc
|
View
|
1
|
3 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
 |
M |
src/full-codegen/mips64/full-codegen-mips64.cc
|
View
|
1
|
3 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
 |
M |
src/full-codegen/x64/full-codegen-x64.cc
|
View
|
|
2 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
src/globals.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/ia32/builtins-ia32.cc
|
View
|
|
5 chunks |
+87 lines, -18 lines |
0 comments
|
Download
|
 |
M |
src/ia32/code-stubs-ia32.cc
|
View
|
1
|
2 chunks |
+14 lines, -41 lines |
0 comments
|
Download
|
 |
M |
src/ia32/frames-ia32.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
src/mips/builtins-mips.cc
|
View
|
1
|
7 chunks |
+86 lines, -14 lines |
0 comments
|
Download
|
 |
M |
src/mips/code-stubs-mips.cc
|
View
|
1
|
2 chunks |
+11 lines, -35 lines |
0 comments
|
Download
|
 |
M |
src/mips64/builtins-mips64.cc
|
View
|
1
|
7 chunks |
+85 lines, -14 lines |
0 comments
|
Download
|
 |
M |
src/mips64/code-stubs-mips64.cc
|
View
|
1
|
2 chunks |
+12 lines, -35 lines |
0 comments
|
Download
|
 |
M |
src/runtime/runtime-classes.cc
|
View
|
|
1 chunk |
+3 lines, -15 lines |
0 comments
|
Download
|
 |
M |
src/x64/builtins-x64.cc
|
View
|
|
12 chunks |
+111 lines, -29 lines |
0 comments
|
Download
|
 |
M |
src/x64/code-stubs-x64.cc
|
View
|
1
|
2 chunks |
+14 lines, -40 lines |
0 comments
|
Download
|
Total messages: 14 (7 generated)
|