diff options
Diffstat (limited to 'deps/v8/src/ic/call-optimization.h')
-rw-r--r-- | deps/v8/src/ic/call-optimization.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/v8/src/ic/call-optimization.h b/deps/v8/src/ic/call-optimization.h index 99494fa3ba..01947d7fed 100644 --- a/deps/v8/src/ic/call-optimization.h +++ b/deps/v8/src/ic/call-optimization.h @@ -38,12 +38,17 @@ class CallOptimization BASE_EMBEDDED { enum HolderLookup { kHolderNotFound, kHolderIsReceiver, kHolderFound }; Handle<JSObject> LookupHolderOfExpectedType( - Handle<Map> receiver_map, HolderLookup* holder_lookup) const; + Handle<Map> receiver_map, HolderLookup* holder_lookup, + int* holder_depth_in_prototype_chain = NULL) const; // Check if the api holder is between the receiver and the holder. bool IsCompatibleReceiver(Handle<Object> receiver, Handle<JSObject> holder) const; + // Check if the api holder is between the receiver and the holder. + bool IsCompatibleReceiverMap(Handle<Map> receiver_map, + Handle<JSObject> holder) const; + private: void Initialize(Handle<JSFunction> function); |