| 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 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2123 // Return the generated code. | 2123 // Return the generated code. |
| 2124 return GetCode(Code::NORMAL, name); | 2124 return GetCode(Code::NORMAL, name); |
| 2125 } | 2125 } |
| 2126 | 2126 |
| 2127 | 2127 |
| 2128 Handle<Code> StoreStubCompiler::CompileStoreCallback( | 2128 Handle<Code> StoreStubCompiler::CompileStoreCallback( |
| 2129 Handle<JSObject> object, | 2129 Handle<JSObject> object, |
| 2130 Handle<JSObject> holder, | 2130 Handle<JSObject> holder, |
| 2131 Handle<Name> name, | 2131 Handle<Name> name, |
| 2132 Handle<ExecutableAccessorInfo> callback) { | 2132 Handle<ExecutableAccessorInfo> callback) { |
| 2133 HandlerFrontend(IC::CurrentTypeOf(object, isolate()), | 2133 Register holder_reg = HandlerFrontend( |
| 2134 receiver(), holder, name); | 2134 IC::CurrentTypeOf(object, isolate()), receiver(), holder, name); |
| 2135 | 2135 |
| 2136 // Stub never generated for non-global objects that require access checks. | 2136 // Stub never generated for non-global objects that require access checks. |
| 2137 ASSERT(holder->IsJSGlobalProxy() || !holder->IsAccessCheckNeeded()); | 2137 ASSERT(holder->IsJSGlobalProxy() || !holder->IsAccessCheckNeeded()); |
| 2138 | 2138 |
| 2139 __ push(receiver()); // receiver | 2139 __ push(receiver()); // receiver |
| 2140 __ push(holder_reg); |
| 2140 __ mov(ip, Operand(callback)); // callback info | 2141 __ mov(ip, Operand(callback)); // callback info |
| 2141 __ push(ip); | 2142 __ push(ip); |
| 2142 __ mov(ip, Operand(name)); | 2143 __ mov(ip, Operand(name)); |
| 2143 __ Push(ip, value()); | 2144 __ Push(ip, value()); |
| 2144 | 2145 |
| 2145 // Do tail-call to the runtime system. | 2146 // Do tail-call to the runtime system. |
| 2146 ExternalReference store_callback_property = | 2147 ExternalReference store_callback_property = |
| 2147 ExternalReference(IC_Utility(IC::kStoreCallbackProperty), isolate()); | 2148 ExternalReference(IC_Utility(IC::kStoreCallbackProperty), isolate()); |
| 2148 __ TailCallExternalReference(store_callback_property, 4, 1); | 2149 __ TailCallExternalReference(store_callback_property, 5, 1); |
| 2149 | 2150 |
| 2150 // Return the generated code. | 2151 // Return the generated code. |
| 2151 return GetCode(kind(), Code::FAST, name); | 2152 return GetCode(kind(), Code::FAST, name); |
| 2152 } | 2153 } |
| 2153 | 2154 |
| 2154 | 2155 |
| 2155 Handle<Code> StoreStubCompiler::CompileStoreCallback( | 2156 Handle<Code> StoreStubCompiler::CompileStoreCallback( |
| 2156 Handle<JSObject> object, | 2157 Handle<JSObject> object, |
| 2157 Handle<JSObject> holder, | 2158 Handle<JSObject> holder, |
| 2158 Handle<Name> name, | 2159 Handle<Name> name, |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2488 // ----------------------------------- | 2489 // ----------------------------------- |
| 2489 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 2490 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 2490 } | 2491 } |
| 2491 | 2492 |
| 2492 | 2493 |
| 2493 #undef __ | 2494 #undef __ |
| 2494 | 2495 |
| 2495 } } // namespace v8::internal | 2496 } } // namespace v8::internal |
| 2496 | 2497 |
| 2497 #endif // V8_TARGET_ARCH_ARM | 2498 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |