| 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 6 | 6 |
| 7 #include "src/crankshaft/x87/lithium-codegen-x87.h" | 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 5942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5953 __ bind(&done); | 5953 __ bind(&done); |
| 5954 } | 5954 } |
| 5955 | 5955 |
| 5956 | 5956 |
| 5957 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { | 5957 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
| 5958 Register context = ToRegister(instr->context()); | 5958 Register context = ToRegister(instr->context()); |
| 5959 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); | 5959 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); |
| 5960 } | 5960 } |
| 5961 | 5961 |
| 5962 | 5962 |
| 5963 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) { | |
| 5964 Handle<ScopeInfo> scope_info = instr->scope_info(); | |
| 5965 __ Push(scope_info); | |
| 5966 __ push(ToRegister(instr->function())); | |
| 5967 CallRuntime(Runtime::kPushBlockContext, instr); | |
| 5968 RecordSafepoint(Safepoint::kNoLazyDeopt); | |
| 5969 } | |
| 5970 | |
| 5971 | |
| 5972 #undef __ | 5963 #undef __ |
| 5973 | 5964 |
| 5974 } // namespace internal | 5965 } // namespace internal |
| 5975 } // namespace v8 | 5966 } // namespace v8 |
| 5976 | 5967 |
| 5977 #endif // V8_TARGET_ARCH_X87 | 5968 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |