Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Issue 11348316: Move the handling of operator[] into the new interceptors. (Closed)

Created:
8 years ago by ngeoffray
Modified:
8 years ago
Reviewers:
sra, sra1, kasperl
CC:
reviews_dartlang.org, ahe, karlklose, Johnni Winther, erikcorry
Visibility:
Public.

Description

Move the handling of operator[] into the new interceptors. Committed: https://code.google.com/p/dart/source/detail?r=16032

Patch Set 1 : #

Total comments: 7

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -94 lines) Patch
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_array.dart View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/js_string.dart View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/native_handler.dart View 1 2 3 4 5 3 chunks +16 lines, -26 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/bailout.dart View 1 2 3 4 5 2 chunks +8 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 2 3 4 5 3 chunks +17 lines, -10 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/codegen.dart View 1 2 3 4 5 1 chunk +4 lines, -8 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/nodes.dart View 1 2 3 4 5 3 chunks +36 lines, -31 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/optimize.dart View 1 2 3 4 5 7 chunks +8 lines, -15 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/tracer.dart View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ngeoffray
8 years ago (2012-11-30 08:51:07 UTC) #1
kasperl
LGTM. https://codereview.chromium.org/11348316/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart File sdk/lib/_internal/compiler/implementation/ssa/bailout.dart (right): https://codereview.chromium.org/11348316/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart#newcode149 sdk/lib/_internal/compiler/implementation/ssa/bailout.dart:149: var temp = instruction; How about factoring this ...
8 years ago (2012-11-30 09:23:03 UTC) #2
ngeoffray
Thanks Kasper. https://codereview.chromium.org/11348316/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart File sdk/lib/_internal/compiler/implementation/ssa/bailout.dart (right): https://codereview.chromium.org/11348316/diff/2001/sdk/lib/_internal/compiler/implementation/ssa/bailout.dart#newcode149 sdk/lib/_internal/compiler/implementation/ssa/bailout.dart:149: var temp = instruction; On 2012/11/30 09:23:04, ...
8 years ago (2012-11-30 13:18:13 UTC) #3
ngeoffray
+sra Stephen, could you take a look at the native_handler.dart changes? It looks like the ...
8 years ago (2012-12-05 04:58:00 UTC) #4
ngeoffray
@Stephen: ping
8 years ago (2012-12-10 13:23:31 UTC) #5
sra1
https://codereview.chromium.org/11348316/diff/16001/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart File sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (right): https://codereview.chromium.org/11348316/diff/16001/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart#newcode853 sdk/lib/_internal/compiler/implementation/js_backend/backend.dart:853: // [:ioore:] and [:iae:] helpers directly. backtick, e.g. `ioore`, ...
8 years ago (2012-12-10 23:42:21 UTC) #6
ngeoffray
Thanks Stephen, PTAL https://codereview.chromium.org/11348316/diff/16001/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart File sdk/lib/_internal/compiler/implementation/js_backend/backend.dart (right): https://codereview.chromium.org/11348316/diff/16001/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart#newcode853 sdk/lib/_internal/compiler/implementation/js_backend/backend.dart:853: // [:ioore:] and [:iae:] helpers directly. ...
8 years ago (2012-12-11 09:30:15 UTC) #7
sra1
lgtm. Unless this fixes an M2 issue, it might be prudent to submit after M2. ...
8 years ago (2012-12-12 04:28:02 UTC) #8
ngeoffray
8 years ago (2012-12-12 11:54:56 UTC) #9
I went ahead and submitted. This CL has been standing here for just too long :-)

https://codereview.chromium.org/11348316/diff/22001/sdk/lib/_internal/compile...
File sdk/lib/_internal/compiler/implementation/native_handler.dart (right):

https://codereview.chromium.org/11348316/diff/22001/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/native_handler.dart:117: if
(classElement.isNative() || classElement == compiler.listClass) {
On 2012/12/12 04:28:02, sra1 wrote:
> And compile.stringClass?
> 
> It would be better to add the class(es) between lines 105/106 than check every
> class for ==.

Done. I also added string, int, double and bool as native classes.

Powered by Google App Engine
This is Rietveld 408576698