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

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

Issue 364863002: MIPS: Clean up the global object naming madness. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/builtins-mips.cc ('k') | src/mips/lithium-codegen-mips.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // global proxy when called as functions (without an explicit receiver 134 // global proxy when called as functions (without an explicit receiver
135 // object). 135 // object).
136 if (info->strict_mode() == SLOPPY && !info->is_native()) { 136 if (info->strict_mode() == SLOPPY && !info->is_native()) {
137 Label ok; 137 Label ok;
138 int receiver_offset = info->scope()->num_parameters() * kPointerSize; 138 int receiver_offset = info->scope()->num_parameters() * kPointerSize;
139 __ lw(at, MemOperand(sp, receiver_offset)); 139 __ lw(at, MemOperand(sp, receiver_offset));
140 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); 140 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex);
141 __ Branch(&ok, ne, a2, Operand(at)); 141 __ Branch(&ok, ne, a2, Operand(at));
142 142
143 __ lw(a2, GlobalObjectOperand()); 143 __ lw(a2, GlobalObjectOperand());
144 __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalReceiverOffset)); 144 __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalProxyOffset));
145 145
146 __ sw(a2, MemOperand(sp, receiver_offset)); 146 __ sw(a2, MemOperand(sp, receiver_offset));
147 147
148 __ bind(&ok); 148 __ bind(&ok);
149 } 149 }
150 150
151 // Open a frame scope to indicate that there is a frame on the stack. The 151 // Open a frame scope to indicate that there is a frame on the stack. The
152 // MANUAL indicates that the scope shouldn't actually generate code to set up 152 // MANUAL indicates that the scope shouldn't actually generate code to set up
153 // the frame (that is done below). 153 // the frame (that is done below).
154 FrameScope frame_scope(masm_, StackFrame::MANUAL); 154 FrameScope frame_scope(masm_, StackFrame::MANUAL);
(...skipping 4713 matching lines...) Expand 10 before | Expand all | Expand 10 after
4868 Assembler::target_address_at(pc_immediate_load_address)) == 4868 Assembler::target_address_at(pc_immediate_load_address)) ==
4869 reinterpret_cast<uint32_t>( 4869 reinterpret_cast<uint32_t>(
4870 isolate->builtins()->OsrAfterStackCheck()->entry())); 4870 isolate->builtins()->OsrAfterStackCheck()->entry()));
4871 return OSR_AFTER_STACK_CHECK; 4871 return OSR_AFTER_STACK_CHECK;
4872 } 4872 }
4873 4873
4874 4874
4875 } } // namespace v8::internal 4875 } } // namespace v8::internal
4876 4876
4877 #endif // V8_TARGET_ARCH_MIPS 4877 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698