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

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

Issue 1480003002: [runtime] Replace global object link with native context link in all contexts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add patch from Orion for interpreter cementation test. Disable obsolete/invalid tests. Created 5 years 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/mips/handler-compiler-mips.cc ('k') | src/ic/x64/handler-compiler-x64.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
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 160
161 NameDictionaryLookupStub::GenerateNegativeLookup( 161 NameDictionaryLookupStub::GenerateNegativeLookup(
162 masm, miss_label, &done, receiver, properties, name, scratch1); 162 masm, miss_label, &done, receiver, properties, name, scratch1);
163 __ bind(&done); 163 __ bind(&done);
164 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); 164 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1);
165 } 165 }
166 166
167 167
168 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype( 168 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype(
169 MacroAssembler* masm, int index, Register result, Label* miss) { 169 MacroAssembler* masm, int index, Register result, Label* miss) {
170 // Check we're still in the same context. 170 __ LoadNativeContextSlot(index, result);
171 const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX);
172 __ ld(result, MemOperand(cp, offset));
173 __ ld(result, FieldMemOperand(result, JSGlobalObject::kNativeContextOffset));
174 __ ld(result, MemOperand(result, Context::SlotOffset(index)));
175 // Load its initial map. The global functions all have initial maps. 171 // Load its initial map. The global functions all have initial maps.
176 __ ld(result, 172 __ ld(result,
177 FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset)); 173 FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset));
178 // Load the prototype from the initial map. 174 // Load the prototype from the initial map.
179 __ ld(result, FieldMemOperand(result, Map::kPrototypeOffset)); 175 __ ld(result, FieldMemOperand(result, Map::kPrototypeOffset));
180 } 176 }
181 177
182 178
183 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( 179 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(
184 MacroAssembler* masm, Register receiver, Register scratch1, 180 MacroAssembler* masm, Register receiver, Register scratch1,
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 // Return the generated code. 780 // Return the generated code.
785 return GetCode(kind(), Code::NORMAL, name); 781 return GetCode(kind(), Code::NORMAL, name);
786 } 782 }
787 783
788 784
789 #undef __ 785 #undef __
790 } // namespace internal 786 } // namespace internal
791 } // namespace v8 787 } // namespace v8
792 788
793 #endif // V8_TARGET_ARCH_MIPS64 789 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips/handler-compiler-mips.cc ('k') | src/ic/x64/handler-compiler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698