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 5531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5542 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); | 5542 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); |
5543 | 5543 |
5544 GenerateOsrPrologue(); | 5544 GenerateOsrPrologue(); |
5545 } | 5545 } |
5546 | 5546 |
5547 | 5547 |
5548 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { | 5548 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { |
5549 __ SmiTst(r0); | 5549 __ SmiTst(r0); |
5550 DeoptimizeIf(eq, instr, Deoptimizer::kSmi); | 5550 DeoptimizeIf(eq, instr, Deoptimizer::kSmi); |
5551 | 5551 |
5552 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); | 5552 STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
5553 __ CompareObjectType(r0, r1, r1, LAST_JS_PROXY_TYPE); | 5553 __ CompareObjectType(r0, r1, r1, JS_PROXY_TYPE); |
5554 DeoptimizeIf(le, instr, Deoptimizer::kWrongInstanceType); | 5554 DeoptimizeIf(le, instr, Deoptimizer::kWrongInstanceType); |
Toon Verwaest
2015/12/03 11:48:41
le->eq
Camillo Bruni
2015/12/03 12:18:26
we check for all types so we need the less-equals.
| |
5555 | 5555 |
5556 Label use_cache, call_runtime; | 5556 Label use_cache, call_runtime; |
5557 Register null_value = r5; | 5557 Register null_value = r5; |
5558 __ LoadRoot(null_value, Heap::kNullValueRootIndex); | 5558 __ LoadRoot(null_value, Heap::kNullValueRootIndex); |
5559 __ CheckEnumCache(null_value, &call_runtime); | 5559 __ CheckEnumCache(null_value, &call_runtime); |
5560 | 5560 |
5561 __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset)); | 5561 __ ldr(r0, FieldMemOperand(r0, HeapObject::kMapOffset)); |
5562 __ b(&use_cache); | 5562 __ b(&use_cache); |
5563 | 5563 |
5564 // Get the set of properties to enumerate. | 5564 // Get the set of properties to enumerate. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5694 __ push(ToRegister(instr->function())); | 5694 __ push(ToRegister(instr->function())); |
5695 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5695 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5696 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5696 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5697 } | 5697 } |
5698 | 5698 |
5699 | 5699 |
5700 #undef __ | 5700 #undef __ |
5701 | 5701 |
5702 } // namespace internal | 5702 } // namespace internal |
5703 } // namespace v8 | 5703 } // namespace v8 |
OLD | NEW |