OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/arguments.h" | 7 #include "src/arguments.h" |
8 #include "src/jsregexp-inl.h" | 8 #include "src/jsregexp-inl.h" |
9 #include "src/jsregexp.h" | 9 #include "src/jsregexp.h" |
10 #include "src/runtime/runtime-utils.h" | 10 #include "src/runtime/runtime-utils.h" |
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1097 if (regexp->CaptureCount() == 0) { | 1097 if (regexp->CaptureCount() == 0) { |
1098 return SearchRegExpMultiple<false>(isolate, subject, regexp, | 1098 return SearchRegExpMultiple<false>(isolate, subject, regexp, |
1099 last_match_info, result_array); | 1099 last_match_info, result_array); |
1100 } else { | 1100 } else { |
1101 return SearchRegExpMultiple<true>(isolate, subject, regexp, last_match_info, | 1101 return SearchRegExpMultiple<true>(isolate, subject, regexp, last_match_info, |
1102 result_array); | 1102 result_array); |
1103 } | 1103 } |
1104 } | 1104 } |
1105 | 1105 |
1106 | 1106 |
1107 RUNTIME_FUNCTION(RuntimeReference_RegExpConstructResult) { | 1107 RUNTIME_FUNCTION(Runtime_RegExpExec) { |
1108 SealHandleScope shs(isolate); | |
1109 return __RT_impl_Runtime_RegExpConstructResult(args, isolate); | |
1110 } | |
1111 | |
1112 | |
1113 RUNTIME_FUNCTION(RuntimeReference_RegExpExec) { | |
1114 SealHandleScope shs(isolate); | 1108 SealHandleScope shs(isolate); |
1115 return __RT_impl_Runtime_RegExpExecRT(args, isolate); | 1109 return __RT_impl_Runtime_RegExpExecRT(args, isolate); |
1116 } | 1110 } |
1117 | 1111 |
1118 | 1112 |
1119 RUNTIME_FUNCTION(RuntimeReference_IsRegExp) { | 1113 RUNTIME_FUNCTION(Runtime_IsRegExp) { |
1120 SealHandleScope shs(isolate); | 1114 SealHandleScope shs(isolate); |
1121 DCHECK(args.length() == 1); | 1115 DCHECK(args.length() == 1); |
1122 CONVERT_ARG_CHECKED(Object, obj, 0); | 1116 CONVERT_ARG_CHECKED(Object, obj, 0); |
1123 return isolate->heap()->ToBoolean(obj->IsJSRegExp()); | 1117 return isolate->heap()->ToBoolean(obj->IsJSRegExp()); |
1124 } | 1118 } |
1125 } | 1119 } |
1126 } // namespace v8::internal | 1120 } // namespace v8::internal |
OLD | NEW |