| Index: src/runtime/runtime-compiler.cc
|
| diff --git a/src/runtime/runtime-compiler.cc b/src/runtime/runtime-compiler.cc
|
| index 9dc9659b1b0055ddd9e7c8a61f05ea0ff42b35cc..f1c76bb2acc5734cc629d26784b5eb58b838d12b 100644
|
| --- a/src/runtime/runtime-compiler.cc
|
| +++ b/src/runtime/runtime-compiler.cc
|
| @@ -127,7 +127,7 @@ RUNTIME_FUNCTION(Runtime_InstantiateAsmJs) {
|
|
|
| RUNTIME_FUNCTION(Runtime_NotifyStubFailure) {
|
| HandleScope scope(isolate);
|
| - DCHECK(args.length() == 0);
|
| + DCHECK_EQ(0, args.length());
|
| Deoptimizer* deoptimizer = Deoptimizer::Grab(isolate);
|
| DCHECK(AllowHeapAllocation::IsAllowed());
|
| delete deoptimizer;
|
| @@ -158,7 +158,7 @@ class ActivationsFinder : public ThreadVisitor {
|
|
|
| RUNTIME_FUNCTION(Runtime_NotifyDeoptimized) {
|
| HandleScope scope(isolate);
|
| - DCHECK(args.length() == 1);
|
| + DCHECK_EQ(1, args.length());
|
| CONVERT_SMI_ARG_CHECKED(type_arg, 0);
|
| Deoptimizer::BailoutType type =
|
| static_cast<Deoptimizer::BailoutType>(type_arg);
|
| @@ -300,7 +300,7 @@ BailoutId DetermineEntryAndDisarmOSRForInterpreter(JavaScriptFrame* frame) {
|
|
|
| RUNTIME_FUNCTION(Runtime_CompileForOnStackReplacement) {
|
| HandleScope scope(isolate);
|
| - DCHECK(args.length() == 1);
|
| + DCHECK_EQ(1, args.length());
|
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
|
|
|
| // We're not prepared to handle a function with arguments object.
|
| @@ -385,7 +385,7 @@ RUNTIME_FUNCTION(Runtime_CompileForOnStackReplacement) {
|
|
|
| RUNTIME_FUNCTION(Runtime_TryInstallOptimizedCode) {
|
| HandleScope scope(isolate);
|
| - DCHECK(args.length() == 1);
|
| + DCHECK_EQ(1, args.length());
|
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
|
|
|
| // First check if this is a real stack overflow.
|
| @@ -452,7 +452,7 @@ static Object* CompileGlobalEval(Isolate* isolate, Handle<String> source,
|
|
|
| RUNTIME_FUNCTION(Runtime_ResolvePossiblyDirectEval) {
|
| HandleScope scope(isolate);
|
| - DCHECK(args.length() == 6);
|
| + DCHECK_EQ(6, args.length());
|
|
|
| Handle<Object> callee = args.at(0);
|
|
|
|
|