| Index: src/ic/ic.cc
|
| diff --git a/src/ic/ic.cc b/src/ic/ic.cc
|
| index 698dde5e53e43de4c9ff0241d28cf5c8be7ab3a1..cfa740b1051c76355cec051a0e06665e6b1a44d7 100644
|
| --- a/src/ic/ic.cc
|
| +++ b/src/ic/ic.cc
|
| @@ -1210,6 +1210,11 @@ Handle<Object> LoadIC::GetMapIndependentHandler(LookupIterator* lookup) {
|
| // -------------- Constant properties --------------
|
| DCHECK(lookup->property_details().type() == DATA_CONSTANT);
|
| if (receiver_is_holder) {
|
| + if (FLAG_tf_load_ic_stub) {
|
| + TRACE_HANDLER_STATS(isolate(), LoadIC_LoadConstantDH);
|
| + return SmiHandler::MakeLoadConstantHandler(
|
| + isolate(), lookup->GetConstantIndex());
|
| + }
|
| TRACE_HANDLER_STATS(isolate(), LoadIC_LoadConstantStub);
|
| LoadConstantStub stub(isolate(), lookup->GetConstantIndex());
|
| return stub.GetCode();
|
|
|