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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
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 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1352 __ bind(&runtime); | 1352 __ bind(&runtime); |
1353 __ TailCallRuntime(Runtime::kNewStrictArguments, 3, 1); | 1353 __ TailCallRuntime(Runtime::kNewStrictArguments, 3, 1); |
1354 } | 1354 } |
1355 | 1355 |
1356 | 1356 |
1357 void RegExpExecStub::Generate(MacroAssembler* masm) { | 1357 void RegExpExecStub::Generate(MacroAssembler* masm) { |
1358 // Just jump directly to runtime if native RegExp is not selected at compile | 1358 // Just jump directly to runtime if native RegExp is not selected at compile |
1359 // time or if regexp entry in generated code is turned off runtime switch or | 1359 // time or if regexp entry in generated code is turned off runtime switch or |
1360 // at compilation. | 1360 // at compilation. |
1361 #ifdef V8_INTERPRETED_REGEXP | 1361 #ifdef V8_INTERPRETED_REGEXP |
1362 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); | 1362 __ TailCallRuntime(Runtime::kRegExpExecRT, 4, 1); |
1363 #else // V8_INTERPRETED_REGEXP | 1363 #else // V8_INTERPRETED_REGEXP |
1364 | 1364 |
1365 // Stack frame on entry. | 1365 // Stack frame on entry. |
1366 // esp[0]: return address | 1366 // esp[0]: return address |
1367 // esp[4]: last_match_info (expected JSArray) | 1367 // esp[4]: last_match_info (expected JSArray) |
1368 // esp[8]: previous index | 1368 // esp[8]: previous index |
1369 // esp[12]: subject string | 1369 // esp[12]: subject string |
1370 // esp[16]: JSRegExp object | 1370 // esp[16]: JSRegExp object |
1371 | 1371 |
1372 static const int kLastMatchInfoOffset = 1 * kPointerSize; | 1372 static const int kLastMatchInfoOffset = 1 * kPointerSize; |
(...skipping 3644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5017 Operand(ebp, 7 * kPointerSize), | 5017 Operand(ebp, 7 * kPointerSize), |
5018 NULL); | 5018 NULL); |
5019 } | 5019 } |
5020 | 5020 |
5021 | 5021 |
5022 #undef __ | 5022 #undef __ |
5023 | 5023 |
5024 } } // namespace v8::internal | 5024 } } // namespace v8::internal |
5025 | 5025 |
5026 #endif // V8_TARGET_ARCH_IA32 | 5026 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |