OLD | NEW |
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 __ Ldr(result, GlobalObjectMemOperand()); | 81 __ Ldr(result, GlobalObjectMemOperand()); |
82 __ Ldr(result, FieldMemOperand(result, GlobalObject::kNativeContextOffset)); | 82 __ Ldr(result, FieldMemOperand(result, JSGlobalObject::kNativeContextOffset)); |
83 __ Ldr(result, ContextMemOperand(result, index)); | 83 __ Ldr(result, ContextMemOperand(result, index)); |
84 // Load its initial map. The global functions all have initial maps. | 84 // Load its initial map. The global functions all have initial maps. |
85 __ Ldr(result, | 85 __ Ldr(result, |
86 FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset)); | 86 FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset)); |
87 // Load the prototype from the initial map. | 87 // Load the prototype from the initial map. |
88 __ Ldr(result, FieldMemOperand(result, Map::kPrototypeOffset)); | 88 __ Ldr(result, FieldMemOperand(result, Map::kPrototypeOffset)); |
89 } | 89 } |
90 | 90 |
91 | 91 |
92 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( | 92 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 // Return the generated code. | 801 // Return the generated code. |
802 return GetCode(kind(), Code::FAST, name); | 802 return GetCode(kind(), Code::FAST, name); |
803 } | 803 } |
804 | 804 |
805 | 805 |
806 #undef __ | 806 #undef __ |
807 } // namespace internal | 807 } // namespace internal |
808 } // namespace v8 | 808 } // namespace v8 |
809 | 809 |
810 #endif // V8_TARGET_ARCH_IA32 | 810 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |