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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 if (!miss->is_unused()) { | 833 if (!miss->is_unused()) { |
834 Label success; | 834 Label success; |
835 __ Branch(&success); | 835 __ Branch(&success); |
836 GenerateRestoreName(miss, name); | 836 GenerateRestoreName(miss, name); |
837 TailCallBuiltin(masm(), MissBuiltin(kind())); | 837 TailCallBuiltin(masm(), MissBuiltin(kind())); |
838 __ bind(&success); | 838 __ bind(&success); |
839 } | 839 } |
840 } | 840 } |
841 | 841 |
842 | 842 |
843 void NamedLoadHandlerCompiler::GenerateLoadField( | |
844 Register reg, FieldIndex field, Representation representation) { | |
845 if (!reg.is(receiver())) __ mov(receiver(), reg); | |
846 LoadFieldStub stub(isolate(), field); | |
847 GenerateTailCall(masm(), stub.GetCode()); | |
848 } | |
849 | |
850 | |
851 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { | 843 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { |
852 // Return the constant value. | 844 // Return the constant value. |
853 __ li(v0, value); | 845 __ li(v0, value); |
854 __ Ret(); | 846 __ Ret(); |
855 } | 847 } |
856 | 848 |
857 | 849 |
858 void NamedLoadHandlerCompiler::GenerateLoadCallback( | 850 void NamedLoadHandlerCompiler::GenerateLoadCallback( |
859 Register reg, Handle<ExecutableAccessorInfo> callback) { | 851 Register reg, Handle<ExecutableAccessorInfo> callback) { |
860 // Build AccessorInfo::args_ list on the stack and push property name below | 852 // Build AccessorInfo::args_ list on the stack and push property name below |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 | 1279 |
1288 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1280 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1289 } | 1281 } |
1290 | 1282 |
1291 | 1283 |
1292 #undef __ | 1284 #undef __ |
1293 | 1285 |
1294 } } // namespace v8::internal | 1286 } } // namespace v8::internal |
1295 | 1287 |
1296 #endif // V8_TARGET_ARCH_MIPS | 1288 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |