OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 } | 68 } |
69 | 69 |
70 | 70 |
71 // Load the built-in InternalArray function from the current context. | 71 // Load the built-in InternalArray function from the current context. |
72 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, | 72 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, |
73 Register result) { | 73 Register result) { |
74 // Load the native context. | 74 // Load the native context. |
75 | 75 |
76 __ ld(result, | 76 __ ld(result, |
77 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); | 77 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
78 __ ld(result, | 78 __ ld(result, FieldMemOperand(result, JSGlobalObject::kNativeContextOffset)); |
79 FieldMemOperand(result, GlobalObject::kNativeContextOffset)); | |
80 // Load the InternalArray function from the native context. | 79 // Load the InternalArray function from the native context. |
81 __ ld(result, | 80 __ ld(result, |
82 MemOperand(result, | 81 MemOperand(result, |
83 Context::SlotOffset( | 82 Context::SlotOffset( |
84 Context::INTERNAL_ARRAY_FUNCTION_INDEX))); | 83 Context::INTERNAL_ARRAY_FUNCTION_INDEX))); |
85 } | 84 } |
86 | 85 |
87 | 86 |
88 // Load the built-in Array function from the current context. | 87 // Load the built-in Array function from the current context. |
89 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) { | 88 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) { |
90 // Load the native context. | 89 // Load the native context. |
91 | 90 |
92 __ ld(result, | 91 __ ld(result, |
93 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); | 92 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
94 __ ld(result, | 93 __ ld(result, FieldMemOperand(result, JSGlobalObject::kNativeContextOffset)); |
95 FieldMemOperand(result, GlobalObject::kNativeContextOffset)); | |
96 // Load the Array function from the native context. | 94 // Load the Array function from the native context. |
97 __ ld(result, | 95 __ ld(result, |
98 MemOperand(result, | 96 MemOperand(result, |
99 Context::SlotOffset(Context::ARRAY_FUNCTION_INDEX))); | 97 Context::SlotOffset(Context::ARRAY_FUNCTION_INDEX))); |
100 } | 98 } |
101 | 99 |
102 | 100 |
103 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) { | 101 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) { |
104 // ----------- S t a t e ------------- | 102 // ----------- S t a t e ------------- |
105 // -- a0 : number of arguments | 103 // -- a0 : number of arguments |
(...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1941 } | 1939 } |
1942 } | 1940 } |
1943 | 1941 |
1944 | 1942 |
1945 #undef __ | 1943 #undef __ |
1946 | 1944 |
1947 } // namespace internal | 1945 } // namespace internal |
1948 } // namespace v8 | 1946 } // namespace v8 |
1949 | 1947 |
1950 #endif // V8_TARGET_ARCH_MIPS64 | 1948 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |