OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 4408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4419 } | 4419 } |
4420 | 4420 |
4421 | 4421 |
4422 void RegExpExecStub::Generate(MacroAssembler* masm) { | 4422 void RegExpExecStub::Generate(MacroAssembler* masm) { |
4423 // Just jump directly to runtime if native RegExp is not selected at compile | 4423 // Just jump directly to runtime if native RegExp is not selected at compile |
4424 // time or if regexp entry in generated code is turned off runtime switch or | 4424 // time or if regexp entry in generated code is turned off runtime switch or |
4425 // at compilation. | 4425 // at compilation. |
4426 #ifdef V8_INTERPRETED_REGEXP | 4426 #ifdef V8_INTERPRETED_REGEXP |
4427 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); | 4427 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); |
4428 #else // V8_INTERPRETED_REGEXP | 4428 #else // V8_INTERPRETED_REGEXP |
4429 if (!FLAG_regexp_entry_native) { | |
4430 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); | |
4431 return; | |
4432 } | |
4433 | 4429 |
4434 // Stack frame on entry. | 4430 // Stack frame on entry. |
4435 // sp[0]: last_match_info (expected JSArray) | 4431 // sp[0]: last_match_info (expected JSArray) |
4436 // sp[4]: previous index | 4432 // sp[4]: previous index |
4437 // sp[8]: subject string | 4433 // sp[8]: subject string |
4438 // sp[12]: JSRegExp object | 4434 // sp[12]: JSRegExp object |
4439 | 4435 |
4440 static const int kLastMatchInfoOffset = 0 * kPointerSize; | 4436 static const int kLastMatchInfoOffset = 0 * kPointerSize; |
4441 static const int kPreviousIndexOffset = 1 * kPointerSize; | 4437 static const int kPreviousIndexOffset = 1 * kPointerSize; |
4442 static const int kSubjectOffset = 2 * kPointerSize; | 4438 static const int kSubjectOffset = 2 * kPointerSize; |
(...skipping 2723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7166 | 7162 |
7167 // Fall through when we need to inform the incremental marker. | 7163 // Fall through when we need to inform the incremental marker. |
7168 } | 7164 } |
7169 | 7165 |
7170 | 7166 |
7171 #undef __ | 7167 #undef __ |
7172 | 7168 |
7173 } } // namespace v8::internal | 7169 } } // namespace v8::internal |
7174 | 7170 |
7175 #endif // V8_TARGET_ARCH_ARM | 7171 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |