Commit 823822c9 authored by Jakob Gruber's avatar Jakob Gruber Committed by Commit Bot

[compiler] Remove unused CreateEmptyLiteralObject input

Bug: v8:8888
Change-Id: I0492385023fe01f1aacbd5eae9bb5930a5484062
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2247649
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Auto-Submit: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68382}
parent d8cd725f
......@@ -2176,8 +2176,7 @@ void BytecodeGraphBuilder::VisitCreateObjectLiteral() {
}
void BytecodeGraphBuilder::VisitCreateEmptyObjectLiteral() {
Node* literal =
NewNode(javascript()->CreateEmptyLiteralObject(), GetFunctionClosure());
Node* literal = NewNode(javascript()->CreateEmptyLiteralObject());
environment()->BindAccumulator(literal);
}
......
......@@ -761,11 +761,10 @@ void JSGenericLowering::LowerJSCloneObject(Node* node) {
}
void JSGenericLowering::LowerJSCreateEmptyLiteralObject(Node* node) {
CallDescriptor::Flags flags = FrameStateFlagForCall(node);
Callable callable =
Builtins::CallableFor(isolate(), Builtins::kCreateEmptyLiteralObject);
node->RemoveInput(0); // The closure.
ReplaceWithStubCall(node, callable, flags);
ReplaceWithStubCall(
node,
Builtins::CallableFor(isolate(), Builtins::kCreateEmptyLiteralObject),
FrameStateFlagForCall(node));
}
void JSGenericLowering::LowerJSCreateLiteralRegExp(Node* node) {
......
......@@ -1273,7 +1273,7 @@ const Operator* JSOperatorBuilder::CreateEmptyLiteralObject() {
IrOpcode::kJSCreateEmptyLiteralObject, // opcode
Operator::kNoProperties, // properties
"JSCreateEmptyLiteralObject", // name
1, 1, 1, 1, 1, 2); // counts
0, 1, 1, 1, 1, 2); // counts
}
const Operator* JSOperatorBuilder::CreateLiteralRegExp(
......
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