Commit 549031b4 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[interpreter] Add a comment regarding CreateArrayFromIterable

R=rmcilroy@chromium.org

Change-Id: I41739db4d6cb06e798ff6a323a526329b4ac0af4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1562132Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60826}
parent 6832f292
...@@ -1430,11 +1430,10 @@ IGNITION_HANDLER(Inc, IncDecAssembler) { IncWithFeedback(); } ...@@ -1430,11 +1430,10 @@ IGNITION_HANDLER(Inc, IncDecAssembler) { IncWithFeedback(); }
// Decrements value in the accumulator by one. // Decrements value in the accumulator by one.
IGNITION_HANDLER(Dec, IncDecAssembler) { DecWithFeedback(); } IGNITION_HANDLER(Dec, IncDecAssembler) { DecWithFeedback(); }
// LogicalNot // ToBooleanLogicalNot
// //
// Perform logical-not on the accumulator, first casting the // Perform logical-not on the accumulator, first casting the
// accumulator to a boolean value if required. // accumulator to a boolean value if required.
// ToBooleanLogicalNot
IGNITION_HANDLER(ToBooleanLogicalNot, InterpreterAssembler) { IGNITION_HANDLER(ToBooleanLogicalNot, InterpreterAssembler) {
Node* value = GetAccumulator(); Node* value = GetAccumulator();
Variable result(this, MachineRepresentation::kTagged); Variable result(this, MachineRepresentation::kTagged);
...@@ -2487,6 +2486,7 @@ IGNITION_HANDLER(CreateEmptyArrayLiteral, InterpreterAssembler) { ...@@ -2487,6 +2486,7 @@ IGNITION_HANDLER(CreateEmptyArrayLiteral, InterpreterAssembler) {
// CreateArrayFromIterable // CreateArrayFromIterable
// //
// Spread the given iterable from the accumulator into a new JSArray. // Spread the given iterable from the accumulator into a new JSArray.
// TODO(neis): Turn this into an intrinsic when we're running out of bytecodes.
IGNITION_HANDLER(CreateArrayFromIterable, InterpreterAssembler) { IGNITION_HANDLER(CreateArrayFromIterable, InterpreterAssembler) {
Node* iterable = GetAccumulator(); Node* iterable = GetAccumulator();
Node* context = GetContext(); Node* context = GetContext();
......
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