| Index: src/ic/ic.cc
|
| diff --git a/src/ic/ic.cc b/src/ic/ic.cc
|
| index e6b691b9265664a4c28956cdf65481390e465779..487a615f7155625f12d56feffce4bd32bf29fe3f 100644
|
| --- a/src/ic/ic.cc
|
| +++ b/src/ic/ic.cc
|
| @@ -220,17 +220,6 @@
|
| Code* original_code = Debug::GetDebugInfo(shared)->original_code();
|
| DCHECK(original_code->IsCode());
|
| return original_code;
|
| -}
|
| -
|
| -
|
| -bool IC::AddressIsOptimizedCode() const {
|
| - Object* maybe_function =
|
| - Memory::Object_at(fp() + JavaScriptFrameConstants::kFunctionOffset);
|
| - if (maybe_function->IsJSFunction()) {
|
| - JSFunction* function = JSFunction::cast(maybe_function);
|
| - return function->IsOptimized();
|
| - }
|
| - return false;
|
| }
|
|
|
|
|
| @@ -2155,16 +2144,8 @@
|
| CallICNexus* nexus = casted_nexus<CallICNexus>();
|
| nexus->ConfigureMonomorphicArray();
|
|
|
| - // Vector-based ICs have a different calling convention in optimized code
|
| - // than full code so the correct stub has to be chosen.
|
| - if (AddressIsOptimizedCode()) {
|
| - CallIC_ArrayStub stub(isolate(), callic_state);
|
| - set_target(*stub.GetCode());
|
| - } else {
|
| - CallIC_ArrayTrampolineStub stub(isolate(), callic_state);
|
| - set_target(*stub.GetCode());
|
| - }
|
| -
|
| + CallIC_ArrayTrampolineStub stub(isolate(), callic_state);
|
| + set_target(*stub.GetCode());
|
| Handle<String> name;
|
| if (array_function->shared()->name()->IsString()) {
|
| name = Handle<String>(String::cast(array_function->shared()->name()),
|
| @@ -2186,15 +2167,9 @@
|
| CallICNexus* nexus = casted_nexus<CallICNexus>();
|
| nexus->ConfigureGeneric();
|
|
|
| - // Vector-based ICs have a different calling convention in optimized code
|
| - // than full code so the correct stub has to be chosen.
|
| - if (AddressIsOptimizedCode()) {
|
| - CallICStub stub(isolate(), callic_state);
|
| - set_target(*stub.GetCode());
|
| - } else {
|
| - CallICTrampolineStub stub(isolate(), callic_state);
|
| - set_target(*stub.GetCode());
|
| - }
|
| + CallICTrampolineStub stub(isolate(), callic_state);
|
| + Handle<Code> code = stub.GetCode();
|
| + set_target(*code);
|
|
|
| Handle<Object> name = isolate()->factory()->empty_string();
|
| if (function->IsJSFunction()) {
|
|
|