Commit 8eb39f2a authored by palfia@homejinni.com's avatar palfia@homejinni.com

MIPS: Remove the HValueOf instruction.

Port r18905 (88f14cd3)

BUG=
R=plind44@gmail.com

Review URL: https://codereview.chromium.org/130803012

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18930 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent f8151982
......@@ -1651,27 +1651,6 @@ void LCodeGen::DoMapEnumLength(LMapEnumLength* instr) {
}
void LCodeGen::DoValueOf(LValueOf* instr) {
Register input = ToRegister(instr->value());
Register result = ToRegister(instr->result());
Register map = ToRegister(instr->temp());
Label done;
if (!instr->hydrogen()->value()->IsHeapObject()) {
// If the object is a smi return the object.
__ Move(result, input);
__ JumpIfSmi(input, &done);
}
// If the object is not a value type, return the object.
__ GetObjectType(input, map, map);
__ Branch(&done, ne, map, Operand(JS_VALUE_TYPE));
__ lw(result, FieldMemOperand(input, JSValue::kValueOffset));
__ bind(&done);
}
void LCodeGen::DoDateField(LDateField* instr) {
Register object = ToRegister(instr->date());
Register result = ToRegister(instr->result());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment