Commit b204abb9 authored by Jakob Gruber's avatar Jakob Gruber Committed by Commit Bot

[compiler] Refactor ReplaceWithStubCall

- rename to ReplaceWithBuiltinCall (stubs are no longer a thing).
- add a convenience override that takes only the node and builtin id.

Bug: v8:8888
Change-Id: I7e19c3676c19c3f1b7c7f9a0cbbc3306fef8fc47
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2247651
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: 's avatarMichael Stanton <mvstanton@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68383}
parent 823822c9
This diff is collapsed.
......@@ -37,9 +37,12 @@ class JSGenericLowering final : public AdvancedReducer {
#undef DECLARE_LOWER
// Helpers to replace existing nodes with a generic call.
void ReplaceWithStubCall(Node* node, Callable c, CallDescriptor::Flags flags);
void ReplaceWithStubCall(Node* node, Callable c, CallDescriptor::Flags flags,
Operator::Properties properties);
void ReplaceWithBuiltinCall(Node* node, Builtins::Name builtin);
void ReplaceWithBuiltinCall(Node* node, Callable c,
CallDescriptor::Flags flags);
void ReplaceWithBuiltinCall(Node* node, Callable c,
CallDescriptor::Flags flags,
Operator::Properties properties);
void ReplaceWithRuntimeCall(Node* node, Runtime::FunctionId f, int args = -1);
void ReplaceUnaryOpWithBuiltinCall(Node* node,
......
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