Index: src/runtime/runtime-regexp.cc |
diff --git a/src/runtime/runtime-regexp.cc b/src/runtime/runtime-regexp.cc |
index 37acc21845710e1271daf573e50e1fab7393a4a0..a8133d349538e4f0742f25042653b793d0f8b877 100644 |
--- a/src/runtime/runtime-regexp.cc |
+++ b/src/runtime/runtime-regexp.cc |
@@ -656,8 +656,8 @@ RUNTIME_FUNCTION(Runtime_StringReplaceGlobalRegExpWithString) { |
CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 1); |
CONVERT_ARG_HANDLE_CHECKED(JSArray, last_match_info, 3); |
- RUNTIME_ASSERT(regexp->GetFlags() & JSRegExp::kGlobal); |
- RUNTIME_ASSERT(last_match_info->HasFastObjectElements()); |
+ CHECK(regexp->GetFlags() & JSRegExp::kGlobal); |
+ CHECK(last_match_info->HasFastObjectElements()); |
subject = String::Flatten(subject); |
@@ -684,11 +684,11 @@ RUNTIME_FUNCTION(Runtime_StringSplit) { |
CONVERT_ARG_HANDLE_CHECKED(String, subject, 0); |
CONVERT_ARG_HANDLE_CHECKED(String, pattern, 1); |
CONVERT_NUMBER_CHECKED(uint32_t, limit, Uint32, args[2]); |
- RUNTIME_ASSERT(limit > 0); |
+ CHECK(limit > 0); |
int subject_length = subject->length(); |
int pattern_length = pattern->length(); |
- RUNTIME_ASSERT(pattern_length > 0); |
+ CHECK(pattern_length > 0); |
if (limit == 0xffffffffu) { |
FixedArray* last_match_cache_unused; |
@@ -774,8 +774,8 @@ RUNTIME_FUNCTION(Runtime_RegExpExec) { |
CONVERT_ARG_HANDLE_CHECKED(JSArray, last_match_info, 3); |
// Due to the way the JS calls are constructed this must be less than the |
// length of a string, i.e. it is always a Smi. We check anyway for security. |
- RUNTIME_ASSERT(index >= 0); |
- RUNTIME_ASSERT(index <= subject->length()); |
+ CHECK(index >= 0); |
+ CHECK(index <= subject->length()); |
isolate->counters()->regexp_entry_runtime()->Increment(); |
RETURN_RESULT_OR_FAILURE( |
isolate, RegExpImpl::Exec(regexp, subject, index, last_match_info)); |
@@ -802,7 +802,7 @@ RUNTIME_FUNCTION(Runtime_RegExpConstructResult) { |
HandleScope handle_scope(isolate); |
DCHECK(args.length() == 3); |
CONVERT_SMI_ARG_CHECKED(size, 0); |
- RUNTIME_ASSERT(size >= 0 && size <= FixedArray::kMaxLength); |
+ CHECK(size >= 0 && size <= FixedArray::kMaxLength); |
CONVERT_ARG_HANDLE_CHECKED(Object, index, 1); |
CONVERT_ARG_HANDLE_CHECKED(Object, input, 2); |
Handle<FixedArray> elements = isolate->factory()->NewFixedArray(size); |
@@ -990,11 +990,11 @@ RUNTIME_FUNCTION(Runtime_RegExpExecMultiple) { |
CONVERT_ARG_HANDLE_CHECKED(String, subject, 1); |
CONVERT_ARG_HANDLE_CHECKED(JSArray, last_match_info, 2); |
CONVERT_ARG_HANDLE_CHECKED(JSArray, result_array, 3); |
- RUNTIME_ASSERT(last_match_info->HasFastObjectElements()); |
- RUNTIME_ASSERT(result_array->HasFastObjectElements()); |
+ CHECK(last_match_info->HasFastObjectElements()); |
+ CHECK(result_array->HasFastObjectElements()); |
subject = String::Flatten(subject); |
- RUNTIME_ASSERT(regexp->GetFlags() & JSRegExp::kGlobal); |
+ CHECK(regexp->GetFlags() & JSRegExp::kGlobal); |
if (regexp->CaptureCount() == 0) { |
return SearchRegExpMultiple<false>(isolate, subject, regexp, |