Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(977)

Unified Diff: src/objects.h

Issue 873623002: cleanup check for compatible receiver of api callback (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/builtins.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/builtins.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698