| 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 72 } |
| 73 | 73 |
| 74 | 74 |
| 75 // Load the built-in InternalArray function from the current context. | 75 // Load the built-in InternalArray function from the current context. |
| 76 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, | 76 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, |
| 77 Register result) { | 77 Register result) { |
| 78 // Load the native context. | 78 // Load the native context. |
| 79 | 79 |
| 80 __ LoadP(result, | 80 __ LoadP(result, |
| 81 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); | 81 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
| 82 __ LoadP(result, FieldMemOperand(result, GlobalObject::kNativeContextOffset)); | 82 __ LoadP(result, |
| 83 FieldMemOperand(result, JSGlobalObject::kNativeContextOffset)); |
| 83 // Load the InternalArray function from the native context. | 84 // Load the InternalArray function from the native context. |
| 84 __ LoadP(result, | 85 __ LoadP(result, |
| 85 MemOperand(result, Context::SlotOffset( | 86 MemOperand(result, Context::SlotOffset( |
| 86 Context::INTERNAL_ARRAY_FUNCTION_INDEX))); | 87 Context::INTERNAL_ARRAY_FUNCTION_INDEX))); |
| 87 } | 88 } |
| 88 | 89 |
| 89 | 90 |
| 90 // Load the built-in Array function from the current context. | 91 // Load the built-in Array function from the current context. |
| 91 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) { | 92 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) { |
| 92 // Load the native context. | 93 // Load the native context. |
| 93 | 94 |
| 94 __ LoadP(result, | 95 __ LoadP(result, |
| 95 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); | 96 MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
| 96 __ LoadP(result, FieldMemOperand(result, GlobalObject::kNativeContextOffset)); | 97 __ LoadP(result, |
| 98 FieldMemOperand(result, JSGlobalObject::kNativeContextOffset)); |
| 97 // Load the Array function from the native context. | 99 // Load the Array function from the native context. |
| 98 __ LoadP( | 100 __ LoadP( |
| 99 result, | 101 result, |
| 100 MemOperand(result, Context::SlotOffset(Context::ARRAY_FUNCTION_INDEX))); | 102 MemOperand(result, Context::SlotOffset(Context::ARRAY_FUNCTION_INDEX))); |
| 101 } | 103 } |
| 102 | 104 |
| 103 | 105 |
| 104 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) { | 106 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) { |
| 105 // ----------- S t a t e ------------- | 107 // ----------- S t a t e ------------- |
| 106 // -- r3 : number of arguments | 108 // -- r3 : number of arguments |
| (...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1943 __ bkpt(0); | 1945 __ bkpt(0); |
| 1944 } | 1946 } |
| 1945 } | 1947 } |
| 1946 | 1948 |
| 1947 | 1949 |
| 1948 #undef __ | 1950 #undef __ |
| 1949 } // namespace internal | 1951 } // namespace internal |
| 1950 } // namespace v8 | 1952 } // namespace v8 |
| 1951 | 1953 |
| 1952 #endif // V8_TARGET_ARCH_PPC | 1954 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |