| 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 2420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2431 } | 2431 } |
| 2432 | 2432 |
| 2433 | 2433 |
| 2434 void RegExpExecStub::Generate(MacroAssembler* masm) { | 2434 void RegExpExecStub::Generate(MacroAssembler* masm) { |
| 2435 // Just jump directly to runtime if native RegExp is not selected at compile | 2435 // Just jump directly to runtime if native RegExp is not selected at compile |
| 2436 // time or if regexp entry in generated code is turned off runtime switch or | 2436 // time or if regexp entry in generated code is turned off runtime switch or |
| 2437 // at compilation. | 2437 // at compilation. |
| 2438 #ifdef V8_INTERPRETED_REGEXP | 2438 #ifdef V8_INTERPRETED_REGEXP |
| 2439 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); | 2439 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); |
| 2440 #else // V8_INTERPRETED_REGEXP | 2440 #else // V8_INTERPRETED_REGEXP |
| 2441 if (!FLAG_regexp_entry_native) { | |
| 2442 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); | |
| 2443 return; | |
| 2444 } | |
| 2445 | 2441 |
| 2446 // Stack frame on entry. | 2442 // Stack frame on entry. |
| 2447 // rsp[0]: return address | 2443 // rsp[0]: return address |
| 2448 // rsp[8]: last_match_info (expected JSArray) | 2444 // rsp[8]: last_match_info (expected JSArray) |
| 2449 // rsp[16]: previous index | 2445 // rsp[16]: previous index |
| 2450 // rsp[24]: subject string | 2446 // rsp[24]: subject string |
| 2451 // rsp[32]: JSRegExp object | 2447 // rsp[32]: JSRegExp object |
| 2452 | 2448 |
| 2453 static const int kLastMatchInfoOffset = 1 * kPointerSize; | 2449 static const int kLastMatchInfoOffset = 1 * kPointerSize; |
| 2454 static const int kPreviousIndexOffset = 2 * kPointerSize; | 2450 static const int kPreviousIndexOffset = 2 * kPointerSize; |
| (...skipping 3460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5915 | 5911 |
| 5916 // Fall through when we need to inform the incremental marker. | 5912 // Fall through when we need to inform the incremental marker. |
| 5917 } | 5913 } |
| 5918 | 5914 |
| 5919 | 5915 |
| 5920 #undef __ | 5916 #undef __ |
| 5921 | 5917 |
| 5922 } } // namespace v8::internal | 5918 } } // namespace v8::internal |
| 5923 | 5919 |
| 5924 #endif // V8_TARGET_ARCH_X64 | 5920 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |