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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "ia32/lithium-codegen-ia32.h" | 9 #include "ia32/lithium-codegen-ia32.h" |
10 #include "ic.h" | 10 #include "ic.h" |
(...skipping 5642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5653 // Index is now equal to out of object property index plus 1. | 5653 // Index is now equal to out of object property index plus 1. |
5654 __ mov(object, FieldOperand(object, | 5654 __ mov(object, FieldOperand(object, |
5655 index, | 5655 index, |
5656 times_half_pointer_size, | 5656 times_half_pointer_size, |
5657 FixedArray::kHeaderSize - kPointerSize)); | 5657 FixedArray::kHeaderSize - kPointerSize)); |
5658 __ bind(deferred->exit()); | 5658 __ bind(deferred->exit()); |
5659 __ bind(&done); | 5659 __ bind(&done); |
5660 } | 5660 } |
5661 | 5661 |
5662 | 5662 |
5663 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { | |
5664 Register context = ToRegister(instr->context()); | |
5665 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); | |
5666 } | |
5667 | |
5668 | |
5669 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) { | |
5670 Handle<ScopeInfo> scope_info = instr->scope_info(); | |
5671 __ Push(scope_info); | |
5672 __ push(ToOperand(instr->function())); | |
5673 CallRuntime(Runtime::kHiddenPushBlockContext, 2, instr); | |
Michael Starzinger
2014/06/03 23:12:20
Since this is only a runtime call, do we really ne
rossberg
2014/06/04 12:54:53
Perhaps not in the near future, but we will have t
ulan
2014/06/04 14:02:05
Right, we will do it sooner than later. Leaving it
| |
5674 RecordSafepoint(Safepoint::kNoLazyDeopt); | |
5675 } | |
5676 | |
5677 | |
5663 #undef __ | 5678 #undef __ |
5664 | 5679 |
5665 } } // namespace v8::internal | 5680 } } // namespace v8::internal |
5666 | 5681 |
5667 #endif // V8_TARGET_ARCH_IA32 | 5682 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |