Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: src/runtime/runtime-regexp.cc

Issue 983623002: Made the entries of the various *_FUNCTION_LISTs disjoint. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/runtime/runtime-proxy.cc ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/runtime/runtime-proxy.cc ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698