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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" | 7 #include "src/crankshaft/x64/lithium-codegen-x64.h" |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 5605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5616 GenerateOsrPrologue(); | 5616 GenerateOsrPrologue(); |
5617 } | 5617 } |
5618 | 5618 |
5619 | 5619 |
5620 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { | 5620 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { |
5621 DCHECK(ToRegister(instr->context()).is(rsi)); | 5621 DCHECK(ToRegister(instr->context()).is(rsi)); |
5622 | 5622 |
5623 Condition cc = masm()->CheckSmi(rax); | 5623 Condition cc = masm()->CheckSmi(rax); |
5624 DeoptimizeIf(cc, instr, Deoptimizer::kSmi); | 5624 DeoptimizeIf(cc, instr, Deoptimizer::kSmi); |
5625 | 5625 |
5626 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); | 5626 STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
5627 __ CmpObjectType(rax, LAST_JS_PROXY_TYPE, rcx); | 5627 __ CmpObjectType(rax, JS_PROXY_TYPE, rcx); |
5628 DeoptimizeIf(below_equal, instr, Deoptimizer::kWrongInstanceType); | 5628 DeoptimizeIf(below_equal, instr, Deoptimizer::kWrongInstanceType); |
Toon Verwaest
2015/12/03 11:48:41
equal
| |
5629 | 5629 |
5630 Label use_cache, call_runtime; | 5630 Label use_cache, call_runtime; |
5631 Register null_value = rdi; | 5631 Register null_value = rdi; |
5632 __ LoadRoot(null_value, Heap::kNullValueRootIndex); | 5632 __ LoadRoot(null_value, Heap::kNullValueRootIndex); |
5633 __ CheckEnumCache(null_value, &call_runtime); | 5633 __ CheckEnumCache(null_value, &call_runtime); |
5634 | 5634 |
5635 __ movp(rax, FieldOperand(rax, HeapObject::kMapOffset)); | 5635 __ movp(rax, FieldOperand(rax, HeapObject::kMapOffset)); |
5636 __ jmp(&use_cache, Label::kNear); | 5636 __ jmp(&use_cache, Label::kNear); |
5637 | 5637 |
5638 // Get the set of properties to enumerate. | 5638 // Get the set of properties to enumerate. |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5762 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5762 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5763 } | 5763 } |
5764 | 5764 |
5765 | 5765 |
5766 #undef __ | 5766 #undef __ |
5767 | 5767 |
5768 } // namespace internal | 5768 } // namespace internal |
5769 } // namespace v8 | 5769 } // namespace v8 |
5770 | 5770 |
5771 #endif // V8_TARGET_ARCH_X64 | 5771 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |