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

Side by Side Diff: src/ic/arm64/handler-compiler-arm64.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/arm/handler-compiler-arm.cc ('k') | src/ic/ia32/handler-compiler-ia32.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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 NameDictionaryLookupStub::GenerateNegativeLookup( 72 NameDictionaryLookupStub::GenerateNegativeLookup(
73 masm, miss_label, &done, receiver, properties, name, scratch1); 73 masm, miss_label, &done, receiver, properties, name, scratch1);
74 __ Bind(&done); 74 __ Bind(&done);
75 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); 75 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1);
76 } 76 }
77 77
78 78
79 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype( 79 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype(
80 MacroAssembler* masm, int index, Register result, Label* miss) { 80 MacroAssembler* masm, int index, Register result, Label* miss) {
81 __ LoadNativeContextSlot(index, result); 81 __ Ldr(result, GlobalObjectMemOperand());
82 __ Ldr(result, FieldMemOperand(result, JSGlobalObject::kNativeContextOffset));
83 __ Ldr(result, ContextMemOperand(result, index));
82 // Load its initial map. The global functions all have initial maps. 84 // Load its initial map. The global functions all have initial maps.
83 __ Ldr(result, 85 __ Ldr(result,
84 FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset)); 86 FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset));
85 // Load the prototype from the initial map. 87 // Load the prototype from the initial map.
86 __ Ldr(result, FieldMemOperand(result, Map::kPrototypeOffset)); 88 __ Ldr(result, FieldMemOperand(result, Map::kPrototypeOffset));
87 } 89 }
88 90
89 91
90 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( 92 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(
91 MacroAssembler* masm, Register receiver, Register scratch1, 93 MacroAssembler* masm, Register receiver, Register scratch1,
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 // Return the generated code. 804 // Return the generated code.
803 return GetCode(kind(), Code::FAST, name); 805 return GetCode(kind(), Code::FAST, name);
804 } 806 }
805 807
806 808
807 #undef __ 809 #undef __
808 } // namespace internal 810 } // namespace internal
809 } // namespace v8 811 } // namespace v8
810 812
811 #endif // V8_TARGET_ARCH_IA32 813 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ic/arm/handler-compiler-arm.cc ('k') | src/ic/ia32/handler-compiler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698