|
Small performance improvement: avoid looking up builtin types too much by tracking them, particularly ones in coreimpl like NumImplementation.
I also did a few refactorings:
* Tried to tame the "nativeName" stuff to keep the code paths from forking too much
* Removed the bad code duplication between needsConversion and convertTo in Value (they had gone out of sync again!)
* Simplified the function wrapping code & made it clear it's about isolates. The code still checks for DOM, but conceptually it's part of our isolate impl. If we had a different way to tag native function types (e.g. perhaps the "native" keyword, if it's allowed in that position?) we could remove the DOM check there.
Committed: https://code.google.com/p/dart/source/detail?r=3057
Total comments: 1
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+282 lines, -291 lines) |
Patch |
|
M |
client/dom/dom_frog.dart
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
D |
client/dom/dom_frog.js
|
View
|
1
2
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
client/dom/frog/dom_frog.dart
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
D |
client/dom/frog/dom_frog.js
|
View
|
1
2
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
frog/corejs.dart
|
View
|
1
|
3 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
frog/element.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
frog/gen.dart
|
View
|
|
14 chunks |
+18 lines, -20 lines |
0 comments
|
Download
|
|
M |
frog/library.dart
|
View
|
1
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
frog/member.dart
|
View
|
|
7 chunks |
+16 lines, -21 lines |
2 comments
|
Download
|
|
M |
frog/minfrog
|
View
|
1
|
42 chunks |
+129 lines, -128 lines |
0 comments
|
Download
|
|
M |
frog/type.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
frog/value.dart
|
View
|
1
|
8 chunks |
+55 lines, -68 lines |
0 comments
|
Download
|
|
M |
frog/var_member.dart
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
frog/world.dart
|
View
|
1
|
7 chunks |
+36 lines, -21 lines |
0 comments
|
Download
|
|
M |
utils/apidoc/html_diff.dart
|
View
|
|
5 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|