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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" | 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 5314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5325 | 5325 |
5326 Label use_cache, call_runtime; | 5326 Label use_cache, call_runtime; |
5327 __ CheckEnumCache(&call_runtime); | 5327 __ CheckEnumCache(&call_runtime); |
5328 | 5328 |
5329 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); | 5329 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); |
5330 __ jmp(&use_cache, Label::kNear); | 5330 __ jmp(&use_cache, Label::kNear); |
5331 | 5331 |
5332 // Get the set of properties to enumerate. | 5332 // Get the set of properties to enumerate. |
5333 __ bind(&call_runtime); | 5333 __ bind(&call_runtime); |
5334 __ push(eax); | 5334 __ push(eax); |
5335 CallRuntime(Runtime::kGetPropertyNamesFast, instr); | 5335 CallRuntime(Runtime::kForInEnumerate, instr); |
5336 __ bind(&use_cache); | 5336 __ bind(&use_cache); |
5337 } | 5337 } |
5338 | 5338 |
5339 | 5339 |
5340 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { | 5340 void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { |
5341 Register map = ToRegister(instr->map()); | 5341 Register map = ToRegister(instr->map()); |
5342 Register result = ToRegister(instr->result()); | 5342 Register result = ToRegister(instr->result()); |
5343 Label load_cache, done; | 5343 Label load_cache, done; |
5344 __ EnumLength(result, map); | 5344 __ EnumLength(result, map); |
5345 __ cmp(result, Immediate(Smi::FromInt(0))); | 5345 __ cmp(result, Immediate(Smi::FromInt(0))); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5452 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5452 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5453 } | 5453 } |
5454 | 5454 |
5455 | 5455 |
5456 #undef __ | 5456 #undef __ |
5457 | 5457 |
5458 } // namespace internal | 5458 } // namespace internal |
5459 } // namespace v8 | 5459 } // namespace v8 |
5460 | 5460 |
5461 #endif // V8_TARGET_ARCH_IA32 | 5461 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |