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

Side by Side Diff: src/ic/x64/handler-compiler-x64.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/ppc/handler-compiler-ppc.cc ('k') | src/ic/x87/handler-compiler-x87.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_X64 5 #if V8_TARGET_ARCH_X64
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 properties, name, scratch1); 73 properties, name, scratch1);
74 __ bind(&done); 74 __ bind(&done);
75 __ DecrementCounter(counters->negative_lookups_miss(), 1); 75 __ DecrementCounter(counters->negative_lookups_miss(), 1);
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 const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX); 81 const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX);
82 __ movp(result, Operand(rsi, offset)); 82 __ movp(result, Operand(rsi, offset));
83 __ movp(result, FieldOperand(result, GlobalObject::kNativeContextOffset)); 83 __ movp(result, FieldOperand(result, JSGlobalObject::kNativeContextOffset));
84 __ movp(result, Operand(result, Context::SlotOffset(index))); 84 __ movp(result, Operand(result, Context::SlotOffset(index)));
85 // Load its initial map. The global functions all have initial maps. 85 // Load its initial map. The global functions all have initial maps.
86 __ movp(result, 86 __ movp(result,
87 FieldOperand(result, JSFunction::kPrototypeOrInitialMapOffset)); 87 FieldOperand(result, JSFunction::kPrototypeOrInitialMapOffset));
88 // Load the prototype from the initial map. 88 // Load the prototype from the initial map.
89 __ movp(result, FieldOperand(result, Map::kPrototypeOffset)); 89 __ movp(result, FieldOperand(result, Map::kPrototypeOffset));
90 } 90 }
91 91
92 92
93 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( 93 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 // Return the generated code. 811 // Return the generated code.
812 return GetCode(kind(), Code::NORMAL, name); 812 return GetCode(kind(), Code::NORMAL, name);
813 } 813 }
814 814
815 815
816 #undef __ 816 #undef __
817 } // namespace internal 817 } // namespace internal
818 } // namespace v8 818 } // namespace v8
819 819
820 #endif // V8_TARGET_ARCH_X64 820 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ic/ppc/handler-compiler-ppc.cc ('k') | src/ic/x87/handler-compiler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698