Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 307593002: Preliminary support for block contexts in hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Port to other architectures Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/ia32/lithium-codegen-ia32.h" 9 #include "src/ia32/lithium-codegen-ia32.h"
10 #include "src/ic.h" 10 #include "src/ic.h"
(...skipping 5626 matching lines...) Expand 10 before | Expand all | Expand 10 after
5637 // Index is now equal to out of object property index plus 1. 5637 // Index is now equal to out of object property index plus 1.
5638 __ mov(object, FieldOperand(object, 5638 __ mov(object, FieldOperand(object,
5639 index, 5639 index,
5640 times_half_pointer_size, 5640 times_half_pointer_size,
5641 FixedArray::kHeaderSize - kPointerSize)); 5641 FixedArray::kHeaderSize - kPointerSize));
5642 __ bind(deferred->exit()); 5642 __ bind(deferred->exit());
5643 __ bind(&done); 5643 __ bind(&done);
5644 } 5644 }
5645 5645
5646 5646
5647 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5648 Register context = ToRegister(instr->context());
5649 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context);
5650 }
5651
5652
5653 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) {
5654 Handle<ScopeInfo> scope_info = instr->scope_info();
5655 __ Push(scope_info);
5656 __ push(ToRegister(instr->function()));
5657 CallRuntime(Runtime::kHiddenPushBlockContext, 2, instr);
5658 RecordSafepoint(Safepoint::kNoLazyDeopt);
5659 }
5660
5661
5647 #undef __ 5662 #undef __
5648 5663
5649 } } // namespace v8::internal 5664 } } // namespace v8::internal
5650 5665
5651 #endif // V8_TARGET_ARCH_IA32 5666 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698