OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 void LoadStubCompiler::GenerateLoadField(Register reg, | 1021 void LoadStubCompiler::GenerateLoadField(Register reg, |
1022 Handle<JSObject> holder, | 1022 Handle<JSObject> holder, |
1023 PropertyIndex field, | 1023 PropertyIndex field, |
1024 Representation representation) { | 1024 Representation representation) { |
1025 if (!reg.is(receiver())) __ mov(receiver(), reg); | 1025 if (!reg.is(receiver())) __ mov(receiver(), reg); |
1026 if (kind() == Code::LOAD_IC) { | 1026 if (kind() == Code::LOAD_IC) { |
1027 LoadFieldStub stub(isolate(), | 1027 LoadFieldStub stub(isolate(), |
1028 field.is_inobject(holder), | 1028 field.is_inobject(holder), |
1029 field.translate(holder), | 1029 field.translate(holder), |
1030 representation); | 1030 representation); |
1031 GenerateTailCall(masm(), stub.GetCode(isolate())); | 1031 GenerateTailCall(masm(), stub.GetCode()); |
1032 } else { | 1032 } else { |
1033 KeyedLoadFieldStub stub(isolate(), | 1033 KeyedLoadFieldStub stub(isolate(), |
1034 field.is_inobject(holder), | 1034 field.is_inobject(holder), |
1035 field.translate(holder), | 1035 field.translate(holder), |
1036 representation); | 1036 representation); |
1037 GenerateTailCall(masm(), stub.GetCode(isolate())); | 1037 GenerateTailCall(masm(), stub.GetCode()); |
1038 } | 1038 } |
1039 } | 1039 } |
1040 | 1040 |
1041 | 1041 |
1042 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { | 1042 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { |
1043 // Return the constant value. | 1043 // Return the constant value. |
1044 __ li(v0, value); | 1044 __ li(v0, value); |
1045 __ Ret(); | 1045 __ Ret(); |
1046 } | 1046 } |
1047 | 1047 |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1549 // ----------------------------------- | 1549 // ----------------------------------- |
1550 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1550 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1551 } | 1551 } |
1552 | 1552 |
1553 | 1553 |
1554 #undef __ | 1554 #undef __ |
1555 | 1555 |
1556 } } // namespace v8::internal | 1556 } } // namespace v8::internal |
1557 | 1557 |
1558 #endif // V8_TARGET_ARCH_MIPS | 1558 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |