| 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 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 6 | 6 |
| 7 #include "src/crankshaft/x87/lithium-codegen-x87.h" | 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 5874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5885 | 5885 |
| 5886 Label use_cache, call_runtime; | 5886 Label use_cache, call_runtime; |
| 5887 __ CheckEnumCache(&call_runtime); | 5887 __ CheckEnumCache(&call_runtime); |
| 5888 | 5888 |
| 5889 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); | 5889 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); |
| 5890 __ jmp(&use_cache, Label::kNear); | 5890 __ jmp(&use_cache, Label::kNear); |
| 5891 | 5891 |
| 5892 // Get the set of properties to enumerate. | 5892 // Get the set of properties to enumerate. |
| 5893 __ bind(&call_runtime); | 5893 __ bind(&call_runtime); |
| 5894 __ push(eax); | 5894 __ push(eax); |
| 5895 CallRuntime(Runtime::kGetPropertyNamesFast, instr); | 5895 CallRuntime(Runtime::kForInEnumerate, instr); |
| 5896 __ bind(&use_cache); | 5896 __ bind(&use_cache); |
| 5897 } | 5897 } |
| 5898 | 5898 |
| 5899 | 5899 |
| 5900 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { | 5900 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { |
| 5901 Register map = ToRegister(instr->map()); | 5901 Register map = ToRegister(instr->map()); |
| 5902 Register result = ToRegister(instr->result()); | 5902 Register result = ToRegister(instr->result()); |
| 5903 Label load_cache, done; | 5903 Label load_cache, done; |
| 5904 __ EnumLength(result, map); | 5904 __ EnumLength(result, map); |
| 5905 __ cmp(result, Immediate(Smi::FromInt(0))); | 5905 __ cmp(result, Immediate(Smi::FromInt(0))); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6013 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6013 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6014 } | 6014 } |
| 6015 | 6015 |
| 6016 | 6016 |
| 6017 #undef __ | 6017 #undef __ |
| 6018 | 6018 |
| 6019 } // namespace internal | 6019 } // namespace internal |
| 6020 } // namespace v8 | 6020 } // namespace v8 |
| 6021 | 6021 |
| 6022 #endif // V8_TARGET_ARCH_X87 | 6022 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |