| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1333 __ bind(&runtime); | 1333 __ bind(&runtime); |
| 1334 __ TailCallRuntime(Runtime::kNewStrictArgumentsFast, 3, 1); | 1334 __ TailCallRuntime(Runtime::kNewStrictArgumentsFast, 3, 1); |
| 1335 } | 1335 } |
| 1336 | 1336 |
| 1337 | 1337 |
| 1338 void RegExpExecStub::Generate(MacroAssembler* masm) { | 1338 void RegExpExecStub::Generate(MacroAssembler* masm) { |
| 1339 // Just jump directly to runtime if native RegExp is not selected at compile | 1339 // Just jump directly to runtime if native RegExp is not selected at compile |
| 1340 // time or if regexp entry in generated code is turned off runtime switch or | 1340 // time or if regexp entry in generated code is turned off runtime switch or |
| 1341 // at compilation. | 1341 // at compilation. |
| 1342 #ifdef V8_INTERPRETED_REGEXP | 1342 #ifdef V8_INTERPRETED_REGEXP |
| 1343 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); | 1343 __ TailCallRuntime(Runtime::kHiddenRegExpExec, 4, 1); |
| 1344 #else // V8_INTERPRETED_REGEXP | 1344 #else // V8_INTERPRETED_REGEXP |
| 1345 | 1345 |
| 1346 // Stack frame on entry. | 1346 // Stack frame on entry. |
| 1347 // rsp[0] : return address | 1347 // rsp[0] : return address |
| 1348 // rsp[8] : last_match_info (expected JSArray) | 1348 // rsp[8] : last_match_info (expected JSArray) |
| 1349 // rsp[16] : previous index | 1349 // rsp[16] : previous index |
| 1350 // rsp[24] : subject string | 1350 // rsp[24] : subject string |
| 1351 // rsp[32] : JSRegExp object | 1351 // rsp[32] : JSRegExp object |
| 1352 | 1352 |
| 1353 enum RegExpExecStubArgumentIndices { | 1353 enum RegExpExecStubArgumentIndices { |
| (...skipping 3860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5214 return_value_operand, | 5214 return_value_operand, |
| 5215 NULL); | 5215 NULL); |
| 5216 } | 5216 } |
| 5217 | 5217 |
| 5218 | 5218 |
| 5219 #undef __ | 5219 #undef __ |
| 5220 | 5220 |
| 5221 } } // namespace v8::internal | 5221 } } // namespace v8::internal |
| 5222 | 5222 |
| 5223 #endif // V8_TARGET_ARCH_X64 | 5223 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |