| Index: src/stub-cache.h
|
| diff --git a/src/stub-cache.h b/src/stub-cache.h
|
| index e7c18c2cb7dded6e9064b6ae29e249ccc4fbc19d..f9ead7bcd7d3179b9de47d7986118449753af160 100644
|
| --- a/src/stub-cache.h
|
| +++ b/src/stub-cache.h
|
| @@ -483,20 +483,6 @@ class StubCompiler BASE_EMBEDDED {
|
| Register scratch2,
|
| Handle<Name> name,
|
| Label* miss,
|
| - PrototypeCheckType check = CHECK_ALL_MAPS) {
|
| - return CheckPrototypes(type, object_reg, holder, holder_reg, scratch1,
|
| - scratch2, name, kInvalidProtoDepth, miss, check);
|
| - }
|
| -
|
| - Register CheckPrototypes(Handle<Type> type,
|
| - Register object_reg,
|
| - Handle<JSObject> holder,
|
| - Register holder_reg,
|
| - Register scratch1,
|
| - Register scratch2,
|
| - Handle<Name> name,
|
| - int save_at_depth,
|
| - Label* miss,
|
| PrototypeCheckType check = CHECK_ALL_MAPS);
|
|
|
| void GenerateBooleanCheck(Register object, Label* miss);
|
| @@ -1029,10 +1015,10 @@ class CallOptimization BASE_EMBEDDED {
|
| return api_call_info_;
|
| }
|
|
|
| - // Returns the depth of the object having the expected type in the
|
| - // prototype chain between the two arguments.
|
| - int GetPrototypeDepthOfExpectedType(Handle<JSObject> object,
|
| - Handle<JSObject> holder) const;
|
| + // Returns the object having the expected type in the
|
| + // prototype chain between the two arguments, null otherwise
|
| + Handle<JSObject> GetPrototypeOfExpectedType(
|
| + Handle<JSObject> object, Handle<JSObject> holder) const;
|
|
|
| bool IsCompatibleReceiver(Object* receiver) {
|
| ASSERT(is_simple_api_call());
|
|
|