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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "src/ia32/lithium-codegen-ia32.h" | 9 #include "src/ia32/lithium-codegen-ia32.h" |
10 #include "src/ic.h" | 10 #include "src/ic.h" |
(...skipping 5626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5637 // Index is now equal to out of object property index plus 1. | 5637 // Index is now equal to out of object property index plus 1. |
5638 __ mov(object, FieldOperand(object, | 5638 __ mov(object, FieldOperand(object, |
5639 index, | 5639 index, |
5640 times_half_pointer_size, | 5640 times_half_pointer_size, |
5641 FixedArray::kHeaderSize - kPointerSize)); | 5641 FixedArray::kHeaderSize - kPointerSize)); |
5642 __ bind(deferred->exit()); | 5642 __ bind(deferred->exit()); |
5643 __ bind(&done); | 5643 __ bind(&done); |
5644 } | 5644 } |
5645 | 5645 |
5646 | 5646 |
| 5647 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
| 5648 Register context = ToRegister(instr->context()); |
| 5649 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); |
| 5650 } |
| 5651 |
| 5652 |
| 5653 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) { |
| 5654 Handle<ScopeInfo> scope_info = instr->scope_info(); |
| 5655 __ Push(scope_info); |
| 5656 __ push(ToRegister(instr->function())); |
| 5657 CallRuntime(Runtime::kHiddenPushBlockContext, 2, instr); |
| 5658 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5659 } |
| 5660 |
| 5661 |
5647 #undef __ | 5662 #undef __ |
5648 | 5663 |
5649 } } // namespace v8::internal | 5664 } } // namespace v8::internal |
5650 | 5665 |
5651 #endif // V8_TARGET_ARCH_IA32 | 5666 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |