OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2448 __ bind(&runtime); | 2448 __ bind(&runtime); |
2449 __ TailCallRuntime(Runtime::kNewStrictArgumentsFast, 3, 1); | 2449 __ TailCallRuntime(Runtime::kNewStrictArgumentsFast, 3, 1); |
2450 } | 2450 } |
2451 | 2451 |
2452 | 2452 |
2453 void RegExpExecStub::Generate(MacroAssembler* masm) { | 2453 void RegExpExecStub::Generate(MacroAssembler* masm) { |
2454 // Just jump directly to runtime if native RegExp is not selected at compile | 2454 // Just jump directly to runtime if native RegExp is not selected at compile |
2455 // time or if regexp entry in generated code is turned off runtime switch or | 2455 // time or if regexp entry in generated code is turned off runtime switch or |
2456 // at compilation. | 2456 // at compilation. |
2457 #ifdef V8_INTERPRETED_REGEXP | 2457 #ifdef V8_INTERPRETED_REGEXP |
2458 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); | 2458 __ TailCallRuntime(Runtime::kHiddenRegExpExec, 4, 1); |
2459 #else // V8_INTERPRETED_REGEXP | 2459 #else // V8_INTERPRETED_REGEXP |
2460 | 2460 |
2461 // Stack frame on entry. | 2461 // Stack frame on entry. |
2462 // sp[0]: last_match_info (expected JSArray) | 2462 // sp[0]: last_match_info (expected JSArray) |
2463 // sp[4]: previous index | 2463 // sp[4]: previous index |
2464 // sp[8]: subject string | 2464 // sp[8]: subject string |
2465 // sp[12]: JSRegExp object | 2465 // sp[12]: JSRegExp object |
2466 | 2466 |
2467 const int kLastMatchInfoOffset = 0 * kPointerSize; | 2467 const int kLastMatchInfoOffset = 0 * kPointerSize; |
2468 const int kPreviousIndexOffset = 1 * kPointerSize; | 2468 const int kPreviousIndexOffset = 1 * kPointerSize; |
(...skipping 2983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5452 MemOperand(fp, 6 * kPointerSize), | 5452 MemOperand(fp, 6 * kPointerSize), |
5453 NULL); | 5453 NULL); |
5454 } | 5454 } |
5455 | 5455 |
5456 | 5456 |
5457 #undef __ | 5457 #undef __ |
5458 | 5458 |
5459 } } // namespace v8::internal | 5459 } } // namespace v8::internal |
5460 | 5460 |
5461 #endif // V8_TARGET_ARCH_ARM | 5461 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |