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

Unified Diff: src/builtins/builtins-callsite.cc

Issue 2201823002: Make CallSite constructor inaccessible from JS (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@get-stack-trace-line
Patch Set: Revert "CHECK invalid arguments to CallSite constructor" Created 4 years, 5 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/builtins.h ('k') | src/builtins/builtins-internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-callsite.cc
diff --git a/src/builtins/builtins-callsite.cc b/src/builtins/builtins-callsite.cc
index 339c3f2475afb3594229310a7853252ff0fd690e..7fc2f987162537345da5dcbadd9602c24bf86873 100644
--- a/src/builtins/builtins-callsite.cc
+++ b/src/builtins/builtins-callsite.cc
@@ -22,21 +22,6 @@ namespace internal {
isolate->factory()->NewStringFromAsciiChecked(method))); \
}
-BUILTIN(CallSiteConstructor) {
- HandleScope scope(isolate);
-
- Handle<JSFunction> target = args.target<JSFunction>();
- Handle<Object> new_target = Handle<Object>::cast(args.new_target());
- Handle<Object> receiver = args.atOrUndefined(isolate, 1);
- Handle<Object> fun = args.atOrUndefined(isolate, 2);
- Handle<Object> pos = args.atOrUndefined(isolate, 3);
- Handle<Object> strict_mode = args.atOrUndefined(isolate, 4);
-
- RETURN_RESULT_OR_FAILURE(
- isolate, CallSiteUtils::Construct(isolate, target, new_target, receiver,
- fun, pos, strict_mode));
-}
-
namespace {
Object* PositiveNumberOrNull(int value, Isolate* isolate) {
« no previous file with comments | « src/builtins/builtins.h ('k') | src/builtins/builtins-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698