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

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

Issue 1478303002: Revert of [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: 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/arm64/handler-compiler-arm64.cc ('k') | src/ic/mips/handler-compiler-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 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_IA32 5 #if V8_TARGET_ARCH_IA32
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 Label done; 107 Label done;
108 NameDictionaryLookupStub::GenerateNegativeLookup(masm, miss_label, &done, 108 NameDictionaryLookupStub::GenerateNegativeLookup(masm, miss_label, &done,
109 properties, name, scratch1); 109 properties, name, scratch1);
110 __ bind(&done); 110 __ bind(&done);
111 __ DecrementCounter(counters->negative_lookups_miss(), 1); 111 __ DecrementCounter(counters->negative_lookups_miss(), 1);
112 } 112 }
113 113
114 114
115 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype( 115 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype(
116 MacroAssembler* masm, int index, Register result, Label* miss) { 116 MacroAssembler* masm, int index, Register result, Label* miss) {
117 __ LoadGlobalFunction(index, result); 117 const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX);
118 __ mov(result, Operand(esi, offset));
119 __ mov(result, FieldOperand(result, JSGlobalObject::kNativeContextOffset));
120 __ mov(result, Operand(result, Context::SlotOffset(index)));
118 // Load its initial map. The global functions all have initial maps. 121 // Load its initial map. The global functions all have initial maps.
119 __ mov(result, 122 __ mov(result,
120 FieldOperand(result, JSFunction::kPrototypeOrInitialMapOffset)); 123 FieldOperand(result, JSFunction::kPrototypeOrInitialMapOffset));
121 // Load the prototype from the initial map. 124 // Load the prototype from the initial map.
122 __ mov(result, FieldOperand(result, Map::kPrototypeOffset)); 125 __ mov(result, FieldOperand(result, Map::kPrototypeOffset));
123 } 126 }
124 127
125 128
126 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( 129 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(
127 MacroAssembler* masm, Register receiver, Register scratch1, 130 MacroAssembler* masm, Register receiver, Register scratch1,
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 // Return the generated code. 816 // Return the generated code.
814 return GetCode(kind(), Code::NORMAL, name); 817 return GetCode(kind(), Code::NORMAL, name);
815 } 818 }
816 819
817 820
818 #undef __ 821 #undef __
819 } // namespace internal 822 } // namespace internal
820 } // namespace v8 823 } // namespace v8
821 824
822 #endif // V8_TARGET_ARCH_IA32 825 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ic/arm64/handler-compiler-arm64.cc ('k') | src/ic/mips/handler-compiler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698