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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 2416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2427 __ bind(&runtime); | 2427 __ bind(&runtime); |
2428 __ TailCallRuntime(Runtime::kNewStrictArguments, 3, 1); | 2428 __ TailCallRuntime(Runtime::kNewStrictArguments, 3, 1); |
2429 } | 2429 } |
2430 | 2430 |
2431 | 2431 |
2432 void RegExpExecStub::Generate(MacroAssembler* masm) { | 2432 void RegExpExecStub::Generate(MacroAssembler* masm) { |
2433 // Just jump directly to runtime if native RegExp is not selected at compile | 2433 // Just jump directly to runtime if native RegExp is not selected at compile |
2434 // time or if regexp entry in generated code is turned off runtime switch or | 2434 // time or if regexp entry in generated code is turned off runtime switch or |
2435 // at compilation. | 2435 // at compilation. |
2436 #ifdef V8_INTERPRETED_REGEXP | 2436 #ifdef V8_INTERPRETED_REGEXP |
2437 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); | 2437 __ TailCallRuntime(Runtime::kRegExpExecRT, 4, 1); |
2438 #else // V8_INTERPRETED_REGEXP | 2438 #else // V8_INTERPRETED_REGEXP |
2439 | 2439 |
2440 // Stack frame on entry. | 2440 // Stack frame on entry. |
2441 // sp[0]: last_match_info (expected JSArray) | 2441 // sp[0]: last_match_info (expected JSArray) |
2442 // sp[4]: previous index | 2442 // sp[4]: previous index |
2443 // sp[8]: subject string | 2443 // sp[8]: subject string |
2444 // sp[12]: JSRegExp object | 2444 // sp[12]: JSRegExp object |
2445 | 2445 |
2446 const int kLastMatchInfoOffset = 0 * kPointerSize; | 2446 const int kLastMatchInfoOffset = 0 * kPointerSize; |
2447 const int kPreviousIndexOffset = 1 * kPointerSize; | 2447 const int kPreviousIndexOffset = 1 * kPointerSize; |
(...skipping 2889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5337 MemOperand(fp, 6 * kPointerSize), | 5337 MemOperand(fp, 6 * kPointerSize), |
5338 NULL); | 5338 NULL); |
5339 } | 5339 } |
5340 | 5340 |
5341 | 5341 |
5342 #undef __ | 5342 #undef __ |
5343 | 5343 |
5344 } } // namespace v8::internal | 5344 } } // namespace v8::internal |
5345 | 5345 |
5346 #endif // V8_TARGET_ARCH_MIPS | 5346 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |