Index: src/runtime/runtime-symbol.cc |
diff --git a/src/runtime/runtime-symbol.cc b/src/runtime/runtime-symbol.cc |
index b7d81613dabc5ae172d301fe138d908e05ba5da3..2eaef63bbf2bedb4e06df8b9ccae892505f13b00 100644 |
--- a/src/runtime/runtime-symbol.cc |
+++ b/src/runtime/runtime-symbol.cc |
@@ -14,7 +14,7 @@ namespace internal { |
RUNTIME_FUNCTION(Runtime_CreateSymbol) { |
HandleScope scope(isolate); |
- DCHECK(args.length() == 1); |
+ DCHECK_EQ(1, args.length()); |
CONVERT_ARG_HANDLE_CHECKED(Object, name, 0); |
CHECK(name->IsString() || name->IsUndefined(isolate)); |
Handle<Symbol> symbol = isolate->factory()->NewSymbol(); |
@@ -25,7 +25,7 @@ RUNTIME_FUNCTION(Runtime_CreateSymbol) { |
RUNTIME_FUNCTION(Runtime_CreatePrivateSymbol) { |
HandleScope scope(isolate); |
- DCHECK(args.length() == 1); |
+ DCHECK_EQ(1, args.length()); |
CONVERT_ARG_HANDLE_CHECKED(Object, name, 0); |
CHECK(name->IsString() || name->IsUndefined(isolate)); |
Handle<Symbol> symbol = isolate->factory()->NewPrivateSymbol(); |
@@ -36,7 +36,7 @@ RUNTIME_FUNCTION(Runtime_CreatePrivateSymbol) { |
RUNTIME_FUNCTION(Runtime_SymbolDescription) { |
SealHandleScope shs(isolate); |
- DCHECK(args.length() == 1); |
+ DCHECK_EQ(1, args.length()); |
CONVERT_ARG_CHECKED(Symbol, symbol, 0); |
return symbol->name(); |
} |
@@ -58,7 +58,7 @@ RUNTIME_FUNCTION(Runtime_SymbolDescriptiveString) { |
RUNTIME_FUNCTION(Runtime_SymbolIsPrivate) { |
SealHandleScope shs(isolate); |
- DCHECK(args.length() == 1); |
+ DCHECK_EQ(1, args.length()); |
CONVERT_ARG_CHECKED(Symbol, symbol, 0); |
return isolate->heap()->ToBoolean(symbol->is_private()); |
} |