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

Side by Side Diff: src/ic/mips/handler-compiler-mips.cc

Issue 1406113007: Merge GlobalObject with JSGlobalObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/mips64/handler-compiler-mips64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 #include "src/ic/call-optimization.h" 7 #include "src/ic/call-optimization.h"
8 #include "src/ic/handler-compiler.h" 8 #include "src/ic/handler-compiler.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 masm, miss_label, &done, receiver, properties, name, scratch1); 160 masm, miss_label, &done, receiver, properties, name, scratch1);
161 __ bind(&done); 161 __ bind(&done);
162 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); 162 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1);
163 } 163 }
164 164
165 165
166 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype( 166 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype(
167 MacroAssembler* masm, int index, Register result, Label* miss) { 167 MacroAssembler* masm, int index, Register result, Label* miss) {
168 const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX); 168 const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX);
169 __ lw(result, MemOperand(cp, offset)); 169 __ lw(result, MemOperand(cp, offset));
170 __ lw(result, FieldMemOperand(result, GlobalObject::kNativeContextOffset)); 170 __ lw(result, FieldMemOperand(result, JSGlobalObject::kNativeContextOffset));
171 __ lw(result, MemOperand(result, Context::SlotOffset(index))); 171 __ lw(result, MemOperand(result, Context::SlotOffset(index)));
172 // Load its initial map. The global functions all have initial maps. 172 // Load its initial map. The global functions all have initial maps.
173 __ lw(result, 173 __ lw(result,
174 FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset)); 174 FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset));
175 // Load the prototype from the initial map. 175 // Load the prototype from the initial map.
176 __ lw(result, FieldMemOperand(result, Map::kPrototypeOffset)); 176 __ lw(result, FieldMemOperand(result, Map::kPrototypeOffset));
177 } 177 }
178 178
179 179
180 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( 180 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 // Return the generated code. 780 // Return the generated code.
781 return GetCode(kind(), Code::NORMAL, name); 781 return GetCode(kind(), Code::NORMAL, name);
782 } 782 }
783 783
784 784
785 #undef __ 785 #undef __
786 } // namespace internal 786 } // namespace internal
787 } // namespace v8 787 } // namespace v8
788 788
789 #endif // V8_TARGET_ARCH_MIPS 789 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/mips64/handler-compiler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698