summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/js-create-lowering.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/js-create-lowering.h')
-rw-r--r--deps/v8/src/compiler/js-create-lowering.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/deps/v8/src/compiler/js-create-lowering.h b/deps/v8/src/compiler/js-create-lowering.h
index 2fb28ebfd4..0edbda79a0 100644
--- a/deps/v8/src/compiler/js-create-lowering.h
+++ b/deps/v8/src/compiler/js-create-lowering.h
@@ -22,6 +22,7 @@ namespace compiler {
// Forward declarations.
class CommonOperatorBuilder;
class CompilationDependencies;
+class FrameState;
class JSGraph;
class JSOperatorBuilder;
class MachineOperatorBuilder;
@@ -82,17 +83,21 @@ class V8_EXPORT_PRIVATE JSCreateLowering final
const SlackTrackingPrediction& slack_tracking_prediction);
Reduction ReduceJSCreateObject(Node* node);
- Node* AllocateArguments(Node* effect, Node* control, Node* frame_state);
- Node* AllocateRestArguments(Node* effect, Node* control, Node* frame_state,
- int start_index);
- Node* AllocateAliasedArguments(Node* effect, Node* control, Node* frame_state,
- Node* context,
- const SharedFunctionInfoRef& shared,
- bool* has_aliased_arguments);
- Node* AllocateAliasedArguments(Node* effect, Node* control, Node* context,
- Node* arguments_frame, Node* arguments_length,
- const SharedFunctionInfoRef& shared,
- bool* has_aliased_arguments);
+ // The following functions all return nullptr iff there are too many arguments
+ // for inline allocation.
+ Node* TryAllocateArguments(Node* effect, Node* control,
+ FrameState frame_state);
+ Node* TryAllocateRestArguments(Node* effect, Node* control,
+ FrameState frame_state, int start_index);
+ Node* TryAllocateAliasedArguments(Node* effect, Node* control,
+ FrameState frame_state, Node* context,
+ const SharedFunctionInfoRef& shared,
+ bool* has_aliased_arguments);
+ Node* TryAllocateAliasedArguments(Node* effect, Node* control, Node* context,
+ Node* arguments_length,
+ const SharedFunctionInfoRef& shared,
+ bool* has_aliased_arguments);
+
Node* AllocateElements(Node* effect, Node* control,
ElementsKind elements_kind, int capacity,
AllocationType allocation);
@@ -108,7 +113,7 @@ class V8_EXPORT_PRIVATE JSCreateLowering final
JSObjectRef boilerplate,
AllocationType allocation);
Node* AllocateLiteralRegExp(Node* effect, Node* control,
- JSRegExpRef boilerplate);
+ RegExpBoilerplateDescriptionRef boilerplate);
Factory* factory() const;
Graph* graph() const;