| Index: src/code-stubs.cc
|
| diff --git a/src/code-stubs.cc b/src/code-stubs.cc
|
| index e366e88b481f6be5ca022d6719cd72d8845404df..76af3f775e92268dc409feef23af612e84027fb4 100644
|
| --- a/src/code-stubs.cc
|
| +++ b/src/code-stubs.cc
|
| @@ -480,21 +480,20 @@ Handle<Type> CompareNilICStub::GetType(
|
| Isolate* isolate,
|
| Handle<Map> map) {
|
| if (state_.Contains(CompareNilICStub::GENERIC)) {
|
| - return handle(Type::Any(), isolate);
|
| + return Type::Any(isolate);
|
| }
|
|
|
| - Handle<Type> result(Type::None(), isolate);
|
| + Handle<Type> result = Type::None(isolate);
|
| if (state_.Contains(CompareNilICStub::UNDEFINED)) {
|
| - result = handle(Type::Union(result, handle(Type::Undefined(), isolate)),
|
| - isolate);
|
| + result = Type::Union(result, Type::Undefined(isolate), isolate);
|
| }
|
| if (state_.Contains(CompareNilICStub::NULL_TYPE)) {
|
| - result = handle(Type::Union(result, handle(Type::Null(), isolate)),
|
| - isolate);
|
| + result = Type::Union(result, Type::Null(isolate), isolate);
|
| }
|
| if (state_.Contains(CompareNilICStub::MONOMORPHIC_MAP)) {
|
| - Type* type = map.is_null() ? Type::Detectable() : Type::Class(map);
|
| - result = handle(Type::Union(result, handle(type, isolate)), isolate);
|
| + Handle<Type> type = map.is_null()
|
| + ? Type::Detectable(isolate) : Type::Class(map, isolate);
|
| + result = Type::Union(result, type, isolate);
|
| }
|
|
|
| return result;
|
| @@ -505,9 +504,9 @@ Handle<Type> CompareNilICStub::GetInputType(
|
| Isolate* isolate,
|
| Handle<Map> map) {
|
| Handle<Type> output_type = GetType(isolate, map);
|
| - Handle<Type> nil_type = handle(nil_value_ == kNullValue
|
| - ? Type::Null() : Type::Undefined(), isolate);
|
| - return handle(Type::Union(output_type, nil_type), isolate);
|
| + Handle<Type> nil_type = nil_value_ == kNullValue
|
| + ? Type::Null(isolate) : Type::Undefined(isolate);
|
| + return Type::Union(output_type, nil_type, isolate);
|
| }
|
|
|
|
|
| @@ -596,7 +595,6 @@ void ArgumentsAccessStub::PrintName(StringStream* stream) {
|
|
|
| void CallFunctionStub::PrintName(StringStream* stream) {
|
| stream->Add("CallFunctionStub_Args%d", argc_);
|
| - if (ReceiverMightBeImplicit()) stream->Add("_Implicit");
|
| if (RecordCallTarget()) stream->Add("_Recording");
|
| }
|
|
|
| @@ -771,6 +769,13 @@ void BinaryOpICStub::InstallDescriptors(Isolate* isolate) {
|
|
|
|
|
| // static
|
| +void BinaryOpWithAllocationSiteStub::InstallDescriptors(Isolate* isolate) {
|
| + BinaryOpWithAllocationSiteStub stub(Token::ADD, NO_OVERWRITE);
|
| + InstallDescriptor(isolate, &stub);
|
| +}
|
| +
|
| +
|
| +// static
|
| void NewStringAddStub::InstallDescriptors(Isolate* isolate) {
|
| NewStringAddStub stub(STRING_ADD_CHECK_NONE, NOT_TENURED);
|
| InstallDescriptor(isolate, &stub);
|
|
|