Index: src/runtime/runtime-numbers.cc |
diff --git a/src/runtime/runtime-numbers.cc b/src/runtime/runtime-numbers.cc |
index bfe8763e9902977a2aed9953c8cf3b3443f88754..4d8d5d267dbdc3a1169499698a53b0d4631db36b 100644 |
--- a/src/runtime/runtime-numbers.cc |
+++ b/src/runtime/runtime-numbers.cc |
@@ -15,7 +15,7 @@ namespace internal { |
RUNTIME_FUNCTION(Runtime_IsValidSmi) { |
SealHandleScope shs(isolate); |
- DCHECK(args.length() == 1); |
+ DCHECK_EQ(1, args.length()); |
CONVERT_NUMBER_CHECKED(int32_t, number, Int32, args[0]); |
return isolate->heap()->ToBoolean(Smi::IsValid(number)); |
@@ -73,7 +73,7 @@ RUNTIME_FUNCTION(Runtime_StringParseInt) { |
// ES6 18.2.4 parseFloat(string) |
RUNTIME_FUNCTION(Runtime_StringParseFloat) { |
HandleScope shs(isolate); |
- DCHECK(args.length() == 1); |
+ DCHECK_EQ(1, args.length()); |
CONVERT_ARG_HANDLE_CHECKED(String, subject, 0); |
double value = |
@@ -86,7 +86,7 @@ RUNTIME_FUNCTION(Runtime_StringParseFloat) { |
RUNTIME_FUNCTION(Runtime_NumberToString) { |
HandleScope scope(isolate); |
- DCHECK(args.length() == 1); |
+ DCHECK_EQ(1, args.length()); |
CONVERT_NUMBER_ARG_HANDLE_CHECKED(number, 0); |
return *isolate->factory()->NumberToString(number); |
@@ -95,7 +95,7 @@ RUNTIME_FUNCTION(Runtime_NumberToString) { |
RUNTIME_FUNCTION(Runtime_NumberToStringSkipCache) { |
HandleScope scope(isolate); |
- DCHECK(args.length() == 1); |
+ DCHECK_EQ(1, args.length()); |
CONVERT_NUMBER_ARG_HANDLE_CHECKED(number, 0); |
return *isolate->factory()->NumberToString(number, false); |
@@ -106,7 +106,7 @@ RUNTIME_FUNCTION(Runtime_NumberToStringSkipCache) { |
// a small integer. |
RUNTIME_FUNCTION(Runtime_NumberToSmi) { |
SealHandleScope shs(isolate); |
- DCHECK(args.length() == 1); |
+ DCHECK_EQ(1, args.length()); |
CONVERT_ARG_CHECKED(Object, obj, 0); |
if (obj->IsSmi()) { |
return obj; |
@@ -126,7 +126,7 @@ RUNTIME_FUNCTION(Runtime_NumberToSmi) { |
// compared lexicographically. |
RUNTIME_FUNCTION(Runtime_SmiLexicographicCompare) { |
SealHandleScope shs(isolate); |
- DCHECK(args.length() == 2); |
+ DCHECK_EQ(2, args.length()); |
CONVERT_SMI_ARG_CHECKED(x_value, 0); |
CONVERT_SMI_ARG_CHECKED(y_value, 1); |
@@ -200,14 +200,14 @@ RUNTIME_FUNCTION(Runtime_SmiLexicographicCompare) { |
RUNTIME_FUNCTION(Runtime_MaxSmi) { |
SealHandleScope shs(isolate); |
- DCHECK(args.length() == 0); |
+ DCHECK_EQ(0, args.length()); |
return Smi::FromInt(Smi::kMaxValue); |
} |
RUNTIME_FUNCTION(Runtime_IsSmi) { |
SealHandleScope shs(isolate); |
- DCHECK(args.length() == 1); |
+ DCHECK_EQ(1, args.length()); |
CONVERT_ARG_CHECKED(Object, obj, 0); |
return isolate->heap()->ToBoolean(obj->IsSmi()); |
} |
@@ -215,21 +215,21 @@ RUNTIME_FUNCTION(Runtime_IsSmi) { |
RUNTIME_FUNCTION(Runtime_GetRootNaN) { |
SealHandleScope shs(isolate); |
- DCHECK(args.length() == 0); |
+ DCHECK_EQ(0, args.length()); |
return isolate->heap()->nan_value(); |
} |
RUNTIME_FUNCTION(Runtime_GetHoleNaNUpper) { |
HandleScope scope(isolate); |
- DCHECK(args.length() == 0); |
+ DCHECK_EQ(0, args.length()); |
return *isolate->factory()->NewNumberFromUint(kHoleNanUpper32); |
} |
RUNTIME_FUNCTION(Runtime_GetHoleNaNLower) { |
HandleScope scope(isolate); |
- DCHECK(args.length() == 0); |
+ DCHECK_EQ(0, args.length()); |
return *isolate->factory()->NewNumberFromUint(kHoleNanLower32); |
} |