| Index: src/builtins.cc
|
| diff --git a/src/builtins.cc b/src/builtins.cc
|
| index 09b0d580f9809bbc709eb8deca1b3dca3a3a00d5..dcbeb2a6287eb8d3f09d30f6737e7aad9850b8a5 100644
|
| --- a/src/builtins.cc
|
| +++ b/src/builtins.cc
|
| @@ -185,8 +185,7 @@
|
| // or converts the receiver to a String otherwise and assigns it to a new var
|
| // with the given {name}.
|
| #define TO_THIS_STRING(name, method) \
|
| - if (args.receiver()->IsNull(isolate) || \
|
| - args.receiver()->IsUndefined(isolate)) { \
|
| + if (args.receiver()->IsNull() || args.receiver()->IsUndefined(isolate)) { \
|
| THROW_NEW_ERROR_RETURN_FAILURE( \
|
| isolate, \
|
| NewTypeError(MessageTemplate::kCalledOnNullOrUndefined, \
|
| @@ -214,11 +213,11 @@
|
| *out = static_cast<int>(value);
|
| }
|
| return true;
|
| - } else if (object->IsUndefined(isolate) || object->IsNull(isolate)) {
|
| + } else if (object->IsUndefined(isolate) || object->IsNull()) {
|
| *out = 0;
|
| return true;
|
| } else if (object->IsBoolean()) {
|
| - *out = object->IsTrue(isolate);
|
| + *out = object->IsTrue();
|
| return true;
|
| }
|
| return false;
|
| @@ -1496,7 +1495,7 @@
|
|
|
| Handle<Object> receiver = args.receiver();
|
| // TODO(bmeurer): Do we really care about the exact exception message here?
|
| - if (receiver->IsNull(isolate) || receiver->IsUndefined(isolate)) {
|
| + if (receiver->IsNull() || receiver->IsUndefined(isolate)) {
|
| THROW_NEW_ERROR_RETURN_FAILURE(
|
| isolate, NewTypeError(MessageTemplate::kCalledOnNullOrUndefined,
|
| isolate->factory()->NewStringFromAsciiChecked(
|
| @@ -1676,7 +1675,7 @@
|
| BUILTIN(ObjectCreate) {
|
| HandleScope scope(isolate);
|
| Handle<Object> prototype = args.atOrUndefined(isolate, 1);
|
| - if (!prototype->IsNull(isolate) && !prototype->IsJSReceiver()) {
|
| + if (!prototype->IsNull() && !prototype->IsJSReceiver()) {
|
| THROW_NEW_ERROR_RETURN_FAILURE(
|
| isolate, NewTypeError(MessageTemplate::kProtoObjectOrNull, prototype));
|
| }
|
| @@ -2181,7 +2180,7 @@
|
|
|
| bool CodeGenerationFromStringsAllowed(Isolate* isolate,
|
| Handle<Context> context) {
|
| - DCHECK(context->allow_code_gen_from_strings()->IsFalse(isolate));
|
| + DCHECK(context->allow_code_gen_from_strings()->IsFalse());
|
| // Check with callback if set.
|
| AllowCodeGenerationFromStringsCallback callback =
|
| isolate->allow_code_gen_callback();
|
| @@ -2204,7 +2203,7 @@
|
|
|
| // Check if native context allows code generation from
|
| // strings. Throw an exception if it doesn't.
|
| - if (native_context->allow_code_gen_from_strings()->IsFalse(isolate) &&
|
| + if (native_context->allow_code_gen_from_strings()->IsFalse() &&
|
| !CodeGenerationFromStringsAllowed(isolate, native_context)) {
|
| Handle<Object> error_message =
|
| native_context->ErrorMessageForCodeGenerationFromStrings();
|
| @@ -2905,7 +2904,7 @@
|
| "Reflect.setPrototypeOf")));
|
| }
|
|
|
| - if (!proto->IsJSReceiver() && !proto->IsNull(isolate)) {
|
| + if (!proto->IsJSReceiver() && !proto->IsNull()) {
|
| THROW_NEW_ERROR_RETURN_FAILURE(
|
| isolate, NewTypeError(MessageTemplate::kProtoObjectOrNull, proto));
|
| }
|
| @@ -3331,7 +3330,7 @@
|
| double const time = MakeTime(tmp->get(3)->Number(), tmp->get(4)->Number(),
|
| tmp->get(5)->Number(), tmp->get(6)->Number());
|
| double date = MakeDate(day, time);
|
| - if (tmp->get(7)->IsNull(isolate)) {
|
| + if (tmp->get(7)->IsNull()) {
|
| if (!std::isnan(date)) {
|
| date = isolate->date_cache()->ToUTC(static_cast<int64_t>(date));
|
| }
|
| @@ -5092,7 +5091,7 @@
|
|
|
| Object* raw_holder = fun_data->GetCompatibleReceiver(isolate, *receiver);
|
|
|
| - if (raw_holder->IsNull(isolate)) {
|
| + if (raw_holder->IsNull()) {
|
| // This function cannot be called with the given receiver. Abort!
|
| THROW_NEW_ERROR(isolate, NewTypeError(MessageTemplate::kIllegalInvocation),
|
| Object);
|
|
|