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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/lithium-arm.cc ('k') | src/arm64/lithium-arm64.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 #include "src/arm/lithium-codegen-arm.h" 7 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/arm/lithium-gap-resolver-arm.h" 8 #include "src/arm/lithium-gap-resolver-arm.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/stub-cache.h" 10 #include "src/stub-cache.h"
(...skipping 5800 matching lines...) Expand 10 before | Expand all | Expand 10 after
5811 // Index is equal to negated out of object property index plus 1. 5811 // Index is equal to negated out of object property index plus 1.
5812 STATIC_ASSERT(kSmiTag == 0 && kSmiTagSize < kPointerSizeLog2); 5812 STATIC_ASSERT(kSmiTag == 0 && kSmiTagSize < kPointerSizeLog2);
5813 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5813 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5814 __ ldr(result, FieldMemOperand(scratch, 5814 __ ldr(result, FieldMemOperand(scratch,
5815 FixedArray::kHeaderSize - kPointerSize)); 5815 FixedArray::kHeaderSize - kPointerSize));
5816 __ bind(deferred->exit()); 5816 __ bind(deferred->exit());
5817 __ bind(&done); 5817 __ bind(&done);
5818 } 5818 }
5819 5819
5820 5820
5821 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5822 Register context = ToRegister(instr->context());
5823 __ str(context, MemOperand(fp, StandardFrameConstants::kContextOffset));
5824 }
5825
5826
5827 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) {
5828 Handle<ScopeInfo> scope_info = instr->scope_info();
5829 __ Push(scope_info);
5830 __ push(ToRegister(instr->function()));
5831 CallRuntime(Runtime::kHiddenPushBlockContext, 2, instr);
5832 RecordSafepoint(Safepoint::kNoLazyDeopt);
5833 }
5834
5835
5821 #undef __ 5836 #undef __
5822 5837
5823 } } // namespace v8::internal 5838 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm64/lithium-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698