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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
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 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1270 | 1270 |
1271 // Restore callee-saved fpu registers. | 1271 // Restore callee-saved fpu registers. |
1272 __ MultiPopFPU(kCalleeSavedFPU); | 1272 __ MultiPopFPU(kCalleeSavedFPU); |
1273 | 1273 |
1274 // Restore callee saved registers from the stack. | 1274 // Restore callee saved registers from the stack. |
1275 __ MultiPop(kCalleeSaved | ra.bit()); | 1275 __ MultiPop(kCalleeSaved | ra.bit()); |
1276 // Return. | 1276 // Return. |
1277 __ Jump(ra); | 1277 __ Jump(ra); |
1278 } | 1278 } |
1279 | 1279 |
1280 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { | |
1281 Label miss; | |
1282 Register receiver = LoadDescriptor::ReceiverRegister(); | |
1283 // Ensure that the vector and slot registers won't be clobbered before | |
1284 // calling the miss handler. | |
1285 DCHECK(!AreAliased(t0, t1, LoadWithVectorDescriptor::VectorRegister(), | |
1286 LoadWithVectorDescriptor::SlotRegister())); | |
1287 | |
1288 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, t0, | |
1289 t1, &miss); | |
1290 __ bind(&miss); | |
1291 PropertyAccessCompiler::TailCallBuiltin( | |
1292 masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC)); | |
1293 } | |
1294 | |
1295 void RegExpExecStub::Generate(MacroAssembler* masm) { | 1280 void RegExpExecStub::Generate(MacroAssembler* masm) { |
1296 // Just jump directly to runtime if native RegExp is not selected at compile | 1281 // Just jump directly to runtime if native RegExp is not selected at compile |
1297 // time or if regexp entry in generated code is turned off runtime switch or | 1282 // time or if regexp entry in generated code is turned off runtime switch or |
1298 // at compilation. | 1283 // at compilation. |
1299 #ifdef V8_INTERPRETED_REGEXP | 1284 #ifdef V8_INTERPRETED_REGEXP |
1300 __ TailCallRuntime(Runtime::kRegExpExec); | 1285 __ TailCallRuntime(Runtime::kRegExpExec); |
1301 #else // V8_INTERPRETED_REGEXP | 1286 #else // V8_INTERPRETED_REGEXP |
1302 | 1287 |
1303 // Stack frame on entry. | 1288 // Stack frame on entry. |
1304 // sp[0]: last_match_info (expected JSArray) | 1289 // sp[0]: last_match_info (expected JSArray) |
(...skipping 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3538 kStackUnwindSpace, kInvalidStackOffset, | 3523 kStackUnwindSpace, kInvalidStackOffset, |
3539 return_value_operand, NULL); | 3524 return_value_operand, NULL); |
3540 } | 3525 } |
3541 | 3526 |
3542 #undef __ | 3527 #undef __ |
3543 | 3528 |
3544 } // namespace internal | 3529 } // namespace internal |
3545 } // namespace v8 | 3530 } // namespace v8 |
3546 | 3531 |
3547 #endif // V8_TARGET_ARCH_MIPS | 3532 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |