| 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 5409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5420 | 5420 |
| 5421 GenerateOsrPrologue(); | 5421 GenerateOsrPrologue(); |
| 5422 } | 5422 } |
| 5423 | 5423 |
| 5424 | 5424 |
| 5425 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { | 5425 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { |
| 5426 DCHECK(ToRegister(instr->context()).is(esi)); | 5426 DCHECK(ToRegister(instr->context()).is(esi)); |
| 5427 __ test(eax, Immediate(kSmiTagMask)); | 5427 __ test(eax, Immediate(kSmiTagMask)); |
| 5428 DeoptimizeIf(zero, instr, Deoptimizer::kSmi); | 5428 DeoptimizeIf(zero, instr, Deoptimizer::kSmi); |
| 5429 | 5429 |
| 5430 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); | 5430 STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); |
| 5431 __ CmpObjectType(eax, LAST_JS_PROXY_TYPE, ecx); | 5431 __ CmpObjectType(eax, JS_PROXY_TYPE, ecx); |
| 5432 DeoptimizeIf(below_equal, instr, Deoptimizer::kWrongInstanceType); | 5432 DeoptimizeIf(below_equal, instr, Deoptimizer::kWrongInstanceType); |
| 5433 | 5433 |
| 5434 Label use_cache, call_runtime; | 5434 Label use_cache, call_runtime; |
| 5435 __ CheckEnumCache(&call_runtime); | 5435 __ CheckEnumCache(&call_runtime); |
| 5436 | 5436 |
| 5437 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); | 5437 __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); |
| 5438 __ jmp(&use_cache, Label::kNear); | 5438 __ jmp(&use_cache, Label::kNear); |
| 5439 | 5439 |
| 5440 // Get the set of properties to enumerate. | 5440 // Get the set of properties to enumerate. |
| 5441 __ bind(&call_runtime); | 5441 __ bind(&call_runtime); |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5564 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5564 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5565 } | 5565 } |
| 5566 | 5566 |
| 5567 | 5567 |
| 5568 #undef __ | 5568 #undef __ |
| 5569 | 5569 |
| 5570 } // namespace internal | 5570 } // namespace internal |
| 5571 } // namespace v8 | 5571 } // namespace v8 |
| 5572 | 5572 |
| 5573 #endif // V8_TARGET_ARCH_IA32 | 5573 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |