| 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-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
| 6 | 6 |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
| (...skipping 5534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5545 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); | 5545 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); |
| 5546 | 5546 |
| 5547 GenerateOsrPrologue(); | 5547 GenerateOsrPrologue(); |
| 5548 } | 5548 } |
| 5549 | 5549 |
| 5550 | 5550 |
| 5551 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { | 5551 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { |
| 5552 __ SmiTst(r0); | 5552 __ SmiTst(r0); |
| 5553 DeoptimizeIf(eq, instr, Deoptimizer::kSmi); | 5553 DeoptimizeIf(eq, instr, Deoptimizer::kSmi); |
| 5554 | 5554 |
| 5555 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); | 5555 STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
| 5556 __ CompareObjectType(r0, r1, r1, LAST_JS_PROXY_TYPE); | 5556 __ CompareObjectType(r0, r1, r1, JS_PROXY_TYPE); |
| 5557 DeoptimizeIf(le, instr, Deoptimizer::kWrongInstanceType); | 5557 DeoptimizeIf(le, instr, Deoptimizer::kWrongInstanceType); |
| 5558 | 5558 |
| 5559 Label use_cache, call_runtime; | 5559 Label use_cache, call_runtime; |
| 5560 Register null_value = r5; | 5560 Register null_value = r5; |
| 5561 __ LoadRoot(null_value, Heap::kNullValueRootIndex); | 5561 __ LoadRoot(null_value, Heap::kNullValueRootIndex); |
| 5562 __ CheckEnumCache(null_value, &call_runtime); | 5562 __ CheckEnumCache(null_value, &call_runtime); |
| 5563 | 5563 |
| 5564 __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset)); | 5564 __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset)); |
| 5565 __ b(&use_cache); | 5565 __ b(&use_cache); |
| 5566 | 5566 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5697 __ push(ToRegister(instr->function())); | 5697 __ push(ToRegister(instr->function())); |
| 5698 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5698 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5699 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5699 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5700 } | 5700 } |
| 5701 | 5701 |
| 5702 | 5702 |
| 5703 #undef __ | 5703 #undef __ |
| 5704 | 5704 |
| 5705 } // namespace internal | 5705 } // namespace internal |
| 5706 } // namespace v8 | 5706 } // namespace v8 |
| OLD | NEW |