From 75c1c0df503bca0c134e7584255d6226fd057332 Mon Sep 17 00:00:00 2001 From: Dan Carney Date: Fri, 30 Jan 2015 11:11:56 +0100 Subject: [PATCH] fix gcc after r26345 BUG= R=bmeurer@chromium.org Review URL: https://codereview.chromium.org/885303002 Cr-Commit-Position: refs/heads/master@{#26349} --- src/code-stubs-hydrogen.cc | 2 +- src/ic/ic.cc | 16 ++++++++-------- src/ic/ic.h | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc index b5a73c6..1f318b7 100644 --- a/src/code-stubs-hydrogen.cc +++ b/src/code-stubs-hydrogen.cc @@ -2179,7 +2179,7 @@ HValue* CodeStubGraphBuilder::BuildCodeStub() { generic_checker.Then(); { // Tail-call to the generic KeyedLoadIC, treating it like a handler. - Handle stub = KeyedLoadIC::megamorphic_stub(isolate()); + Handle stub = KeyedLoadIC::ChooseMegamorphicStub(isolate()); HValue* constant_stub = Add(stub); LoadDescriptor descriptor(isolate()); HValue* op_vals[] = {context(), receiver, name}; diff --git a/src/ic/ic.cc b/src/ic/ic.cc index a4dce6a..7a2a36b 100644 --- a/src/ic/ic.cc +++ b/src/ic/ic.cc @@ -606,7 +606,7 @@ void CompareIC::Clear(Isolate* isolate, Address address, Code* target, // static -Handle KeyedLoadIC::megamorphic_stub(Isolate* isolate) { +Handle KeyedLoadIC::ChooseMegamorphicStub(Isolate* isolate) { if (FLAG_compiled_keyed_generic_loads) { return KeyedLoadGenericStub(isolate).GetCode(); } else { @@ -706,7 +706,7 @@ MaybeHandle LoadIC::Load(Handle object, Handle name) { if (UseVector()) { ConfigureVectorState(GENERIC); } else { - set_target(*KeyedLoadIC::megamorphic_stub(isolate())); + set_target(*megamorphic_stub()); } TRACE_IC("LoadIC", name); TRACE_GENERIC_IC(isolate(), "LoadIC", "name as array index"); @@ -1017,7 +1017,7 @@ Handle LoadIC::megamorphic_stub() { return stub.GetCode(); } else { DCHECK_EQ(Code::KEYED_LOAD_IC, kind()); - return KeyedLoadIC::megamorphic_stub(isolate()); + return KeyedLoadIC::ChooseMegamorphicStub(isolate()); } } @@ -1363,14 +1363,14 @@ Handle KeyedLoadIC::LoadElementStub(Handle receiver) { // If the miss wasn't due to an unseen map, a polymorphic stub // won't help, use the generic stub. TRACE_GENERIC_IC(isolate(), "KeyedLoadIC", "same map added twice"); - return megamorphic_stub(isolate()); + return megamorphic_stub(); } // If the maximum number of receiver maps has been exceeded, use the generic // version of the IC. if (target_receiver_maps.length() > kMaxKeyedPolymorphism) { TRACE_GENERIC_IC(isolate(), "KeyedLoadIC", "max polymorph exceeded"); - return megamorphic_stub(isolate()); + return megamorphic_stub(); } if (FLAG_vector_ics) { @@ -1400,7 +1400,7 @@ MaybeHandle KeyedLoadIC::Load(Handle object, } Handle load_handle; - Handle stub = megamorphic_stub(isolate()); + Handle stub = megamorphic_stub(); // Check for non-string values that can be converted into an // internalized string directly or is representable as a smi. @@ -1421,7 +1421,7 @@ MaybeHandle KeyedLoadIC::Load(Handle object, if (!UseVector()) { if (!is_target_set()) { - Code* generic = *megamorphic_stub(isolate()); + Code* generic = *megamorphic_stub(); if (*stub == generic) { TRACE_GENERIC_IC(isolate(), "KeyedLoadIC", "set generic"); } @@ -1431,7 +1431,7 @@ MaybeHandle KeyedLoadIC::Load(Handle object, } } else { if (!is_vector_set() || stub.is_null()) { - Code* generic = *megamorphic_stub(isolate()); + Code* generic = *megamorphic_stub(); if (!stub.is_null() && *stub == generic) { ConfigureVectorState(GENERIC); TRACE_GENERIC_IC(isolate(), "KeyedLoadIC", "set generic"); diff --git a/src/ic/ic.h b/src/ic/ic.h index 2afbb0d..0cde9e0 100644 --- a/src/ic/ic.h +++ b/src/ic/ic.h @@ -498,7 +498,7 @@ class KeyedLoadIC : public LoadIC { static Handle initialize_stub(Isolate* isolate); static Handle initialize_stub_in_optimized_code(Isolate* isolate); - static Handle megamorphic_stub(Isolate* isolate); + static Handle ChooseMegamorphicStub(Isolate* isolate); static Handle pre_monomorphic_stub(Isolate* isolate); static void Clear(Isolate* isolate, Code* host, KeyedLoadICNexus* nexus); -- 2.7.4