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

Issue 140943002: Fix logic error in assert in IsUndeclaredGlobal() (Closed)

Created:
6 years, 11 months ago by mvstanton
Modified:
6 years, 11 months ago
Reviewers:
Toon Verwaest
CC:
v8-dev
Visibility:
Public.

Description

Fix logic error in assert in IsUndeclaredGlobal() Recent changes in IC logic meant that CallStubs no longer use the Contextual bit. IsUndeclaredGlobal() needed to adjust for that. In fact, now the CL has morphed to remove the notion of storing contextual state in the IC at all, it just becomes some extra ic state of the load ic. This took some adjustment in harmony code to use the global receiver for certain stores. Now it's clearer that only LoadICs actually record any information about contextual or not. R=verwaest@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=18660

Patch Set 1 #

Patch Set 2 : A few more fixes #

Total comments: 4

Patch Set 3 : Fixed commented out assert. #

Total comments: 4

Patch Set 4 : Addressed comments and removed HStoreGlobalGeneric #

Total comments: 2

Patch Set 5 : Ports and addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -356 lines) Patch
M src/arm/ic-arm.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/arm/lithium-arm.h View 1 2 3 4 2 chunks +0 lines, -23 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 4 2 chunks +1 line, -15 lines 0 comments Download
M src/code-stubs.h View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M src/disassembler.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/full-codegen.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/hydrogen.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 2 chunks +0 lines, -47 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M src/ia32/ic-ia32.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 3 2 chunks +1 line, -15 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 2 3 2 chunks +0 lines, -23 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 3 1 chunk +0 lines, -10 lines 0 comments Download
M src/ic.h View 1 2 3 4 9 chunks +42 lines, -49 lines 0 comments Download
M src/ic.cc View 1 2 3 4 7 chunks +9 lines, -12 lines 0 comments Download
M src/mips/ic-mips.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/mips/lithium-codegen-mips.cc View 1 2 3 4 2 chunks +1 line, -14 lines 0 comments Download
M src/mips/lithium-mips.h View 1 2 3 4 2 chunks +0 lines, -23 lines 0 comments Download
M src/mips/lithium-mips.cc View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download
M src/objects.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/objects.cc View 1 1 chunk +0 lines, -11 lines 0 comments Download
M src/promise.js View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/proxy.js View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/stub-cache.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M src/stub-cache.cc View 1 2 3 3 chunks +4 lines, -9 lines 0 comments Download
M src/x64/ic-x64.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 4 2 chunks +1 line, -15 lines 0 comments Download
M src/x64/lithium-x64.h View 1 2 3 4 2 chunks +0 lines, -23 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 3 4 1 chunk +0 lines, -10 lines 0 comments Download
A + test/mjsunit/regress/regress-is-contextual.js View 1 chunk +10 lines, -13 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
mvstanton
Hi Toon, Here is the fix for the issue introduced by r18594 (https://code.google.com/p/v8/source/detail?r=18594). The fix ...
6 years, 11 months ago (2014-01-17 09:47:51 UTC) #1
Toon Verwaest
https://codereview.chromium.org/140943002/diff/30001/src/code-stubs.h File src/code-stubs.h (right): https://codereview.chromium.org/140943002/diff/30001/src/code-stubs.h#newcode1091 src/code-stubs.h:1091: STATIC_ASSERT(LoadIC::Contextual::kShift == ContextualBits::kShift); This should be removed as well. ...
6 years, 11 months ago (2014-01-17 10:05:55 UTC) #2
mvstanton
Comments addressed, thx, ptal and I'll make some ports. --Michael https://codereview.chromium.org/140943002/diff/30001/src/code-stubs.h File src/code-stubs.h (right): https://codereview.chromium.org/140943002/diff/30001/src/code-stubs.h#newcode1091 ...
6 years, 11 months ago (2014-01-17 10:44:33 UTC) #3
Toon Verwaest
lgtm with nit https://codereview.chromium.org/140943002/diff/160001/src/ic.h File src/ic.h (right): https://codereview.chromium.org/140943002/diff/160001/src/ic.h#newcode118 src/ic.h:118: bool IsLoadStub() const { You can ...
6 years, 11 months ago (2014-01-17 10:53:45 UTC) #4
mvstanton
thx! ports are boilerplate. Will commit. https://codereview.chromium.org/140943002/diff/160001/src/ic.h File src/ic.h (right): https://codereview.chromium.org/140943002/diff/160001/src/ic.h#newcode118 src/ic.h:118: bool IsLoadStub() const ...
6 years, 11 months ago (2014-01-17 11:08:12 UTC) #5
mvstanton
6 years, 11 months ago (2014-01-17 11:08:42 UTC) #6
Message was sent while issue was closed.
Committed patchset #5 manually as r18660 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698