Revert r20476.
Reason for revert: crashes arm64.debug cctest Fatal error in ../src/hydrogen-instructions.h, line 2968 CHECK(value->IsCheckHeapObject()) failed Fixed environment assignment for LCheckNonSmi. TBR=svenpanne@chromium.org BUG= Review URL: https://codereview.chromium.org/223873003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20484 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
48b8a545c4
commit
5a57e644d7
@ -1963,9 +1963,7 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) {
|
||||
|
||||
LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) {
|
||||
LOperand* value = UseRegisterAtStart(instr->value());
|
||||
LInstruction* result = new(zone()) LCheckNonSmi(value);
|
||||
if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result);
|
||||
return result;
|
||||
return AssignEnvironment(new(zone()) LCheckNonSmi(value));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1171,9 +1171,7 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) {
|
||||
|
||||
LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) {
|
||||
LOperand* value = UseRegisterAtStart(instr->value());
|
||||
LInstruction* result = new(zone()) LCheckNonSmi(value);
|
||||
if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result);
|
||||
return result;
|
||||
return AssignEnvironment(new(zone()) LCheckValue(value));
|
||||
}
|
||||
|
||||
|
||||
|
@ -2007,9 +2007,7 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) {
|
||||
|
||||
LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) {
|
||||
LOperand* value = UseAtStart(instr->value());
|
||||
LInstruction* result = new(zone()) LCheckNonSmi(value);
|
||||
if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result);
|
||||
return result;
|
||||
return AssignEnvironment(new(zone()) LCheckNonSmi(value));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1925,9 +1925,7 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) {
|
||||
|
||||
LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) {
|
||||
LOperand* value = UseRegisterAtStart(instr->value());
|
||||
LInstruction* result = new(zone()) LCheckNonSmi(value);
|
||||
if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result);
|
||||
return result;
|
||||
return AssignEnvironment(new(zone()) LCheckNonSmi(value));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user