| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/ic-inl.h" | 10 #include "src/ic-inl.h" |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 if (!miss->is_unused()) { | 837 if (!miss->is_unused()) { |
| 838 Label success; | 838 Label success; |
| 839 __ Branch(&success); | 839 __ Branch(&success); |
| 840 GenerateRestoreName(miss, name); | 840 GenerateRestoreName(miss, name); |
| 841 TailCallBuiltin(masm(), MissBuiltin(kind())); | 841 TailCallBuiltin(masm(), MissBuiltin(kind())); |
| 842 __ bind(&success); | 842 __ bind(&success); |
| 843 } | 843 } |
| 844 } | 844 } |
| 845 | 845 |
| 846 | 846 |
| 847 void NamedLoadHandlerCompiler::GenerateLoadField( | |
| 848 Register reg, FieldIndex field, Representation representation) { | |
| 849 if (!reg.is(receiver())) __ mov(receiver(), reg); | |
| 850 LoadFieldStub stub(isolate(), field); | |
| 851 GenerateTailCall(masm(), stub.GetCode()); | |
| 852 } | |
| 853 | |
| 854 | |
| 855 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { | 847 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { |
| 856 // Return the constant value. | 848 // Return the constant value. |
| 857 __ li(v0, value); | 849 __ li(v0, value); |
| 858 __ Ret(); | 850 __ Ret(); |
| 859 } | 851 } |
| 860 | 852 |
| 861 | 853 |
| 862 void NamedLoadHandlerCompiler::GenerateLoadCallback( | 854 void NamedLoadHandlerCompiler::GenerateLoadCallback( |
| 863 Register reg, Handle<ExecutableAccessorInfo> callback) { | 855 Register reg, Handle<ExecutableAccessorInfo> callback) { |
| 864 // Build AccessorInfo::args_ list on the stack and push property name below | 856 // Build AccessorInfo::args_ list on the stack and push property name below |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1292 | 1284 |
| 1293 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1285 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1294 } | 1286 } |
| 1295 | 1287 |
| 1296 | 1288 |
| 1297 #undef __ | 1289 #undef __ |
| 1298 | 1290 |
| 1299 } } // namespace v8::internal | 1291 } } // namespace v8::internal |
| 1300 | 1292 |
| 1301 #endif // V8_TARGET_ARCH_MIPS64 | 1293 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |