| 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 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1162 | 1162 |
| 1163 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 1163 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
| 1164 LOperand* value = UseRegisterAtStart(instr->value()); | 1164 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1165 LOperand* temp = TempRegister(); | 1165 LOperand* temp = TempRegister(); |
| 1166 LInstruction* result = new(zone()) LCheckInstanceType(value, temp); | 1166 LInstruction* result = new(zone()) LCheckInstanceType(value, temp); |
| 1167 return AssignEnvironment(result); | 1167 return AssignEnvironment(result); |
| 1168 } | 1168 } |
| 1169 | 1169 |
| 1170 | 1170 |
| 1171 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { | 1171 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { |
| 1172 LOperand* value = NULL; | 1172 if (instr->IsStabilityCheck()) return new(zone()) LCheckMaps; |
| 1173 LOperand* temp = NULL; | 1173 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1174 if (!instr->CanOmitMapChecks()) { | 1174 LOperand* temp = TempRegister(); |
| 1175 value = UseRegisterAtStart(instr->value()); | 1175 LInstruction* result = AssignEnvironment(new(zone()) LCheckMaps(value, temp)); |
| 1176 temp = TempRegister(); | 1176 if (instr->HasMigrationTarget()) { |
| 1177 if (instr->has_migration_target()) info()->MarkAsDeferredCalling(); | 1177 info()->MarkAsDeferredCalling(); |
| 1178 } | 1178 result = AssignPointerMap(result); |
| 1179 LInstruction* result = new(zone()) LCheckMaps(value, temp); | |
| 1180 if (!instr->CanOmitMapChecks()) { | |
| 1181 result = AssignEnvironment(result); | |
| 1182 if (instr->has_migration_target()) result = AssignPointerMap(result); | |
| 1183 } | 1179 } |
| 1184 return result; | 1180 return result; |
| 1185 } | 1181 } |
| 1186 | 1182 |
| 1187 | 1183 |
| 1188 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { | 1184 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { |
| 1189 LOperand* value = UseRegisterAtStart(instr->value()); | 1185 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1190 LInstruction* result = new(zone()) LCheckNonSmi(value); | 1186 LInstruction* result = new(zone()) LCheckNonSmi(value); |
| 1191 if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result); | 1187 if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result); |
| 1192 return result; | 1188 return result; |
| (...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2558 | 2554 |
| 2559 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2555 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2560 LOperand* receiver = UseRegister(instr->receiver()); | 2556 LOperand* receiver = UseRegister(instr->receiver()); |
| 2561 LOperand* function = UseRegister(instr->function()); | 2557 LOperand* function = UseRegister(instr->function()); |
| 2562 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2558 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
| 2563 return AssignEnvironment(DefineAsRegister(result)); | 2559 return AssignEnvironment(DefineAsRegister(result)); |
| 2564 } | 2560 } |
| 2565 | 2561 |
| 2566 | 2562 |
| 2567 } } // namespace v8::internal | 2563 } } // namespace v8::internal |
| OLD | NEW |