|
|
Alternative fix for .call invocation of closures.
This also covers "closurization" of the .call method.
This relies on the fact that f.call === f if f is a closure.
This means that adding a simple getter to _FunctionImpl that
returns this is enough. No need for a separate dispatch.
This CL reverts the previous fix for issue 12602 (modulo the
additional tests).
BUG=dartbug.com/17473, dartbug.com/12602
R=iposva@google.com
Committed: https://code.google.com/p/dart/source/detail?r=33736
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+11 lines, -88 lines) |
Patch |
 |
M |
runtime/lib/function.dart
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/code_generator.cc
|
View
|
|
1 chunk |
+5 lines, -12 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/debugger.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
runtime/vm/object.h
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/object.cc
|
View
|
|
6 chunks |
+4 lines, -15 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/parser.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/parser.cc
|
View
|
|
2 chunks |
+0 lines, -51 lines |
0 comments
|
Download
|
 |
M |
runtime/vm/raw_object.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
tests/language/language.status
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|