| OLD | NEW | 
|     1 // Copyright 2013 the V8 project authors. All rights reserved. |     1 // Copyright 2013 the V8 project authors. All rights reserved. | 
|     2 // Use of this source code is governed by a BSD-style license that can be |     2 // Use of this source code is governed by a BSD-style license that can be | 
|     3 // found in the LICENSE file. |     3 // found in the LICENSE file. | 
|     4  |     4  | 
|     5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |     5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" | 
|     6  |     6  | 
|     7 #include "src/arm64/frames-arm64.h" |     7 #include "src/arm64/frames-arm64.h" | 
|     8 #include "src/base/bits.h" |     8 #include "src/base/bits.h" | 
|     9 #include "src/code-factory.h" |     9 #include "src/code-factory.h" | 
|    10 #include "src/code-stubs.h" |    10 #include "src/code-stubs.h" | 
| (...skipping 3530 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3541   __ B(deferred->allocation_entry()); |  3541   __ B(deferred->allocation_entry()); | 
|  3542  |  3542  | 
|  3543   __ Bind(deferred->exit()); |  3543   __ Bind(deferred->exit()); | 
|  3544   __ Str(result_bits, FieldMemOperand(result, HeapNumber::kValueOffset)); |  3544   __ Str(result_bits, FieldMemOperand(result, HeapNumber::kValueOffset)); | 
|  3545  |  3545  | 
|  3546   __ Bind(&done); |  3546   __ Bind(&done); | 
|  3547 } |  3547 } | 
|  3548  |  3548  | 
|  3549  |  3549  | 
|  3550 void LCodeGen::DoMathExp(LMathExp* instr) { |  3550 void LCodeGen::DoMathExp(LMathExp* instr) { | 
|  3551   DoubleRegister input = ToDoubleRegister(instr->value()); |  3551   DCHECK(instr->IsMarkedAsCall()); | 
|  3552   DoubleRegister result = ToDoubleRegister(instr->result()); |  3552   DCHECK(ToDoubleRegister(instr->value()).is(d0)); | 
|  3553   DoubleRegister double_temp1 = ToDoubleRegister(instr->double_temp1()); |  3553   __ CallCFunction(ExternalReference::ieee754_exp_function(isolate()), 0, 1); | 
|  3554   DoubleRegister double_temp2 = double_scratch(); |  3554   DCHECK(ToDoubleRegister(instr->result()).Is(d0)); | 
|  3555   Register temp1 = ToRegister(instr->temp1()); |  | 
|  3556   Register temp2 = ToRegister(instr->temp2()); |  | 
|  3557   Register temp3 = ToRegister(instr->temp3()); |  | 
|  3558  |  | 
|  3559   MathExpGenerator::EmitMathExp(masm(), input, result, |  | 
|  3560                                 double_temp1, double_temp2, |  | 
|  3561                                 temp1, temp2, temp3); |  | 
|  3562 } |  3555 } | 
|  3563  |  3556  | 
|  3564  |  3557  | 
|  3565 void LCodeGen::DoMathFloorD(LMathFloorD* instr) { |  3558 void LCodeGen::DoMathFloorD(LMathFloorD* instr) { | 
|  3566   DoubleRegister input = ToDoubleRegister(instr->value()); |  3559   DoubleRegister input = ToDoubleRegister(instr->value()); | 
|  3567   DoubleRegister result = ToDoubleRegister(instr->result()); |  3560   DoubleRegister result = ToDoubleRegister(instr->result()); | 
|  3568  |  3561  | 
|  3569   __ Frintm(result, input); |  3562   __ Frintm(result, input); | 
|  3570 } |  3563 } | 
|  3571  |  3564  | 
| (...skipping 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  5739   // Index is equal to negated out of object property index plus 1. |  5732   // Index is equal to negated out of object property index plus 1. | 
|  5740   __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |  5733   __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 
|  5741   __ Ldr(result, FieldMemOperand(result, |  5734   __ Ldr(result, FieldMemOperand(result, | 
|  5742                                  FixedArray::kHeaderSize - kPointerSize)); |  5735                                  FixedArray::kHeaderSize - kPointerSize)); | 
|  5743   __ Bind(deferred->exit()); |  5736   __ Bind(deferred->exit()); | 
|  5744   __ Bind(&done); |  5737   __ Bind(&done); | 
|  5745 } |  5738 } | 
|  5746  |  5739  | 
|  5747 }  // namespace internal |  5740 }  // namespace internal | 
|  5748 }  // namespace v8 |  5741 }  // namespace v8 | 
| OLD | NEW |