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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 | 845 |
846 | 846 |
847 void NamedLoadHandlerCompiler::GenerateLoadField( | 847 void NamedLoadHandlerCompiler::GenerateLoadField( |
848 Register reg, FieldIndex field, Representation representation) { | 848 Register reg, FieldIndex field, Representation representation) { |
849 if (!reg.is(receiver())) __ mov(receiver(), reg); | 849 if (!reg.is(receiver())) __ mov(receiver(), reg); |
850 LoadFieldStub stub(isolate(), field); | 850 LoadFieldStub stub(isolate(), field); |
851 GenerateTailCall(masm(), stub.GetCode()); | 851 GenerateTailCall(masm(), stub.GetCode()); |
852 } | 852 } |
853 | 853 |
854 | 854 |
| 855 void NamedLoadHandlerCompiler::GenerateLoadConstant(Register reg, |
| 856 int constant_index) { |
| 857 if (!reg.is(receiver())) __ mov(receiver(), reg); |
| 858 LoadConstantStub stub(isolate(), constant_index); |
| 859 GenerateTailCall(masm(), stub.GetCode()); |
| 860 } |
| 861 |
| 862 |
855 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { | 863 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { |
856 // Return the constant value. | 864 // Return the constant value. |
857 __ li(v0, value); | 865 __ li(v0, value); |
858 __ Ret(); | 866 __ Ret(); |
859 } | 867 } |
860 | 868 |
861 | 869 |
862 void NamedLoadHandlerCompiler::GenerateLoadCallback( | 870 void NamedLoadHandlerCompiler::GenerateLoadCallback( |
863 Register reg, Handle<ExecutableAccessorInfo> callback) { | 871 Register reg, Handle<ExecutableAccessorInfo> callback) { |
864 // Build AccessorInfo::args_ list on the stack and push property name below | 872 // 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 | 1300 |
1293 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1301 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1294 } | 1302 } |
1295 | 1303 |
1296 | 1304 |
1297 #undef __ | 1305 #undef __ |
1298 | 1306 |
1299 } } // namespace v8::internal | 1307 } } // namespace v8::internal |
1300 | 1308 |
1301 #endif // V8_TARGET_ARCH_MIPS64 | 1309 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |