| 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_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 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 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2289 __ bind(&runtime); | 2289 __ bind(&runtime); |
| 2290 __ TailCallRuntime(Runtime::kNewStrictArguments, 3, 1); | 2290 __ TailCallRuntime(Runtime::kNewStrictArguments, 3, 1); |
| 2291 } | 2291 } |
| 2292 | 2292 |
| 2293 | 2293 |
| 2294 void RegExpExecStub::Generate(MacroAssembler* masm) { | 2294 void RegExpExecStub::Generate(MacroAssembler* masm) { |
| 2295 // Just jump directly to runtime if native RegExp is not selected at compile | 2295 // Just jump directly to runtime if native RegExp is not selected at compile |
| 2296 // time or if regexp entry in generated code is turned off runtime switch or | 2296 // time or if regexp entry in generated code is turned off runtime switch or |
| 2297 // at compilation. | 2297 // at compilation. |
| 2298 #ifdef V8_INTERPRETED_REGEXP | 2298 #ifdef V8_INTERPRETED_REGEXP |
| 2299 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); | 2299 __ TailCallRuntime(Runtime::kRegExpExecRT, 4, 1); |
| 2300 #else // V8_INTERPRETED_REGEXP | 2300 #else // V8_INTERPRETED_REGEXP |
| 2301 | 2301 |
| 2302 // Stack frame on entry. | 2302 // Stack frame on entry. |
| 2303 // sp[0]: last_match_info (expected JSArray) | 2303 // sp[0]: last_match_info (expected JSArray) |
| 2304 // sp[4]: previous index | 2304 // sp[4]: previous index |
| 2305 // sp[8]: subject string | 2305 // sp[8]: subject string |
| 2306 // sp[12]: JSRegExp object | 2306 // sp[12]: JSRegExp object |
| 2307 | 2307 |
| 2308 const int kLastMatchInfoOffset = 0 * kPointerSize; | 2308 const int kLastMatchInfoOffset = 0 * kPointerSize; |
| 2309 const int kPreviousIndexOffset = 1 * kPointerSize; | 2309 const int kPreviousIndexOffset = 1 * kPointerSize; |
| (...skipping 2800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5110 MemOperand(fp, 6 * kPointerSize), | 5110 MemOperand(fp, 6 * kPointerSize), |
| 5111 NULL); | 5111 NULL); |
| 5112 } | 5112 } |
| 5113 | 5113 |
| 5114 | 5114 |
| 5115 #undef __ | 5115 #undef __ |
| 5116 | 5116 |
| 5117 } } // namespace v8::internal | 5117 } } // namespace v8::internal |
| 5118 | 5118 |
| 5119 #endif // V8_TARGET_ARCH_ARM | 5119 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |