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

Side by Side Diff: src/x64/lithium-codegen-x64.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/parser.cc ('k') | src/x64/lithium-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/x64/lithium-codegen-x64.h" 9 #include "src/x64/lithium-codegen-x64.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 5667 matching lines...) Expand 10 before | Expand all | Expand 10 after
5678 // Index is now equal to out of object property index plus 1. 5678 // Index is now equal to out of object property index plus 1.
5679 __ movp(object, FieldOperand(object, 5679 __ movp(object, FieldOperand(object,
5680 index, 5680 index,
5681 times_pointer_size, 5681 times_pointer_size,
5682 FixedArray::kHeaderSize - kPointerSize)); 5682 FixedArray::kHeaderSize - kPointerSize));
5683 __ bind(deferred->exit()); 5683 __ bind(deferred->exit());
5684 __ bind(&done); 5684 __ bind(&done);
5685 } 5685 }
5686 5686
5687 5687
5688 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5689 Register context = ToRegister(instr->context());
5690 __ movp(Operand(rbp, StandardFrameConstants::kContextOffset), context);
5691 }
5692
5693
5694 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) {
5695 Handle<ScopeInfo> scope_info = instr->scope_info();
5696 __ Push(scope_info);
5697 __ Push(ToRegister(instr->function()));
5698 CallRuntime(Runtime::kHiddenPushBlockContext, 2, instr);
5699 RecordSafepoint(Safepoint::kNoLazyDeopt);
5700 }
5701
5702
5688 #undef __ 5703 #undef __
5689 5704
5690 } } // namespace v8::internal 5705 } } // namespace v8::internal
5691 5706
5692 #endif // V8_TARGET_ARCH_X64 5707 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698