|
Allow implicit 'close your eyes' of native methods. This will hopefully fix issue 3466.
- when resolving the native method which has been closurized account for the 'this' argument in the count of arguments.
- explicitly copy the 'this' parameter in the closure context as the first parameter before calling the native function. This is done by piggy backing on the CopyParameters code used for functions with optional parameters.
Committed: https://code.google.com/p/dart/source/detail?r=8816
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+615 lines, -234 lines) |
Patch |
 |
M |
vm/ast.h
|
View
|
1
2
|
3 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
vm/code_generator_ia32.cc
|
View
|
1
2
|
5 chunks |
+93 lines, -73 lines |
0 comments
|
Download
|
 |
M |
vm/code_generator_test.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
vm/code_patcher_ia32_test.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
vm/code_patcher_x64_test.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
vm/dart_api_impl_test.cc
|
View
|
1
2
|
1 chunk |
+285 lines, -0 lines |
0 comments
|
Download
|
 |
M |
vm/flow_graph_compiler_ia32.cc
|
View
|
1
2
|
3 chunks |
+87 lines, -72 lines |
0 comments
|
Download
|
 |
M |
vm/flow_graph_compiler_x64.cc
|
View
|
1
2
|
4 chunks |
+88 lines, -72 lines |
0 comments
|
Download
|
 |
M |
vm/intermediate_language.h
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
vm/intermediate_language_ia32.cc
|
View
|
1
2
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
vm/intermediate_language_x64.cc
|
View
|
1
2
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
vm/object.h
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
vm/object.cc
|
View
|
1
2
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
vm/parser.cc
|
View
|
1
2
|
4 chunks |
+16 lines, -5 lines |
0 comments
|
Download
|
 |
M |
vm/raw_object.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
vm/raw_object_snapshot.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|