Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 5658c8f0acef3e8d676aa30aee750984ee21f31b..f5458fb676bdf801f1ffb292d4e42e1928403d6a 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -10639,6 +10639,10 @@ class FunctionTemplateInfo: public TemplateInfo { |
bool IsTemplateFor(Object* object); |
bool IsTemplateFor(Map* map); |
+ // Returns the holder JSObject if the function can legally be called with this |
+ // receiver. Returns Heap::null_value() if the call is illegal. |
+ Object* GetCompatibleReceiver(Isolate* isolate, Object* receiver); |
+ |
private: |
// Bit position in the flag, from least significant bit position. |
static const int kHiddenPrototypeBit = 0; |