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

Unified Diff: src/execution.h

Issue 1360793002: [builtins] Refactor Invoke to deal with any kind of callable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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
Index: src/execution.h
diff --git a/src/execution.h b/src/execution.h
index 5c25082a66e21e6baf81c9391d075db09b5b50fc..3822cbb49e7652c0d3e021b696bac97a85ff0c68 100644
--- a/src/execution.h
+++ b/src/execution.h
@@ -35,8 +35,9 @@ class Execution final : public AllStatic {
MUST_USE_RESULT static MaybeHandle<Object> New(Handle<JSFunction> constructor,
int argc,
Handle<Object> argv[]);
- MUST_USE_RESULT static MaybeHandle<Object> New(Handle<JSFunction> constructor,
- Handle<JSFunction> new_target,
+ MUST_USE_RESULT static MaybeHandle<Object> New(Isolate* isolate,
+ Handle<Object> constructor,
+ Handle<Object> new_target,
int argc,
Handle<Object> argv[]);
@@ -88,20 +89,6 @@ class Execution final : public AllStatic {
Handle<JSFunction> fun,
Handle<Object> pos,
Handle<Object> is_global);
-
- // Get a function delegate for the given non-function object.
- // Used for support calling objects as functions.
- MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionDelegate(
- Isolate* isolate, Handle<Object> object);
-
- // Get a function delegate (or undefined) for the given non-function
- // object. Used for support calling objects as constructors.
- MUST_USE_RESULT static MaybeHandle<JSFunction> GetConstructorDelegate(
- Isolate* isolate, Handle<Object> object);
-
- private:
- MUST_USE_RESULT static Handle<String> RenderCallSite(Isolate* isolate,
- Handle<Object> object);
};
« src/arm/builtins-arm.cc ('K') | « src/arm64/simulator-arm64.cc ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698