diff options
Diffstat (limited to 'deps/v8/src/runtime/runtime-utils.h')
-rw-r--r-- | deps/v8/src/runtime/runtime-utils.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/deps/v8/src/runtime/runtime-utils.h b/deps/v8/src/runtime/runtime-utils.h index 147efed092..8c7714a0f6 100644 --- a/deps/v8/src/runtime/runtime-utils.h +++ b/deps/v8/src/runtime/runtime-utils.h @@ -6,6 +6,7 @@ #define V8_RUNTIME_RUNTIME_UTILS_H_ #include "src/base/logging.h" +#include "src/globals.h" #include "src/runtime/runtime.h" namespace v8 { @@ -24,7 +25,7 @@ namespace internal { #define CONVERT_NUMBER_ARG_HANDLE_CHECKED(name, index) \ CHECK(args[index]->IsNumber()); \ - Handle<Object> name = args.at<Object>(index); + Handle<Object> name = args.at(index); // Cast the given object to a boolean and store it in a variable with // the given name. If the object is not a boolean we crash safely. @@ -47,10 +48,10 @@ namespace internal { // Cast the given argument to a size_t and store its value in a variable with // the given name. If the argument is not a size_t we crash safely. -#define CONVERT_SIZE_ARG_CHECKED(name, index) \ - CHECK(args[index]->IsNumber()); \ - Handle<Object> name##_object = args.at<Object>(index); \ - size_t name = 0; \ +#define CONVERT_SIZE_ARG_CHECKED(name, index) \ + CHECK(args[index]->IsNumber()); \ + Handle<Object> name##_object = args.at(index); \ + size_t name = 0; \ CHECK(TryNumberToSize(*name##_object, &name)); // Call the specified converter on the object *comand store the result in |