| 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 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2106 // Return the generated code. | 2106 // Return the generated code. |
| 2107 return GetCode(Code::NORMAL, name); | 2107 return GetCode(Code::NORMAL, name); |
| 2108 } | 2108 } |
| 2109 | 2109 |
| 2110 | 2110 |
| 2111 Handle<Code> StoreStubCompiler::CompileStoreCallback( | 2111 Handle<Code> StoreStubCompiler::CompileStoreCallback( |
| 2112 Handle<JSObject> object, | 2112 Handle<JSObject> object, |
| 2113 Handle<JSObject> holder, | 2113 Handle<JSObject> holder, |
| 2114 Handle<Name> name, | 2114 Handle<Name> name, |
| 2115 Handle<ExecutableAccessorInfo> callback) { | 2115 Handle<ExecutableAccessorInfo> callback) { |
| 2116 HandlerFrontend(IC::CurrentTypeOf(object, isolate()), | 2116 Register holder_reg = HandlerFrontend( |
| 2117 receiver(), holder, name); | 2117 IC::CurrentTypeOf(object, isolate()), receiver(), holder, name); |
| 2118 | 2118 |
| 2119 // Stub never generated for non-global objects that require access | 2119 // Stub never generated for non-global objects that require access |
| 2120 // checks. | 2120 // checks. |
| 2121 ASSERT(holder->IsJSGlobalProxy() || !holder->IsAccessCheckNeeded()); | 2121 ASSERT(holder->IsJSGlobalProxy() || !holder->IsAccessCheckNeeded()); |
| 2122 | 2122 |
| 2123 __ push(receiver()); // Receiver. | 2123 __ push(receiver()); // Receiver. |
| 2124 __ push(holder_reg); |
| 2124 __ li(at, Operand(callback)); // Callback info. | 2125 __ li(at, Operand(callback)); // Callback info. |
| 2125 __ push(at); | 2126 __ push(at); |
| 2126 __ li(at, Operand(name)); | 2127 __ li(at, Operand(name)); |
| 2127 __ Push(at, value()); | 2128 __ Push(at, value()); |
| 2128 | 2129 |
| 2129 // Do tail-call to the runtime system. | 2130 // Do tail-call to the runtime system. |
| 2130 ExternalReference store_callback_property = | 2131 ExternalReference store_callback_property = |
| 2131 ExternalReference(IC_Utility(IC::kStoreCallbackProperty), isolate()); | 2132 ExternalReference(IC_Utility(IC::kStoreCallbackProperty), isolate()); |
| 2132 __ TailCallExternalReference(store_callback_property, 4, 1); | 2133 __ TailCallExternalReference(store_callback_property, 5, 1); |
| 2133 | 2134 |
| 2134 // Return the generated code. | 2135 // Return the generated code. |
| 2135 return GetCode(kind(), Code::FAST, name); | 2136 return GetCode(kind(), Code::FAST, name); |
| 2136 } | 2137 } |
| 2137 | 2138 |
| 2138 | 2139 |
| 2139 Handle<Code> StoreStubCompiler::CompileStoreCallback( | 2140 Handle<Code> StoreStubCompiler::CompileStoreCallback( |
| 2140 Handle<JSObject> object, | 2141 Handle<JSObject> object, |
| 2141 Handle<JSObject> holder, | 2142 Handle<JSObject> holder, |
| 2142 Handle<Name> name, | 2143 Handle<Name> name, |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2470 // ----------------------------------- | 2471 // ----------------------------------- |
| 2471 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 2472 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 2472 } | 2473 } |
| 2473 | 2474 |
| 2474 | 2475 |
| 2475 #undef __ | 2476 #undef __ |
| 2476 | 2477 |
| 2477 } } // namespace v8::internal | 2478 } } // namespace v8::internal |
| 2478 | 2479 |
| 2479 #endif // V8_TARGET_ARCH_MIPS | 2480 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |