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

Side by Side Diff: src/ic/arm/handler-compiler-arm.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/ia32/macro-assembler-ia32.cc ('k') | src/ic/arm64/handler-compiler-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 masm, miss_label, &done, receiver, properties, name, scratch1); 164 masm, miss_label, &done, receiver, properties, name, scratch1);
165 __ bind(&done); 165 __ bind(&done);
166 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); 166 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1);
167 } 167 }
168 168
169 169
170 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype( 170 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype(
171 MacroAssembler* masm, int index, Register result, Label* miss) { 171 MacroAssembler* masm, int index, Register result, Label* miss) {
172 const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX); 172 const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX);
173 __ ldr(result, MemOperand(cp, offset)); 173 __ ldr(result, MemOperand(cp, offset));
174 __ ldr(result, FieldMemOperand(result, GlobalObject::kNativeContextOffset)); 174 __ ldr(result, FieldMemOperand(result, JSGlobalObject::kNativeContextOffset));
175 __ ldr(result, MemOperand(result, Context::SlotOffset(index))); 175 __ ldr(result, MemOperand(result, Context::SlotOffset(index)));
176 // Load its initial map. The global functions all have initial maps. 176 // Load its initial map. The global functions all have initial maps.
177 __ ldr(result, 177 __ ldr(result,
178 FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset)); 178 FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset));
179 // Load the prototype from the initial map. 179 // Load the prototype from the initial map.
180 __ ldr(result, FieldMemOperand(result, Map::kPrototypeOffset)); 180 __ ldr(result, FieldMemOperand(result, Map::kPrototypeOffset));
181 } 181 }
182 182
183 183
184 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( 184 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 // Return the generated code. 790 // Return the generated code.
791 return GetCode(kind(), Code::NORMAL, name); 791 return GetCode(kind(), Code::NORMAL, name);
792 } 792 }
793 793
794 794
795 #undef __ 795 #undef __
796 } // namespace internal 796 } // namespace internal
797 } // namespace v8 797 } // namespace v8
798 798
799 #endif // V8_TARGET_ARCH_ARM 799 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/ic/arm64/handler-compiler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698