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

Issue 66693002: Do not add values to HGraph in Lithium. (Closed)

Created:
7 years, 1 month ago by ulan
Modified:
7 years, 1 month ago
Reviewers:
Toon Verwaest
CC:
v8-dev
Visibility:
Public.

Description

Do not add values to HGraph in Lithium. Lithium uses indexes after the maximium value ID in the HGraph as indexes of virtual registers and assumes that the maximum value ID does not change. The IsStandardConstant and GetConstantXX functions could add constants to HGraph, which aliased virtual registers with real values. This could confuse the register allocator to think that a value in a virtual register is tagged and to incorrectly set it in the pointer map. BUG=298269 TEST=mjsunit/regress/regress-298269.js R=verwaest@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=17599

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -41 lines) Patch
M src/arm/lithium-arm.h View 2 chunks +8 lines, -0 lines 0 comments Download
M src/arm/lithium-arm.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/hydrogen.h View 4 chunks +13 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 3 chunks +25 lines, -9 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/ia32/lithium-ia32.h View 2 chunks +8 lines, -0 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M src/lithium.cc View 1 chunk +1 line, -0 lines 1 comment Download
M src/mips/lithium-codegen-mips.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/mips/lithium-mips.h View 2 chunks +8 lines, -0 lines 0 comments Download
M src/mips/lithium-mips.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/x64/lithium-x64.h View 2 chunks +8 lines, -0 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 chunk +6 lines, -4 lines 0 comments Download
A + test/mjsunit/regress/regress-298269.js View 1 chunk +15 lines, -16 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
ulan
Please take a look.
7 years, 1 month ago (2013-11-08 13:03:46 UTC) #1
Toon Verwaest
lgtm with nit https://chromiumcodereview.appspot.com/66693002/diff/1/src/lithium.cc File src/lithium.cc (right): https://chromiumcodereview.appspot.com/66693002/diff/1/src/lithium.cc#newcode426 src/lithium.cc:426: graph->DisallowAddingNewValues(); I'd swap the 2 lines ...
7 years, 1 month ago (2013-11-08 13:32:20 UTC) #2
ulan
7 years, 1 month ago (2013-11-08 14:16:48 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r17599 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698