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

Issue 232853002: Inline immutable property loads (Closed)

Created:
6 years, 8 months ago by p.antonov
Modified:
6 years, 8 months ago
Reviewers:
Toon Verwaest
CC:
v8-dev
Base URL:
https://github.com/v8/v8.git@master
Visibility:
Public.

Description

Inline immutable property loads When a non-configurable, non-writable field is read from a constant holder, the load is eliminated and replaced with the direct value of the field BUG= R=verwaest@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=20690

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M src/hydrogen.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
p.antonov
6 years, 8 months ago (2014-04-10 10:06:03 UTC) #1
Toon Verwaest
https://codereview.chromium.org/232853002/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/232853002/diff/1/src/hydrogen.cc#newcode5354 src/hydrogen.cc:5354: Handle<Object> value(isolate()->heap()->the_hole_value(), isolate()); Why do you pre-declare value to ...
6 years, 8 months ago (2014-04-10 11:58:31 UTC) #2
p.antonov
No reason, it's a silly mistake :) > The safest solution for now is probably ...
6 years, 8 months ago (2014-04-10 14:32:25 UTC) #3
p.antonov
> Btw, in BuildMonomorphicAccess, is it possible for the first check > (info->GetJSObjectFieldAccess) to "steal" ...
6 years, 8 months ago (2014-04-10 14:38:55 UTC) #4
Toon Verwaest
Yes you are right. Even though string lengths are read-only, it would be blocked by ...
6 years, 8 months ago (2014-04-10 15:29:34 UTC) #5
p.antonov
> For the other part: if you really need to pollute the entire system with ...
6 years, 8 months ago (2014-04-10 15:45:04 UTC) #6
Toon Verwaest
Especially since we already omit map-checks for "stable maps" (which Math eg probably is), I ...
6 years, 8 months ago (2014-04-10 16:34:20 UTC) #7
Toon Verwaest
So yeah, it is. Which means the map check will be gone anyway. d8> %DebugPrint(Math) ...
6 years, 8 months ago (2014-04-10 16:37:31 UTC) #8
p.antonov
https://codereview.chromium.org/232853002/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/232853002/diff/1/src/hydrogen.cc#newcode5354 src/hydrogen.cc:5354: Handle<Object> value(isolate()->heap()->the_hole_value(), isolate()); On 2014/04/10 11:58:31, Toon Verwaest wrote: ...
6 years, 8 months ago (2014-04-11 12:09:37 UTC) #9
Toon Verwaest
lgtm, thanks
6 years, 8 months ago (2014-04-11 12:50:39 UTC) #10
Toon Verwaest
6 years, 8 months ago (2014-04-11 13:07:16 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 manually as r20690 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698