| 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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" | 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 5376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5387 __ bind(&done); | 5387 __ bind(&done); |
| 5388 } | 5388 } |
| 5389 | 5389 |
| 5390 | 5390 |
| 5391 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { | 5391 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
| 5392 Register context = ToRegister(instr->context()); | 5392 Register context = ToRegister(instr->context()); |
| 5393 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); | 5393 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); |
| 5394 } | 5394 } |
| 5395 | 5395 |
| 5396 | 5396 |
| 5397 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) { | |
| 5398 Handle<ScopeInfo> scope_info = instr->scope_info(); | |
| 5399 __ Push(scope_info); | |
| 5400 __ push(ToRegister(instr->function())); | |
| 5401 CallRuntime(Runtime::kPushBlockContext, instr); | |
| 5402 RecordSafepoint(Safepoint::kNoLazyDeopt); | |
| 5403 } | |
| 5404 | |
| 5405 | |
| 5406 #undef __ | 5397 #undef __ |
| 5407 | 5398 |
| 5408 } // namespace internal | 5399 } // namespace internal |
| 5409 } // namespace v8 | 5400 } // namespace v8 |
| 5410 | 5401 |
| 5411 #endif // V8_TARGET_ARCH_IA32 | 5402 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |