| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1146 __ mov(lr, Operand(pc)); | 1146 __ mov(lr, Operand(pc)); |
| 1147 } | 1147 } |
| 1148 #endif | 1148 #endif |
| 1149 | 1149 |
| 1150 // Restore callee-saved vfp registers. | 1150 // Restore callee-saved vfp registers. |
| 1151 __ vldm(ia_w, sp, kFirstCalleeSavedDoubleReg, kLastCalleeSavedDoubleReg); | 1151 __ vldm(ia_w, sp, kFirstCalleeSavedDoubleReg, kLastCalleeSavedDoubleReg); |
| 1152 | 1152 |
| 1153 __ ldm(ia_w, sp, kCalleeSaved | pc.bit()); | 1153 __ ldm(ia_w, sp, kCalleeSaved | pc.bit()); |
| 1154 } | 1154 } |
| 1155 | 1155 |
| 1156 | |
| 1157 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { | |
| 1158 Label miss; | |
| 1159 Register receiver = LoadDescriptor::ReceiverRegister(); | |
| 1160 // Ensure that the vector and slot registers won't be clobbered before | |
| 1161 // calling the miss handler. | |
| 1162 DCHECK(!AreAliased(r4, r5, LoadWithVectorDescriptor::VectorRegister(), | |
| 1163 LoadWithVectorDescriptor::SlotRegister())); | |
| 1164 | |
| 1165 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, r4, | |
| 1166 r5, &miss); | |
| 1167 __ bind(&miss); | |
| 1168 PropertyAccessCompiler::TailCallBuiltin( | |
| 1169 masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC)); | |
| 1170 } | |
| 1171 | |
| 1172 void RegExpExecStub::Generate(MacroAssembler* masm) { | 1156 void RegExpExecStub::Generate(MacroAssembler* masm) { |
| 1173 // Just jump directly to runtime if native RegExp is not selected at compile | 1157 // Just jump directly to runtime if native RegExp is not selected at compile |
| 1174 // time or if regexp entry in generated code is turned off runtime switch or | 1158 // time or if regexp entry in generated code is turned off runtime switch or |
| 1175 // at compilation. | 1159 // at compilation. |
| 1176 #ifdef V8_INTERPRETED_REGEXP | 1160 #ifdef V8_INTERPRETED_REGEXP |
| 1177 __ TailCallRuntime(Runtime::kRegExpExec); | 1161 __ TailCallRuntime(Runtime::kRegExpExec); |
| 1178 #else // V8_INTERPRETED_REGEXP | 1162 #else // V8_INTERPRETED_REGEXP |
| 1179 | 1163 |
| 1180 // Stack frame on entry. | 1164 // Stack frame on entry. |
| 1181 // sp[0]: last_match_info (expected JSArray) | 1165 // sp[0]: last_match_info (expected JSArray) |
| (...skipping 2158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3340 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 3324 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
| 3341 kStackUnwindSpace, NULL, return_value_operand, NULL); | 3325 kStackUnwindSpace, NULL, return_value_operand, NULL); |
| 3342 } | 3326 } |
| 3343 | 3327 |
| 3344 #undef __ | 3328 #undef __ |
| 3345 | 3329 |
| 3346 } // namespace internal | 3330 } // namespace internal |
| 3347 } // namespace v8 | 3331 } // namespace v8 |
| 3348 | 3332 |
| 3349 #endif // V8_TARGET_ARCH_ARM | 3333 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |