OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
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 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1235 __ bind(&runtime); | 1235 __ bind(&runtime); |
1236 __ TailCallRuntime(Runtime::kNewStrictArguments, 3, 1); | 1236 __ TailCallRuntime(Runtime::kNewStrictArguments, 3, 1); |
1237 } | 1237 } |
1238 | 1238 |
1239 | 1239 |
1240 void RegExpExecStub::Generate(MacroAssembler* masm) { | 1240 void RegExpExecStub::Generate(MacroAssembler* masm) { |
1241 // Just jump directly to runtime if native RegExp is not selected at compile | 1241 // Just jump directly to runtime if native RegExp is not selected at compile |
1242 // time or if regexp entry in generated code is turned off runtime switch or | 1242 // time or if regexp entry in generated code is turned off runtime switch or |
1243 // at compilation. | 1243 // at compilation. |
1244 #ifdef V8_INTERPRETED_REGEXP | 1244 #ifdef V8_INTERPRETED_REGEXP |
1245 __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); | 1245 __ TailCallRuntime(Runtime::kRegExpExecRT, 4, 1); |
1246 #else // V8_INTERPRETED_REGEXP | 1246 #else // V8_INTERPRETED_REGEXP |
1247 | 1247 |
1248 // Stack frame on entry. | 1248 // Stack frame on entry. |
1249 // rsp[0] : return address | 1249 // rsp[0] : return address |
1250 // rsp[8] : last_match_info (expected JSArray) | 1250 // rsp[8] : last_match_info (expected JSArray) |
1251 // rsp[16] : previous index | 1251 // rsp[16] : previous index |
1252 // rsp[24] : subject string | 1252 // rsp[24] : subject string |
1253 // rsp[32] : JSRegExp object | 1253 // rsp[32] : JSRegExp object |
1254 | 1254 |
1255 enum RegExpExecStubArgumentIndices { | 1255 enum RegExpExecStubArgumentIndices { |
(...skipping 3722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4978 return_value_operand, | 4978 return_value_operand, |
4979 NULL); | 4979 NULL); |
4980 } | 4980 } |
4981 | 4981 |
4982 | 4982 |
4983 #undef __ | 4983 #undef __ |
4984 | 4984 |
4985 } } // namespace v8::internal | 4985 } } // namespace v8::internal |
4986 | 4986 |
4987 #endif // V8_TARGET_ARCH_X64 | 4987 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |