| 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 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 } | 1082 } |
| 1083 | 1083 |
| 1084 void LoadWithInterceptor(MacroAssembler* masm, | 1084 void LoadWithInterceptor(MacroAssembler* masm, |
| 1085 Register receiver, | 1085 Register receiver, |
| 1086 Register holder, | 1086 Register holder, |
| 1087 Handle<JSObject> holder_obj, | 1087 Handle<JSObject> holder_obj, |
| 1088 Register scratch, | 1088 Register scratch, |
| 1089 Label* interceptor_succeeded) { | 1089 Label* interceptor_succeeded) { |
| 1090 { | 1090 { |
| 1091 FrameScope scope(masm, StackFrame::INTERNAL); | 1091 FrameScope scope(masm, StackFrame::INTERNAL); |
| 1092 __ Push(receiver, holder, name_); | 1092 __ Push(receiver); |
| 1093 __ Push(holder, name_); |
| 1093 CompileCallLoadPropertyWithInterceptor( | 1094 CompileCallLoadPropertyWithInterceptor( |
| 1094 masm, receiver, holder, name_, holder_obj, | 1095 masm, receiver, holder, name_, holder_obj, |
| 1095 IC::kLoadPropertyWithInterceptorOnly); | 1096 IC::kLoadPropertyWithInterceptorOnly); |
| 1096 __ pop(name_); | 1097 __ pop(name_); |
| 1097 __ pop(holder); | 1098 __ pop(holder); |
| 1098 __ pop(receiver); | 1099 __ pop(receiver); |
| 1099 } | 1100 } |
| 1100 // If interceptor returns no-result sentinel, call the constant function. | 1101 // If interceptor returns no-result sentinel, call the constant function. |
| 1101 __ LoadRoot(scratch, Heap::kNoInterceptorResultSentinelRootIndex); | 1102 __ LoadRoot(scratch, Heap::kNoInterceptorResultSentinelRootIndex); |
| 1102 __ cmp(r0, scratch); | 1103 __ cmp(r0, scratch); |
| (...skipping 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2889 // ----------------------------------- | 2890 // ----------------------------------- |
| 2890 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 2891 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 2891 } | 2892 } |
| 2892 | 2893 |
| 2893 | 2894 |
| 2894 #undef __ | 2895 #undef __ |
| 2895 | 2896 |
| 2896 } } // namespace v8::internal | 2897 } } // namespace v8::internal |
| 2897 | 2898 |
| 2898 #endif // V8_TARGET_ARCH_ARM | 2899 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |