| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/arm/lithium-arm.h" | 5 #include "src/crankshaft/arm/lithium-arm.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
| 10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
| (...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { | 1131 LInstruction* LChunkBuilder::DoMathClz32(HUnaryMathOperation* instr) { |
| 1132 LOperand* input = UseRegisterAtStart(instr->value()); | 1132 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1133 LMathClz32* result = new(zone()) LMathClz32(input); | 1133 LMathClz32* result = new(zone()) LMathClz32(input); |
| 1134 return DefineAsRegister(result); | 1134 return DefineAsRegister(result); |
| 1135 } | 1135 } |
| 1136 | 1136 |
| 1137 | 1137 |
| 1138 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { | 1138 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { |
| 1139 DCHECK(instr->representation().IsDouble()); | 1139 DCHECK(instr->representation().IsDouble()); |
| 1140 DCHECK(instr->value()->representation().IsDouble()); | 1140 DCHECK(instr->value()->representation().IsDouble()); |
| 1141 LOperand* input = UseFixedDouble(instr->value(), d0); | 1141 LOperand* input = UseRegister(instr->value()); |
| 1142 return MarkAsCall(DefineFixedDouble(new (zone()) LMathExp(input), d0), instr); | 1142 LOperand* temp1 = TempRegister(); |
| 1143 LOperand* temp2 = TempRegister(); |
| 1144 LOperand* double_temp = TempDoubleRegister(); |
| 1145 LMathExp* result = new(zone()) LMathExp(input, double_temp, temp1, temp2); |
| 1146 return DefineAsRegister(result); |
| 1143 } | 1147 } |
| 1144 | 1148 |
| 1145 | 1149 |
| 1146 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { | 1150 LInstruction* LChunkBuilder::DoMathSqrt(HUnaryMathOperation* instr) { |
| 1147 LOperand* input = UseRegisterAtStart(instr->value()); | 1151 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1148 LMathSqrt* result = new(zone()) LMathSqrt(input); | 1152 LMathSqrt* result = new(zone()) LMathSqrt(input); |
| 1149 return DefineAsRegister(result); | 1153 return DefineAsRegister(result); |
| 1150 } | 1154 } |
| 1151 | 1155 |
| 1152 | 1156 |
| (...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2496 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2500 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2497 LOperand* object = UseRegister(instr->object()); | 2501 LOperand* object = UseRegister(instr->object()); |
| 2498 LOperand* index = UseTempRegister(instr->index()); | 2502 LOperand* index = UseTempRegister(instr->index()); |
| 2499 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2503 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2500 LInstruction* result = DefineSameAsFirst(load); | 2504 LInstruction* result = DefineSameAsFirst(load); |
| 2501 return AssignPointerMap(result); | 2505 return AssignPointerMap(result); |
| 2502 } | 2506 } |
| 2503 | 2507 |
| 2504 } // namespace internal | 2508 } // namespace internal |
| 2505 } // namespace v8 | 2509 } // namespace v8 |
| OLD | NEW |