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

Side by Side Diff: src/arm64/lithium-codegen-arm64.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/arm64/lithium-arm64.cc ('k') | src/ast.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 #include "src/arm64/lithium-codegen-arm64.h" 7 #include "src/arm64/lithium-codegen-arm64.h"
8 #include "src/arm64/lithium-gap-resolver-arm64.h" 8 #include "src/arm64/lithium-gap-resolver-arm64.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 6021 matching lines...) Expand 10 before | Expand all | Expand 10 after
6032 __ Bind(&out_of_object); 6032 __ Bind(&out_of_object);
6033 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 6033 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
6034 // Index is equal to negated out of object property index plus 1. 6034 // Index is equal to negated out of object property index plus 1.
6035 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 6035 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
6036 __ Ldr(result, FieldMemOperand(result, 6036 __ Ldr(result, FieldMemOperand(result,
6037 FixedArray::kHeaderSize - kPointerSize)); 6037 FixedArray::kHeaderSize - kPointerSize));
6038 __ Bind(deferred->exit()); 6038 __ Bind(deferred->exit());
6039 __ Bind(&done); 6039 __ Bind(&done);
6040 } 6040 }
6041 6041
6042
6043 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
6044 Register context = ToRegister(instr->context());
6045 __ Str(context, MemOperand(fp, StandardFrameConstants::kContextOffset));
6046 }
6047
6048
6049 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) {
6050 Handle<ScopeInfo> scope_info = instr->scope_info();
6051 __ Push(scope_info);
6052 __ Push(ToRegister(instr->function()));
6053 CallRuntime(Runtime::kHiddenPushBlockContext, 2, instr);
6054 RecordSafepoint(Safepoint::kNoLazyDeopt);
6055 }
6056
6057
6058
6042 } } // namespace v8::internal 6059 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/lithium-arm64.cc ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698