| Index: src/ic/ic.h
|
| diff --git a/src/ic/ic.h b/src/ic/ic.h
|
| index ebd222b0068979b4bb1c90ba91d50aec09c4865a..d2738417a0a1cdebc98b856dd9c74174b8f9b180 100644
|
| --- a/src/ic/ic.h
|
| +++ b/src/ic/ic.h
|
| @@ -311,16 +311,18 @@ class LoadIC : public IC {
|
| private:
|
| Handle<Object> SimpleFieldLoad(FieldIndex index);
|
|
|
| - // Returns true if the validity cell check is enough to ensure that the
|
| + // Returns 0 if the validity cell check is enough to ensure that the
|
| // prototype chain from |receiver_map| till |holder| did not change.
|
| - bool IsPrototypeValidityCellCheckEnough(Handle<Map> receiver_map,
|
| - Handle<JSObject> holder);
|
| + // Returns -1 if the handler has to be compiled or the number of prototype
|
| + // checks otherwise.
|
| + int GetPrototypeCheckCount(Handle<Map> receiver_map, Handle<JSObject> holder);
|
|
|
| // Creates a data handler that represents a prototype chain check followed
|
| // by given Smi-handler that encoded a load from the holder.
|
| // Can be used only if IsPrototypeValidityCellCheckEnough() predicate is true.
|
| Handle<Object> SimpleLoadFromPrototype(Handle<Map> receiver_map,
|
| Handle<JSObject> holder,
|
| + Handle<Name> name,
|
| Handle<Object> smi_handler);
|
|
|
| friend class IC;
|
|
|