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

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 352173006: Clean up the global object naming madness. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 6 years, 5 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/builtins-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('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_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // global proxy when called as functions (without an explicit receiver 126 // global proxy when called as functions (without an explicit receiver
127 // object). 127 // object).
128 if (info->strict_mode() == SLOPPY && !info->is_native()) { 128 if (info->strict_mode() == SLOPPY && !info->is_native()) {
129 Label ok; 129 Label ok;
130 int receiver_offset = info->scope()->num_parameters() * kPointerSize; 130 int receiver_offset = info->scope()->num_parameters() * kPointerSize;
131 __ ldr(r2, MemOperand(sp, receiver_offset)); 131 __ ldr(r2, MemOperand(sp, receiver_offset));
132 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex); 132 __ CompareRoot(r2, Heap::kUndefinedValueRootIndex);
133 __ b(ne, &ok); 133 __ b(ne, &ok);
134 134
135 __ ldr(r2, GlobalObjectOperand()); 135 __ ldr(r2, GlobalObjectOperand());
136 __ ldr(r2, FieldMemOperand(r2, GlobalObject::kGlobalReceiverOffset)); 136 __ ldr(r2, FieldMemOperand(r2, GlobalObject::kGlobalProxyOffset));
137 137
138 __ str(r2, MemOperand(sp, receiver_offset)); 138 __ str(r2, MemOperand(sp, receiver_offset));
139 139
140 __ bind(&ok); 140 __ bind(&ok);
141 } 141 }
142 142
143 // Open a frame scope to indicate that there is a frame on the stack. The 143 // Open a frame scope to indicate that there is a frame on the stack. The
144 // MANUAL indicates that the scope shouldn't actually generate code to set up 144 // MANUAL indicates that the scope shouldn't actually generate code to set up
145 // the frame (that is done below). 145 // the frame (that is done below).
146 FrameScope frame_scope(masm_, StackFrame::MANUAL); 146 FrameScope frame_scope(masm_, StackFrame::MANUAL);
(...skipping 4688 matching lines...) Expand 10 before | Expand all | Expand 10 after
4835 4835
4836 ASSERT(interrupt_address == 4836 ASSERT(interrupt_address ==
4837 isolate->builtins()->OsrAfterStackCheck()->entry()); 4837 isolate->builtins()->OsrAfterStackCheck()->entry());
4838 return OSR_AFTER_STACK_CHECK; 4838 return OSR_AFTER_STACK_CHECK;
4839 } 4839 }
4840 4840
4841 4841
4842 } } // namespace v8::internal 4842 } } // namespace v8::internal
4843 4843
4844 #endif // V8_TARGET_ARCH_ARM 4844 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698