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

Issue 21317004: Fix HType handling for HConstant with external references. (Closed)

Created:
7 years, 4 months ago by Benedikt Meurer
Modified:
7 years, 4 months ago
Reviewers:
titzer
CC:
v8-dev
Visibility:
Public.

Description

Fix HType handling for HConstant with external references. We cannot use set_type() with HType::None() in the HConstant constructor, since set_type() asserts that the new type is a subtype of the previous one, but HType::None() is not a subtype of HType::Tagged() which is the initial type set by the HValue constructor. This patch adds an optional type parameter to the HValue, HInstruction and HTemplateInstruction constructors. R=titzer@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15980

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -10 lines) Patch
M src/hydrogen-instructions.h View 3 chunks +12 lines, -8 lines 0 comments Download
M src/hydrogen-instructions.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Benedikt Meurer
Hey Ben, This is the HConstant with HType::None() change we discussed a few minutes ago. ...
7 years, 4 months ago (2013-07-31 09:22:30 UTC) #1
titzer
LGTM Note that I just added some more set_type() calls in constructors. We can use ...
7 years, 4 months ago (2013-07-31 09:32:36 UTC) #2
Benedikt Meurer
On 2013/07/31 09:32:36, titzer wrote: > LGTM > > Note that I just added some ...
7 years, 4 months ago (2013-07-31 09:37:59 UTC) #3
Benedikt Meurer
7 years, 4 months ago (2013-07-31 09:38:44 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 manually as r15980 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698