OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/x64/lithium-codegen-x64.h" | 9 #include "src/x64/lithium-codegen-x64.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 5667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5678 // Index is now equal to out of object property index plus 1. | 5678 // Index is now equal to out of object property index plus 1. |
5679 __ movp(object, FieldOperand(object, | 5679 __ movp(object, FieldOperand(object, |
5680 index, | 5680 index, |
5681 times_pointer_size, | 5681 times_pointer_size, |
5682 FixedArray::kHeaderSize - kPointerSize)); | 5682 FixedArray::kHeaderSize - kPointerSize)); |
5683 __ bind(deferred->exit()); | 5683 __ bind(deferred->exit()); |
5684 __ bind(&done); | 5684 __ bind(&done); |
5685 } | 5685 } |
5686 | 5686 |
5687 | 5687 |
| 5688 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
| 5689 Register context = ToRegister(instr->context()); |
| 5690 __ movp(Operand(rbp, StandardFrameConstants::kContextOffset), context); |
| 5691 } |
| 5692 |
| 5693 |
| 5694 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) { |
| 5695 Handle<ScopeInfo> scope_info = instr->scope_info(); |
| 5696 __ Push(scope_info); |
| 5697 __ Push(ToRegister(instr->function())); |
| 5698 CallRuntime(Runtime::kHiddenPushBlockContext, 2, instr); |
| 5699 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5700 } |
| 5701 |
| 5702 |
5688 #undef __ | 5703 #undef __ |
5689 | 5704 |
5690 } } // namespace v8::internal | 5705 } } // namespace v8::internal |
5691 | 5706 |
5692 #endif // V8_TARGET_ARCH_X64 | 5707 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |