Commit 1adaca3b authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

[cleanup] Remove unused SetNativeFlag runtime function

R=jgruber@chromium.org

Bug: v8:8834
Change-Id: I4406208b20481e71aaa83070e02017a6184eac25
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1530811Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60357}
parent 90d778cb
...@@ -74,23 +74,6 @@ RUNTIME_FUNCTION(Runtime_FunctionIsAPIFunction) { ...@@ -74,23 +74,6 @@ RUNTIME_FUNCTION(Runtime_FunctionIsAPIFunction) {
} }
// Set the native flag on the function.
// This is used to decide if we should transform null and undefined
// into the global object when doing call and apply.
RUNTIME_FUNCTION(Runtime_SetNativeFlag) {
SealHandleScope shs(isolate);
DCHECK_EQ(1, args.length());
CONVERT_ARG_CHECKED(Object, object, 0);
if (object->IsJSFunction()) {
JSFunction func = JSFunction::cast(object);
func->shared()->set_native(true);
}
return ReadOnlyRoots(isolate).undefined_value();
}
RUNTIME_FUNCTION(Runtime_Call) { RUNTIME_FUNCTION(Runtime_Call) {
HandleScope scope(isolate); HandleScope scope(isolate);
DCHECK_LE(2, args.length()); DCHECK_LE(2, args.length());
......
...@@ -174,8 +174,7 @@ namespace internal { ...@@ -174,8 +174,7 @@ namespace internal {
F(FunctionGetScriptSourcePosition, 1, 1) \ F(FunctionGetScriptSourcePosition, 1, 1) \
F(FunctionGetSourceCode, 1, 1) \ F(FunctionGetSourceCode, 1, 1) \
F(FunctionIsAPIFunction, 1, 1) \ F(FunctionIsAPIFunction, 1, 1) \
F(IsFunction, 1, 1) \ F(IsFunction, 1, 1)
F(SetNativeFlag, 1, 1)
#define FOR_EACH_INTRINSIC_GENERATOR(F, I) \ #define FOR_EACH_INTRINSIC_GENERATOR(F, I) \
I(AsyncFunctionAwaitCaught, 2, 1) \ I(AsyncFunctionAwaitCaught, 2, 1) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment