| 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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 __ bind(&done); | 161 __ bind(&done); |
| 162 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); | 162 __ DecrementCounter(counters->negative_lookups_miss(), 1, scratch0, scratch1); |
| 163 } | 163 } |
| 164 | 164 |
| 165 | 165 |
| 166 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype( | 166 void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype( |
| 167 MacroAssembler* masm, int index, Register result, Label* miss) { | 167 MacroAssembler* masm, int index, Register result, Label* miss) { |
| 168 // Check we're still in the same context. | 168 // Check we're still in the same context. |
| 169 const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX); | 169 const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX); |
| 170 __ ld(result, MemOperand(cp, offset)); | 170 __ ld(result, MemOperand(cp, offset)); |
| 171 __ ld(result, FieldMemOperand(result, GlobalObject::kNativeContextOffset)); | 171 __ ld(result, FieldMemOperand(result, JSGlobalObject::kNativeContextOffset)); |
| 172 __ ld(result, MemOperand(result, Context::SlotOffset(index))); | 172 __ ld(result, MemOperand(result, Context::SlotOffset(index))); |
| 173 // Load its initial map. The global functions all have initial maps. | 173 // Load its initial map. The global functions all have initial maps. |
| 174 __ ld(result, | 174 __ ld(result, |
| 175 FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset)); | 175 FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset)); |
| 176 // Load the prototype from the initial map. | 176 // Load the prototype from the initial map. |
| 177 __ ld(result, FieldMemOperand(result, Map::kPrototypeOffset)); | 177 __ ld(result, FieldMemOperand(result, Map::kPrototypeOffset)); |
| 178 } | 178 } |
| 179 | 179 |
| 180 | 180 |
| 181 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( | 181 void NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype( |
| (...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 // Return the generated code. | 781 // Return the generated code. |
| 782 return GetCode(kind(), Code::NORMAL, name); | 782 return GetCode(kind(), Code::NORMAL, name); |
| 783 } | 783 } |
| 784 | 784 |
| 785 | 785 |
| 786 #undef __ | 786 #undef __ |
| 787 } // namespace internal | 787 } // namespace internal |
| 788 } // namespace v8 | 788 } // namespace v8 |
| 789 | 789 |
| 790 #endif // V8_TARGET_ARCH_MIPS64 | 790 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |