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

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

Issue 315233002: X87: Preliminary support for block contexts in hydrogen. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: 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 | « no previous file | src/x87/lithium-x87.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_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/x87/lithium-codegen-x87.h" 9 #include "src/x87/lithium-codegen-x87.h"
10 #include "src/ic.h" 10 #include "src/ic.h"
(...skipping 5662 matching lines...) Expand 10 before | Expand all | Expand 10 after
5673 // Index is now equal to out of object property index plus 1. 5673 // Index is now equal to out of object property index plus 1.
5674 __ mov(object, FieldOperand(object, 5674 __ mov(object, FieldOperand(object,
5675 index, 5675 index,
5676 times_half_pointer_size, 5676 times_half_pointer_size,
5677 FixedArray::kHeaderSize - kPointerSize)); 5677 FixedArray::kHeaderSize - kPointerSize));
5678 __ bind(deferred->exit()); 5678 __ bind(deferred->exit());
5679 __ bind(&done); 5679 __ bind(&done);
5680 } 5680 }
5681 5681
5682 5682
5683 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5684 Register context = ToRegister(instr->context());
5685 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context);
5686 }
5687
5688
5689 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) {
5690 Handle<ScopeInfo> scope_info = instr->scope_info();
5691 __ Push(scope_info);
5692 __ push(ToRegister(instr->function()));
5693 CallRuntime(Runtime::kHiddenPushBlockContext, 2, instr);
5694 RecordSafepoint(Safepoint::kNoLazyDeopt);
5695 }
5696
5697
5683 #undef __ 5698 #undef __
5684 5699
5685 } } // namespace v8::internal 5700 } } // namespace v8::internal
5686 5701
5687 #endif // V8_TARGET_ARCH_X87 5702 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | src/x87/lithium-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698