| Index: src/runtime/runtime-module.cc
|
| diff --git a/src/runtime/runtime-module.cc b/src/runtime/runtime-module.cc
|
| index 2b813430e07b0e6155ad5184c8e986f727a45a20..f2a9761203677325f286290fd8c42c225593ebec 100644
|
| --- a/src/runtime/runtime-module.cc
|
| +++ b/src/runtime/runtime-module.cc
|
| @@ -11,7 +11,7 @@ namespace internal {
|
|
|
| RUNTIME_FUNCTION(Runtime_GetModuleNamespace) {
|
| HandleScope scope(isolate);
|
| - DCHECK(args.length() == 1);
|
| + DCHECK_EQ(1, args.length());
|
| CONVERT_SMI_ARG_CHECKED(module_request, 0);
|
| Handle<Module> module(isolate->context()->module());
|
| return *Module::GetModuleNamespace(module, module_request);
|
| @@ -19,7 +19,7 @@ RUNTIME_FUNCTION(Runtime_GetModuleNamespace) {
|
|
|
| RUNTIME_FUNCTION(Runtime_LoadModuleVariable) {
|
| HandleScope scope(isolate);
|
| - DCHECK(args.length() == 1);
|
| + DCHECK_EQ(1, args.length());
|
| CONVERT_SMI_ARG_CHECKED(index, 0);
|
| Handle<Module> module(isolate->context()->module());
|
| return *Module::LoadVariable(module, index);
|
| @@ -27,7 +27,7 @@ RUNTIME_FUNCTION(Runtime_LoadModuleVariable) {
|
|
|
| RUNTIME_FUNCTION(Runtime_StoreModuleVariable) {
|
| HandleScope scope(isolate);
|
| - DCHECK(args.length() == 2);
|
| + DCHECK_EQ(2, args.length());
|
| CONVERT_SMI_ARG_CHECKED(index, 0);
|
| CONVERT_ARG_HANDLE_CHECKED(Object, value, 1);
|
| Handle<Module> module(isolate->context()->module());
|
|
|