Skip to content

Commit f5af386

Browse files
committed
Version 1.24.0-dev.6.4
Cherry-pick 97b7504 to dev Cherry-pick 93864c0 to dev
2 parents c0637fc + d2a7276 commit f5af386

25 files changed

+405
-556
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ vars = {
109109
"source_map_stack_trace_tag": "@1.1.4",
110110
"source_maps-0.9.4_rev": "@38524",
111111
"source_maps_tag": "@0.10.4",
112-
"source_span_tag": "@1.3.1",
112+
"source_span_tag": "@1.4.0",
113113
"stack_trace_tag": "@1.7.2",
114114
"stream_channel_tag": "@1.6.1",
115115
"string_scanner_tag": "@1.0.1",

runtime/vm/aot_optimizer.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ bool AotOptimizer::TryReplaceWithEqualityOp(InstanceCallInstr* call,
710710
StrictCompareInstr* comp = new (Z)
711711
StrictCompareInstr(call->token_pos(), Token::kEQ_STRICT,
712712
new (Z) Value(left), new (Z) Value(right),
713-
/* number_check = */ false, Thread::kNoDeoptId);
713+
false); // No number check.
714714
ReplaceCall(call, comp);
715715
return true;
716716
}
@@ -1441,9 +1441,10 @@ void AotOptimizer::ReplaceWithInstanceOf(InstanceCallInstr* call) {
14411441
ConstantInstr* cid =
14421442
flow_graph()->GetConstant(Smi::Handle(Z, Smi::New(type_cid)));
14431443

1444-
StrictCompareInstr* check_cid = new (Z) StrictCompareInstr(
1445-
call->token_pos(), Token::kEQ_STRICT, new (Z) Value(left_cid),
1446-
new (Z) Value(cid), /* number_check = */ false, Thread::kNoDeoptId);
1444+
StrictCompareInstr* check_cid =
1445+
new (Z) StrictCompareInstr(call->token_pos(), Token::kEQ_STRICT,
1446+
new (Z) Value(left_cid), new (Z) Value(cid),
1447+
false); // No number check.
14471448
ReplaceCall(call, check_cid);
14481449
return;
14491450
}

runtime/vm/branch_optimizer.cc

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ JoinEntryInstr* BranchSimplifier::ToJoinEntry(Zone* zone,
6565
// Convert a target block into a join block. Branches will be duplicated
6666
// so the former true and false targets become joins of the control flows
6767
// from all the duplicated branches.
68-
JoinEntryInstr* join = new (zone) JoinEntryInstr(
69-
target->block_id(), target->try_index(), Thread::kNoDeoptId);
68+
JoinEntryInstr* join =
69+
new (zone) JoinEntryInstr(target->block_id(), target->try_index());
7070
join->InheritDeoptTarget(zone, target);
7171
join->LinkTo(target->next());
7272
join->set_last_instruction(target->last_instruction());
@@ -82,8 +82,7 @@ BranchInstr* BranchSimplifier::CloneBranch(Zone* zone,
8282
ComparisonInstr* comparison = branch->comparison();
8383
ComparisonInstr* new_comparison =
8484
comparison->CopyWithNewOperands(new_left, new_right);
85-
BranchInstr* new_branch =
86-
new (zone) BranchInstr(new_comparison, Thread::kNoDeoptId);
85+
BranchInstr* new_branch = new (zone) BranchInstr(new_comparison);
8786
return new_branch;
8887
}
8988

@@ -184,24 +183,20 @@ void BranchSimplifier::Simplify(FlowGraph* flow_graph) {
184183

185184
// Connect the branch to the true and false joins, via empty target
186185
// blocks.
187-
TargetEntryInstr* true_target =
188-
new (zone) TargetEntryInstr(flow_graph->max_block_id() + 1,
189-
block->try_index(), Thread::kNoDeoptId);
186+
TargetEntryInstr* true_target = new (zone) TargetEntryInstr(
187+
flow_graph->max_block_id() + 1, block->try_index());
190188
true_target->InheritDeoptTarget(zone, join_true);
191-
TargetEntryInstr* false_target =
192-
new (zone) TargetEntryInstr(flow_graph->max_block_id() + 2,
193-
block->try_index(), Thread::kNoDeoptId);
189+
TargetEntryInstr* false_target = new (zone) TargetEntryInstr(
190+
flow_graph->max_block_id() + 2, block->try_index());
194191
false_target->InheritDeoptTarget(zone, join_false);
195192
flow_graph->set_max_block_id(flow_graph->max_block_id() + 2);
196193
*new_branch->true_successor_address() = true_target;
197194
*new_branch->false_successor_address() = false_target;
198-
GotoInstr* goto_true =
199-
new (zone) GotoInstr(join_true, Thread::kNoDeoptId);
195+
GotoInstr* goto_true = new (zone) GotoInstr(join_true);
200196
goto_true->InheritDeoptTarget(zone, join_true);
201197
true_target->LinkTo(goto_true);
202198
true_target->set_last_instruction(goto_true);
203-
GotoInstr* goto_false =
204-
new (zone) GotoInstr(join_false, Thread::kNoDeoptId);
199+
GotoInstr* goto_false = new (zone) GotoInstr(join_false);
205200
goto_false->InheritDeoptTarget(zone, join_false);
206201
false_target->LinkTo(goto_false);
207202
false_target->set_last_instruction(goto_false);
@@ -300,9 +295,8 @@ void IfConverter::Simplify(FlowGraph* flow_graph) {
300295

301296
ComparisonInstr* new_comparison = comparison->CopyWithNewOperands(
302297
comparison->left()->Copy(zone), comparison->right()->Copy(zone));
303-
IfThenElseInstr* if_then_else = new (zone)
304-
IfThenElseInstr(new_comparison, if_true->Copy(zone),
305-
if_false->Copy(zone), Thread::kNoDeoptId);
298+
IfThenElseInstr* if_then_else = new (zone) IfThenElseInstr(
299+
new_comparison, if_true->Copy(zone), if_false->Copy(zone));
306300
flow_graph->InsertBefore(branch, if_then_else, NULL,
307301
FlowGraph::kValue);
308302

runtime/vm/constant_propagator.cc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,8 +1551,7 @@ void ConstantPropagator::EliminateRedundantBranches() {
15511551
// Drop the comparison, which does not have side effects
15521552
JoinEntryInstr* join = if_true->AsJoinEntry();
15531553
if (join->phis() == NULL) {
1554-
GotoInstr* jump =
1555-
new (Z) GotoInstr(if_true->AsJoinEntry(), Thread::kNoDeoptId);
1554+
GotoInstr* jump = new (Z) GotoInstr(if_true->AsJoinEntry());
15561555
jump->InheritDeoptTarget(Z, branch);
15571556

15581557
Instruction* previous = branch->previous();
@@ -1695,16 +1694,16 @@ void ConstantPropagator::Transform() {
16951694
ASSERT(reachable_->Contains(if_false->preorder_number()));
16961695
ASSERT(if_false->parallel_move() == NULL);
16971696
ASSERT(if_false->loop_info() == NULL);
1698-
join = new (Z) JoinEntryInstr(
1699-
if_false->block_id(), if_false->try_index(), Thread::kNoDeoptId);
1697+
join =
1698+
new (Z) JoinEntryInstr(if_false->block_id(), if_false->try_index());
17001699
join->InheritDeoptTarget(Z, if_false);
17011700
if_false->UnuseAllInputs();
17021701
next = if_false->next();
17031702
} else if (!reachable_->Contains(if_false->preorder_number())) {
17041703
ASSERT(if_true->parallel_move() == NULL);
17051704
ASSERT(if_true->loop_info() == NULL);
1706-
join = new (Z) JoinEntryInstr(if_true->block_id(), if_true->try_index(),
1707-
Thread::kNoDeoptId);
1705+
join =
1706+
new (Z) JoinEntryInstr(if_true->block_id(), if_true->try_index());
17081707
join->InheritDeoptTarget(Z, if_true);
17091708
if_true->UnuseAllInputs();
17101709
next = if_true->next();
@@ -1715,7 +1714,7 @@ void ConstantPropagator::Transform() {
17151714
// Drop the comparison, which does not have side effects as long
17161715
// as it is a strict compare (the only one we can determine is
17171716
// constant with the current analysis).
1718-
GotoInstr* jump = new (Z) GotoInstr(join, Thread::kNoDeoptId);
1717+
GotoInstr* jump = new (Z) GotoInstr(join);
17191718
jump->InheritDeoptTarget(Z, branch);
17201719

17211720
Instruction* previous = branch->previous();

runtime/vm/flow_graph.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,8 +1018,7 @@ void FlowGraph::Rename(GrowableArray<PhiInstr*>* live_phis,
10181018
for (intptr_t i = parameter_count(); i < variable_count(); ++i) {
10191019
if (i == CurrentContextEnvIndex()) {
10201020
if (function().IsClosureFunction()) {
1021-
CurrentContextInstr* context =
1022-
new CurrentContextInstr(Thread::kNoDeoptId);
1021+
CurrentContextInstr* context = new CurrentContextInstr();
10231022
context->set_ssa_temp_index(alloc_ssa_temp_index()); // New SSA temp.
10241023
AddToInitialDefinitions(context);
10251024
env.Add(context);

0 commit comments

Comments
 (0)