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() { ...@@ -2176,8 +2176,7 @@ void BytecodeGraphBuilder::VisitCreateObjectLiteral() {
} }
void BytecodeGraphBuilder::VisitCreateEmptyObjectLiteral() { void BytecodeGraphBuilder::VisitCreateEmptyObjectLiteral() {
Node* literal = Node* literal = NewNode(javascript()->CreateEmptyLiteralObject());
NewNode(javascript()->CreateEmptyLiteralObject(), GetFunctionClosure());
environment()->BindAccumulator(literal); environment()->BindAccumulator(literal);
} }
......
...@@ -761,11 +761,10 @@ void JSGenericLowering::LowerJSCloneObject(Node* node) { ...@@ -761,11 +761,10 @@ void JSGenericLowering::LowerJSCloneObject(Node* node) {
} }
void JSGenericLowering::LowerJSCreateEmptyLiteralObject(Node* node) { void JSGenericLowering::LowerJSCreateEmptyLiteralObject(Node* node) {
CallDescriptor::Flags flags = FrameStateFlagForCall(node); ReplaceWithStubCall(
Callable callable = node,
Builtins::CallableFor(isolate(), Builtins::kCreateEmptyLiteralObject); Builtins::CallableFor(isolate(), Builtins::kCreateEmptyLiteralObject),
node->RemoveInput(0); // The closure. FrameStateFlagForCall(node));
ReplaceWithStubCall(node, callable, flags);
} }
void JSGenericLowering::LowerJSCreateLiteralRegExp(Node* node) { void JSGenericLowering::LowerJSCreateLiteralRegExp(Node* node) {
......
...@@ -1273,7 +1273,7 @@ const Operator* JSOperatorBuilder::CreateEmptyLiteralObject() { ...@@ -1273,7 +1273,7 @@ const Operator* JSOperatorBuilder::CreateEmptyLiteralObject() {
IrOpcode::kJSCreateEmptyLiteralObject, // opcode IrOpcode::kJSCreateEmptyLiteralObject, // opcode
Operator::kNoProperties, // properties Operator::kNoProperties, // properties
"JSCreateEmptyLiteralObject", // name "JSCreateEmptyLiteralObject", // name
1, 1, 1, 1, 1, 2); // counts 0, 1, 1, 1, 1, 2); // counts
} }
const Operator* JSOperatorBuilder::CreateLiteralRegExp( 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