| 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 5504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5515 | 5515 |
| 5516 Label use_cache, call_runtime; | 5516 Label use_cache, call_runtime; |
| 5517 __ CheckEnumCache(&call_runtime); | 5517 __ CheckEnumCache(&call_runtime); |
| 5518 | 5518 |
| 5519 __ movp(rax, FieldOperand(rax, HeapObject::kMapOffset)); | 5519 __ movp(rax, FieldOperand(rax, HeapObject::kMapOffset)); |
| 5520 __ jmp(&use_cache, Label::kNear); | 5520 __ jmp(&use_cache, Label::kNear); |
| 5521 | 5521 |
| 5522 // Get the set of properties to enumerate. | 5522 // Get the set of properties to enumerate. |
| 5523 __ bind(&call_runtime); | 5523 __ bind(&call_runtime); |
| 5524 __ Push(rax); | 5524 __ Push(rax); |
| 5525 CallRuntime(Runtime::kGetPropertyNamesFast, instr); | 5525 CallRuntime(Runtime::kForInEnumerate, instr); |
| 5526 __ bind(&use_cache); | 5526 __ bind(&use_cache); |
| 5527 } | 5527 } |
| 5528 | 5528 |
| 5529 | 5529 |
| 5530 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { | 5530 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { |
| 5531 Register map = ToRegister(instr->map()); | 5531 Register map = ToRegister(instr->map()); |
| 5532 Register result = ToRegister(instr->result()); | 5532 Register result = ToRegister(instr->result()); |
| 5533 Label load_cache, done; | 5533 Label load_cache, done; |
| 5534 __ EnumLength(result, map); | 5534 __ EnumLength(result, map); |
| 5535 __ Cmp(result, Smi::FromInt(0)); | 5535 __ Cmp(result, Smi::FromInt(0)); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5642 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5642 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5643 } | 5643 } |
| 5644 | 5644 |
| 5645 | 5645 |
| 5646 #undef __ | 5646 #undef __ |
| 5647 | 5647 |
| 5648 } // namespace internal | 5648 } // namespace internal |
| 5649 } // namespace v8 | 5649 } // namespace v8 |
| 5650 | 5650 |
| 5651 #endif // V8_TARGET_ARCH_X64 | 5651 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |