| Index: src/ic/ic.cc
|
| diff --git a/src/ic/ic.cc b/src/ic/ic.cc
|
| index a4785d938541a9eb2ec3a934cc8102385d3f8ef8..eee7d6993445403d7734782091bb394bfcb75ce6 100644
|
| --- a/src/ic/ic.cc
|
| +++ b/src/ic/ic.cc
|
| @@ -806,6 +806,9 @@ void IC::PatchCache(Handle<Name> name, Handle<Code> code) {
|
|
|
| Handle<Code> LoadIC::initialize_stub_in_optimized_code(
|
| Isolate* isolate, ExtraICState extra_state) {
|
| + if (FLAG_tf_load_ic_stub) {
|
| + return LoadICTFStub(isolate, LoadICState(extra_state)).GetCode();
|
| + }
|
| return LoadICStub(isolate, LoadICState(extra_state)).GetCode();
|
| }
|
|
|
| @@ -2244,7 +2247,7 @@ RUNTIME_FUNCTION(Runtime_LoadIC_Miss) {
|
| Handle<Object> receiver = args.at<Object>(0);
|
| Handle<Name> key = args.at<Name>(1);
|
|
|
| - DCHECK(args.length() == 4);
|
| + DCHECK_EQ(4, args.length());
|
| Handle<Smi> slot = args.at<Smi>(2);
|
| Handle<TypeFeedbackVector> vector = args.at<TypeFeedbackVector>(3);
|
| FeedbackVectorSlot vector_slot = vector->ToSlot(slot->value());
|
|
|