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

Issue 1407413014: [turbofan] Pseudo-inline instanceof (Closed)

Created:
5 years, 1 month ago by sigurds
Modified:
5 years, 1 month ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Pseudo-inline 'instanceof' This patch extends the typed lowering with a specialized version of 'instanceof' that is used if the "class", i.e. the constructor function, is a known constant. Unittests check that replacement occurs as intended. Functional correctness is ensured by extensive unit tests covering instanceof already in the testsuite. TESTS=unittests/JSTypedLoweringTest.{JSInstanceOfSpecializationWithSmiCheck,JSInstanceOfSpecializationWithoutSmiCheck,JSInstanceOfNoSpecialization} Committed: https://crrev.com/45787501e5b9d0e225210ef9d2837b8ca6d8d73d Cr-Commit-Position: refs/heads/master@{#31916}

Patch Set 1 : 1st draft #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Pre-dinner try #

Total comments: 10

Patch Set 7 : Reviewer's comments #

Total comments: 10

Patch Set 8 : #

Patch Set 9 : #

Total comments: 2

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -7 lines) Patch
M src/compiler/access-builder.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/access-builder.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M src/compiler/js-typed-lowering.h View 1 2 3 4 5 6 7 8 9 5 chunks +18 lines, -1 line 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 2 3 4 5 6 5 chunks +126 lines, -2 lines 0 comments Download
M src/compiler/pipeline.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -1 line 0 comments Download
M test/cctest/compiler/test-js-typed-lowering.cc View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -1 line 0 comments Download
M test/unittests/compiler/js-typed-lowering-unittest.cc View 1 2 3 4 5 6 7 4 chunks +70 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
sigurds
Please take a look :)
5 years, 1 month ago (2015-11-09 17:32:32 UTC) #7
Benedikt Meurer
First round of comments. https://codereview.chromium.org/1407413014/diff/100001/src/compiler/js-typed-lowering.cc File src/compiler/js-typed-lowering.cc (right): https://codereview.chromium.org/1407413014/diff/100001/src/compiler/js-typed-lowering.cc#newcode1081 src/compiler/js-typed-lowering.cc:1081: this->dependencies()->AssumeInitialMapCantChange(initial_map); This is only valid ...
5 years, 1 month ago (2015-11-09 19:24:39 UTC) #8
Michael Starzinger
https://codereview.chromium.org/1407413014/diff/100001/src/compiler/js-typed-lowering.h File src/compiler/js-typed-lowering.h (right): https://codereview.chromium.org/1407413014/diff/100001/src/compiler/js-typed-lowering.h#newcode8 src/compiler/js-typed-lowering.h:8: #include "src/compilation-dependencies.h" nit: The class can be forward-declared, no ...
5 years, 1 month ago (2015-11-09 19:59:59 UTC) #9
sigurds
Thanks for the comments, please take a look again https://codereview.chromium.org/1407413014/diff/100001/src/compiler/js-typed-lowering.cc File src/compiler/js-typed-lowering.cc (right): https://codereview.chromium.org/1407413014/diff/100001/src/compiler/js-typed-lowering.cc#newcode1081 src/compiler/js-typed-lowering.cc:1081: ...
5 years, 1 month ago (2015-11-10 09:39:45 UTC) #10
Michael Starzinger
Looking good, just some final nits about the tests. https://codereview.chromium.org/1407413014/diff/120001/test/cctest/compiler/test-js-typed-lowering.cc File test/cctest/compiler/test-js-typed-lowering.cc (right): https://codereview.chromium.org/1407413014/diff/120001/test/cctest/compiler/test-js-typed-lowering.cc#newcode17 test/cctest/compiler/test-js-typed-lowering.cc:17: ...
5 years, 1 month ago (2015-11-10 09:48:48 UTC) #11
Michael Starzinger
https://codereview.chromium.org/1407413014/diff/120001/test/unittests/compiler/js-typed-lowering-unittest.cc File test/unittests/compiler/js-typed-lowering-unittest.cc (right): https://codereview.chromium.org/1407413014/diff/120001/test/unittests/compiler/js-typed-lowering-unittest.cc#newcode1182 test/unittests/compiler/js-typed-lowering-unittest.cc:1182: TEST_F(JSTypedLoweringTest, InstanceOfSpecialization) { nit: s/InstanceOfSpecialization/JSInstanceOf/ here as well.
5 years, 1 month ago (2015-11-10 09:49:49 UTC) #12
sigurds
PTALA :) https://codereview.chromium.org/1407413014/diff/120001/test/cctest/compiler/test-js-typed-lowering.cc File test/cctest/compiler/test-js-typed-lowering.cc (right): https://codereview.chromium.org/1407413014/diff/120001/test/cctest/compiler/test-js-typed-lowering.cc#newcode17 test/cctest/compiler/test-js-typed-lowering.cc:17: #include "test/cctest/compiler/function-tester.h" On 2015/11/10 09:48:48, Michael Starzinger ...
5 years, 1 month ago (2015-11-10 10:01:24 UTC) #13
Michael Starzinger
LGTM from my end.
5 years, 1 month ago (2015-11-10 10:23:04 UTC) #14
Benedikt Meurer
LGTM when comment is addressed. https://codereview.chromium.org/1407413014/diff/160001/src/compiler/js-typed-lowering.h File src/compiler/js-typed-lowering.h (right): https://codereview.chromium.org/1407413014/diff/160001/src/compiler/js-typed-lowering.h#newcode113 src/compiler/js-typed-lowering.h:113: Please add DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) here ...
5 years, 1 month ago (2015-11-10 11:29:06 UTC) #15
sigurds
Running try jobs once, then using CQ to submit. https://codereview.chromium.org/1407413014/diff/160001/src/compiler/js-typed-lowering.h File src/compiler/js-typed-lowering.h (right): https://codereview.chromium.org/1407413014/diff/160001/src/compiler/js-typed-lowering.h#newcode113 src/compiler/js-typed-lowering.h:113: ...
5 years, 1 month ago (2015-11-10 12:03:12 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407413014/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407413014/180001
5 years, 1 month ago (2015-11-10 12:07:49 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 1 month ago (2015-11-10 12:19:41 UTC) #24
commit-bot: I haz the power
5 years, 1 month ago (2015-11-10 12:20:23 UTC) #25
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/45787501e5b9d0e225210ef9d2837b8ca6d8d73d
Cr-Commit-Position: refs/heads/master@{#31916}

Powered by Google App Engine
This is Rietveld 408576698