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

Issue 861093002: Support intercepted getters, setters and index operations. (Closed)

Created:
5 years, 11 months ago by karlklose
Modified:
5 years, 10 months ago
Reviewers:
asgerf
CC:
reviews_dartlang.org, Kevin Millikin (Google)
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Support intercepted getters, setters and index operations. R=asgerf@google.com Committed: https://code.google.com/p/dart/source/detail?r=43471

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Add an abstraction for calling convention. #

Patch Set 4 : Delete empty line. #

Patch Set 5 : #

Patch Set 6 : Only reject instance members that need interceptors and disable a test that we do not support yet. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -64 lines) Patch
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart View 1 2 3 4 5 1 chunk +47 lines, -14 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/codegen.dart View 1 2 3 4 2 chunks +31 lines, -10 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/glue.dart View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/js_tree_builder.dart View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/task.dart View 1 2 3 4 5 2 chunks +10 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/unsugar.dart View 1 2 3 4 2 chunks +6 lines, -8 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart View 4 chunks +5 lines, -5 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart View 1 chunk +40 lines, -1 line 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_supercall_test.dart View 1 2 3 4 5 2 chunks +26 lines, -24 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
karlklose
5 years, 11 months ago (2015-01-21 09:20:42 UTC) #1
asgerf
https://codereview.chromium.org/861093002/diff/1/pkg/compiler/lib/src/js_backend/codegen/glue.dart File pkg/compiler/lib/src/js_backend/codegen/glue.dart (right): https://codereview.chromium.org/861093002/diff/1/pkg/compiler/lib/src/js_backend/codegen/glue.dart#newcode32 pkg/compiler/lib/src/js_backend/codegen/glue.dart:32: } It seems to me the JsCallSelector is never ...
5 years, 11 months ago (2015-01-21 10:21:06 UTC) #2
asgerf
LGTM https://codereview.chromium.org/861093002/diff/20001/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart File pkg/compiler/lib/src/js_backend/codegen/unsugar.dart (right): https://codereview.chromium.org/861093002/diff/20001/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart#newcode52 pkg/compiler/lib/src/js_backend/codegen/unsugar.dart:52: // TODO(karlklose): should we rewrite all selectors? I'm ...
5 years, 11 months ago (2015-01-21 14:03:39 UTC) #3
karlklose
Thanks for the review, Asger! After merging with your changes to unsugar, I saw that ...
5 years, 11 months ago (2015-01-22 07:25:23 UTC) #4
asgerf
So we don't update the parameter list to ir.FunctionDefinition, but instead use a calling convention ...
5 years, 11 months ago (2015-01-22 11:29:54 UTC) #5
karlklose
On 2015/01/22 11:29:54, asgerf wrote: > So we don't update the parameter list to ir.FunctionDefinition, ...
5 years, 11 months ago (2015-01-22 12:08:08 UTC) #6
asgerf
On 2015/01/22 12:08:08, karlklose wrote: > On 2015/01/22 11:29:54, asgerf wrote: > > So we ...
5 years, 11 months ago (2015-01-22 16:39:08 UTC) #7
karlklose
On 2015/01/22 16:39:08, asgerf wrote: > On 2015/01/22 12:08:08, karlklose wrote: > > On 2015/01/22 ...
5 years, 10 months ago (2015-02-03 09:57:14 UTC) #8
karlklose
This CL does not support compiling functions that need interceptor support, since it was not ...
5 years, 10 months ago (2015-02-03 11:57:02 UTC) #9
asgerf
OK, LGTM then.
5 years, 10 months ago (2015-02-03 12:56:32 UTC) #10
karlklose
Small update: one of the tests overwrites an intercepted operator, so I had to disable ...
5 years, 10 months ago (2015-02-04 13:18:40 UTC) #11
karlklose
5 years, 10 months ago (2015-02-04 15:31:37 UTC) #12
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as 43471 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698