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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 void LoadStubCompiler::GenerateLoadField(Register reg, | 1030 void LoadStubCompiler::GenerateLoadField(Register reg, |
1031 Handle<JSObject> holder, | 1031 Handle<JSObject> holder, |
1032 PropertyIndex field, | 1032 PropertyIndex field, |
1033 Representation representation) { | 1033 Representation representation) { |
1034 if (!reg.is(receiver())) __ mov(receiver(), reg); | 1034 if (!reg.is(receiver())) __ mov(receiver(), reg); |
1035 if (kind() == Code::LOAD_IC) { | 1035 if (kind() == Code::LOAD_IC) { |
1036 LoadFieldStub stub(isolate(), | 1036 LoadFieldStub stub(isolate(), |
1037 field.is_inobject(holder), | 1037 field.is_inobject(holder), |
1038 field.translate(holder), | 1038 field.translate(holder), |
1039 representation); | 1039 representation); |
1040 GenerateTailCall(masm(), stub.GetCode(isolate())); | 1040 GenerateTailCall(masm(), stub.GetCode()); |
1041 } else { | 1041 } else { |
1042 KeyedLoadFieldStub stub(isolate(), | 1042 KeyedLoadFieldStub stub(isolate(), |
1043 field.is_inobject(holder), | 1043 field.is_inobject(holder), |
1044 field.translate(holder), | 1044 field.translate(holder), |
1045 representation); | 1045 representation); |
1046 GenerateTailCall(masm(), stub.GetCode(isolate())); | 1046 GenerateTailCall(masm(), stub.GetCode()); |
1047 } | 1047 } |
1048 } | 1048 } |
1049 | 1049 |
1050 | 1050 |
1051 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { | 1051 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { |
1052 // Return the constant value. | 1052 // Return the constant value. |
1053 __ Move(r0, value); | 1053 __ Move(r0, value); |
1054 __ Ret(); | 1054 __ Ret(); |
1055 } | 1055 } |
1056 | 1056 |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1558 // ----------------------------------- | 1558 // ----------------------------------- |
1559 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1559 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1560 } | 1560 } |
1561 | 1561 |
1562 | 1562 |
1563 #undef __ | 1563 #undef __ |
1564 | 1564 |
1565 } } // namespace v8::internal | 1565 } } // namespace v8::internal |
1566 | 1566 |
1567 #endif // V8_TARGET_ARCH_ARM | 1567 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |