Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 5475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5486 | 5486 |
| 5487 | 5487 |
| 5488 void LCodeGen::DoTruncateDoubleToIntOrSmi(LTruncateDoubleToIntOrSmi* instr) { | 5488 void LCodeGen::DoTruncateDoubleToIntOrSmi(LTruncateDoubleToIntOrSmi* instr) { |
| 5489 DoubleRegister input = ToDoubleRegister(instr->value()); | 5489 DoubleRegister input = ToDoubleRegister(instr->value()); |
| 5490 Register result = ToRegister(instr->result()); | 5490 Register result = ToRegister(instr->result()); |
| 5491 __ ECMA262ToInt32(result, input, | 5491 __ ECMA262ToInt32(result, input, |
| 5492 ToRegister(instr->temp1()), | 5492 ToRegister(instr->temp1()), |
| 5493 ToRegister(instr->temp2()), | 5493 ToRegister(instr->temp2()), |
| 5494 instr->tag_result() | 5494 instr->tag_result() |
| 5495 ? MacroAssembler::SMI | 5495 ? MacroAssembler::SMI |
| 5496 : MacroAssembler::INT32_IN_W); | 5496 : MacroAssembler::INT32); |
|
jbramley
2014/02/11 12:58:50
Our convention for Lithium instructions is to leav
| |
| 5497 } | 5497 } |
| 5498 | 5498 |
| 5499 | 5499 |
| 5500 void LCodeGen::DoTypeof(LTypeof* instr) { | 5500 void LCodeGen::DoTypeof(LTypeof* instr) { |
| 5501 Register input = ToRegister(instr->value()); | 5501 Register input = ToRegister(instr->value()); |
| 5502 __ Push(input); | 5502 __ Push(input); |
| 5503 CallRuntime(Runtime::kTypeof, 1, instr); | 5503 CallRuntime(Runtime::kTypeof, 1, instr); |
| 5504 } | 5504 } |
| 5505 | 5505 |
| 5506 | 5506 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5694 __ Bind(&out_of_object); | 5694 __ Bind(&out_of_object); |
| 5695 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5695 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
| 5696 // Index is equal to negated out of object property index plus 1. | 5696 // Index is equal to negated out of object property index plus 1. |
| 5697 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5697 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
| 5698 __ Ldr(result, FieldMemOperand(result, | 5698 __ Ldr(result, FieldMemOperand(result, |
| 5699 FixedArray::kHeaderSize - kPointerSize)); | 5699 FixedArray::kHeaderSize - kPointerSize)); |
| 5700 __ Bind(&done); | 5700 __ Bind(&done); |
| 5701 } | 5701 } |
| 5702 | 5702 |
| 5703 } } // namespace v8::internal | 5703 } } // namespace v8::internal |
| OLD | NEW |