|
Implement basic code generation for arrow functions
Implements code generation for arrow functions by desugaring them into
a FunctionLiteral. For the moment, a normal FUNCTION_SCOPE is used, so
"this" and "arguments" behave as in normal functions. Implementing the
correct scoping rules is to be done later on.
BUG= v8:2700
LOG=
R=rossberg@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=22495
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+243 lines, -151 lines) |
Patch |
|
M |
src/ast.h
|
View
|
|
6 chunks |
+31 lines, -42 lines |
0 comments
|
Download
|
|
M |
src/compiler.cc
|
View
|
1
2
3
|
3 chunks |
+7 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/factory.h
|
View
|
1
2
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/factory.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
src/full-codegen.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/parser.h
|
View
|
1
2
3
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
|
M |
src/parser.cc
|
View
|
1
2
3
|
4 chunks |
+28 lines, -39 lines |
0 comments
|
Download
|
|
M |
src/preparser.h
|
View
|
1
2
3
|
7 chunks |
+46 lines, -18 lines |
0 comments
|
Download
|
|
M |
src/preparser.cc
|
View
|
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/runtime.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime.cc
|
View
|
1
2
3
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/v8natives.js
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-parsing.cc
|
View
|
1
2
3
|
6 chunks |
+41 lines, -23 lines |
0 comments
|
Download
|
|
A |
test/mjsunit/harmony/arrow-functions.js
|
View
|
1
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/generate-runtime-tests.py
|
View
|
1
2
3
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|