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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "lithium-allocator-inl.h" | 7 #include "lithium-allocator-inl.h" |
8 #include "arm64/lithium-arm64.h" | 8 #include "arm64/lithium-arm64.h" |
9 #include "arm64/lithium-codegen-arm64.h" | 9 #include "arm64/lithium-codegen-arm64.h" |
10 #include "hydrogen-osr.h" | 10 #include "hydrogen-osr.h" |
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 info()->MarkAsDeferredCalling(); | 1209 info()->MarkAsDeferredCalling(); |
1210 result = AssignPointerMap(result); | 1210 result = AssignPointerMap(result); |
1211 } | 1211 } |
1212 return result; | 1212 return result; |
1213 } | 1213 } |
1214 | 1214 |
1215 | 1215 |
1216 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { | 1216 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { |
1217 LOperand* value = UseRegisterAtStart(instr->value()); | 1217 LOperand* value = UseRegisterAtStart(instr->value()); |
1218 LInstruction* result = new(zone()) LCheckNonSmi(value); | 1218 LInstruction* result = new(zone()) LCheckNonSmi(value); |
1219 if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result); | 1219 if (!instr->value()->type().IsHeapObject()) { |
| 1220 result = AssignEnvironment(result); |
| 1221 } |
1220 return result; | 1222 return result; |
1221 } | 1223 } |
1222 | 1224 |
1223 | 1225 |
1224 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 1226 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
1225 LOperand* value = UseRegisterAtStart(instr->value()); | 1227 LOperand* value = UseRegisterAtStart(instr->value()); |
1226 return AssignEnvironment(new(zone()) LCheckSmi(value)); | 1228 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
1227 } | 1229 } |
1228 | 1230 |
1229 | 1231 |
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2715 | 2717 |
2716 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2718 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
2717 LOperand* receiver = UseRegister(instr->receiver()); | 2719 LOperand* receiver = UseRegister(instr->receiver()); |
2718 LOperand* function = UseRegister(instr->function()); | 2720 LOperand* function = UseRegister(instr->function()); |
2719 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2721 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
2720 return AssignEnvironment(DefineAsRegister(result)); | 2722 return AssignEnvironment(DefineAsRegister(result)); |
2721 } | 2723 } |
2722 | 2724 |
2723 | 2725 |
2724 } } // namespace v8::internal | 2726 } } // namespace v8::internal |
OLD | NEW |