Commit 340d8c15 authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

[cleanup] Remove unused NativeFlags::NATIVE_CODE

Bug: v8:8834
Change-Id: I8e53e9288491a5eb50e9f27e95a6b40747e718ea
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1526198Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60285}
parent f072436b
......@@ -1886,8 +1886,7 @@ MaybeHandle<SharedFunctionInfo> Compiler::GetSharedFunctionInfoForScript(
DCHECK(is_compiled_scope.is_compiled());
compilation_cache->PutScript(source, isolate->native_context(),
language_mode, result);
} else if (maybe_result.is_null() && natives != EXTENSION_CODE &&
natives != NATIVES_CODE) {
} else if (maybe_result.is_null() && natives != EXTENSION_CODE) {
isolate->ReportPendingMessages();
}
}
......
......@@ -769,7 +769,6 @@ enum VisitMode {
enum NativesFlag {
NOT_NATIVES_CODE,
EXTENSION_CODE,
NATIVES_CODE,
INSPECTOR_CODE
};
......
......@@ -180,9 +180,6 @@ Handle<Script> ParseInfo::CreateScript(Isolate* isolate, Handle<String> source,
Script::InitLineEnds(script);
}
switch (natives) {
case NATIVES_CODE:
script->set_type(Script::TYPE_NATIVE);
break;
case EXTENSION_CODE:
script->set_type(Script::TYPE_EXTENSION);
break;
......
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