| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 void LoadStubCompiler::GenerateLoadField(Register reg, | 991 void LoadStubCompiler::GenerateLoadField(Register reg, |
| 992 Handle<JSObject> holder, | 992 Handle<JSObject> holder, |
| 993 PropertyIndex field, | 993 PropertyIndex field, |
| 994 Representation representation) { | 994 Representation representation) { |
| 995 __ Mov(receiver(), reg); | 995 __ Mov(receiver(), reg); |
| 996 if (kind() == Code::LOAD_IC) { | 996 if (kind() == Code::LOAD_IC) { |
| 997 LoadFieldStub stub(isolate(), | 997 LoadFieldStub stub(isolate(), |
| 998 field.is_inobject(holder), | 998 field.is_inobject(holder), |
| 999 field.translate(holder), | 999 field.translate(holder), |
| 1000 representation); | 1000 representation); |
| 1001 GenerateTailCall(masm(), stub.GetCode(isolate())); | 1001 GenerateTailCall(masm(), stub.GetCode()); |
| 1002 } else { | 1002 } else { |
| 1003 KeyedLoadFieldStub stub(isolate(), | 1003 KeyedLoadFieldStub stub(isolate(), |
| 1004 field.is_inobject(holder), | 1004 field.is_inobject(holder), |
| 1005 field.translate(holder), | 1005 field.translate(holder), |
| 1006 representation); | 1006 representation); |
| 1007 GenerateTailCall(masm(), stub.GetCode(isolate())); | 1007 GenerateTailCall(masm(), stub.GetCode()); |
| 1008 } | 1008 } |
| 1009 } | 1009 } |
| 1010 | 1010 |
| 1011 | 1011 |
| 1012 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { | 1012 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { |
| 1013 // Return the constant value. | 1013 // Return the constant value. |
| 1014 __ LoadObject(x0, value); | 1014 __ LoadObject(x0, value); |
| 1015 __ Ret(); | 1015 __ Ret(); |
| 1016 } | 1016 } |
| 1017 | 1017 |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1519 | 1519 |
| 1520 // Miss case, call the runtime. | 1520 // Miss case, call the runtime. |
| 1521 __ Bind(&miss); | 1521 __ Bind(&miss); |
| 1522 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1522 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1523 } | 1523 } |
| 1524 | 1524 |
| 1525 | 1525 |
| 1526 } } // namespace v8::internal | 1526 } } // namespace v8::internal |
| 1527 | 1527 |
| 1528 #endif // V8_TARGET_ARCH_ARM64 | 1528 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |