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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 } | 353 } |
354 } | 354 } |
355 | 355 |
356 | 356 |
357 void LChunkBuilder::Abort(BailoutReason reason) { | 357 void LChunkBuilder::Abort(BailoutReason reason) { |
358 info()->set_bailout_reason(reason); | 358 info()->set_bailout_reason(reason); |
359 status_ = ABORTED; | 359 status_ = ABORTED; |
360 } | 360 } |
361 | 361 |
362 | 362 |
363 void LChunkBuilder::AddDeprecationDependency(Handle<Map> map) { | |
364 if (map->is_deprecated()) return Abort(kMapBecameDeprecated); | |
365 chunk_->AddDeprecationDependency(map); | |
366 } | |
367 | |
368 | |
369 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { | 363 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { |
370 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER, | 364 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER, |
371 Register::ToAllocationIndex(reg)); | 365 Register::ToAllocationIndex(reg)); |
372 } | 366 } |
373 | 367 |
374 | 368 |
375 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { | 369 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { |
376 return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, | 370 return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, |
377 DoubleRegister::ToAllocationIndex(reg)); | 371 DoubleRegister::ToAllocationIndex(reg)); |
378 } | 372 } |
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2249 temp1 = TempRegister(); | 2243 temp1 = TempRegister(); |
2250 } else if (instr->NeedsWriteBarrierForMap()) { | 2244 } else if (instr->NeedsWriteBarrierForMap()) { |
2251 value = UseRegister(instr->value()); | 2245 value = UseRegister(instr->value()); |
2252 temp0 = TempRegister(); | 2246 temp0 = TempRegister(); |
2253 temp1 = TempRegister(); | 2247 temp1 = TempRegister(); |
2254 } else { | 2248 } else { |
2255 value = UseRegister(instr->value()); | 2249 value = UseRegister(instr->value()); |
2256 temp0 = TempRegister(); | 2250 temp0 = TempRegister(); |
2257 } | 2251 } |
2258 | 2252 |
2259 // Add a deprecation dependency on the transition target map. | |
2260 if (instr->has_transition()) { | |
2261 AddDeprecationDependency(instr->transition_map()); | |
2262 } | |
2263 | |
2264 LStoreNamedField* result = | 2253 LStoreNamedField* result = |
2265 new(zone()) LStoreNamedField(object, value, temp0, temp1); | 2254 new(zone()) LStoreNamedField(object, value, temp0, temp1); |
2266 if (instr->field_representation().IsHeapObject() && | 2255 if (instr->field_representation().IsHeapObject() && |
2267 !instr->value()->type().IsHeapObject()) { | 2256 !instr->value()->type().IsHeapObject()) { |
2268 return AssignEnvironment(result); | 2257 return AssignEnvironment(result); |
2269 } | 2258 } |
2270 return result; | 2259 return result; |
2271 } | 2260 } |
2272 | 2261 |
2273 | 2262 |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2569 | 2558 |
2570 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2559 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
2571 LOperand* receiver = UseRegister(instr->receiver()); | 2560 LOperand* receiver = UseRegister(instr->receiver()); |
2572 LOperand* function = UseRegister(instr->function()); | 2561 LOperand* function = UseRegister(instr->function()); |
2573 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2562 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
2574 return AssignEnvironment(DefineAsRegister(result)); | 2563 return AssignEnvironment(DefineAsRegister(result)); |
2575 } | 2564 } |
2576 | 2565 |
2577 | 2566 |
2578 } } // namespace v8::internal | 2567 } } // namespace v8::internal |
OLD | NEW |