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

Issue 829913006: Optimize is-check to instanceof when it eliminates an interceptor (Closed)

Created:
5 years, 11 months ago by sra1
Modified:
5 years, 11 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Optimize is-check to instanceof when it eliminates an interceptor See http://dartbug.com/22016 for discussion R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=43058

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -32 lines) Patch
M pkg/compiler/lib/src/js_backend/backend.dart View 1 chunk +10 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/codegen.dart View 1 2 chunks +17 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/ssa/codegen_helpers.dart View 1 chunk +8 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/ssa/interceptor_simplifier.dart View 1 2 4 chunks +69 lines, -27 lines 0 comments Download
M pkg/compiler/lib/src/ssa/nodes.dart View 1 2 chunks +10 lines, -1 line 0 comments Download
A tests/compiler/dart2js_extra/is_check_instanceof_test.dart View 1 1 chunk +69 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
sra1
What do you think? There is a scattering of type tests that benefit in most ...
5 years, 11 months ago (2015-01-16 05:29:24 UTC) #4
floitsch
LGTM. https://codereview.chromium.org/829913006/diff/40001/pkg/compiler/lib/src/ssa/codegen.dart File pkg/compiler/lib/src/ssa/codegen.dart (right): https://codereview.chromium.org/829913006/diff/40001/pkg/compiler/lib/src/ssa/codegen.dart#newcode2314 pkg/compiler/lib/src/ssa/codegen.dart:2314: backend.emitter.constructorAccess(type.element); Please confirm that `constructorAccess` is correct. (I ...
5 years, 11 months ago (2015-01-16 14:14:34 UTC) #5
sra1
PTAL https://chromiumcodereview.appspot.com/829913006/diff/40001/pkg/compiler/lib/src/ssa/codegen.dart File pkg/compiler/lib/src/ssa/codegen.dart (right): https://chromiumcodereview.appspot.com/829913006/diff/40001/pkg/compiler/lib/src/ssa/codegen.dart#newcode2314 pkg/compiler/lib/src/ssa/codegen.dart:2314: backend.emitter.constructorAccess(type.element); On 2015/01/16 14:14:33, floitsch wrote: > Please ...
5 years, 11 months ago (2015-01-20 20:07:28 UTC) #6
floitsch
Still LGTM. https://chromiumcodereview.appspot.com/829913006/diff/60001/pkg/compiler/lib/src/ssa/interceptor_simplifier.dart File pkg/compiler/lib/src/ssa/interceptor_simplifier.dart (right): https://chromiumcodereview.appspot.com/829913006/diff/60001/pkg/compiler/lib/src/ssa/interceptor_simplifier.dart#newcode59 pkg/compiler/lib/src/ssa/interceptor_simplifier.dart:59: //return false; commented code.
5 years, 11 months ago (2015-01-20 20:15:42 UTC) #7
sra1
5 years, 11 months ago (2015-01-22 02:24:07 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:80001) manually as 43058 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698