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/crankshaft/mips64/lithium-codegen-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" |
(...skipping 5733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5744 __ bind(&done); | 5744 __ bind(&done); |
5745 } | 5745 } |
5746 | 5746 |
5747 | 5747 |
5748 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { | 5748 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
5749 Register context = ToRegister(instr->context()); | 5749 Register context = ToRegister(instr->context()); |
5750 __ sd(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 5750 __ sd(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
5751 } | 5751 } |
5752 | 5752 |
5753 | 5753 |
5754 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) { | |
5755 Handle<ScopeInfo> scope_info = instr->scope_info(); | |
5756 __ li(at, scope_info); | |
5757 __ Push(at, ToRegister(instr->function())); | |
5758 CallRuntime(Runtime::kPushBlockContext, instr); | |
5759 RecordSafepoint(Safepoint::kNoLazyDeopt); | |
5760 } | |
5761 | |
5762 | |
5763 #undef __ | 5754 #undef __ |
5764 | 5755 |
5765 } // namespace internal | 5756 } // namespace internal |
5766 } // namespace v8 | 5757 } // namespace v8 |
OLD | NEW |