Skip to content

Commit

Permalink
[vm] Don't do pragma_unsafe_no_bounds_check_test on IA32
Browse files Browse the repository at this point in the history
TEST=ci
Bug: #56910
Change-Id: Iaed0cbf5ed139a14cfa4736839fbd6013bcfccfc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/391702
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
  • Loading branch information
rakudrama authored and Commit Queue committed Oct 24, 2024
1 parent 93fda3e commit e288d38
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

namespace dart {

#if !defined(TARGET_ARCH_IA32)

static int CountCheckBounds(FlowGraph* flow_graph) {
int checks = 0;
for (BlockIterator block_it = flow_graph->reverse_postorder_iterator();
Expand Down Expand Up @@ -105,4 +107,6 @@ ISOLATE_UNIT_TEST_CASE(BoundsCheckElimination_Pragma_learning_control) {
EXPECT_EQ(1, CountCheckBounds(flow_graph));
}

#endif // !defined(TARGET_ARCH_IA32)

} // namespace dart

0 comments on commit e288d38

Please sign in to comment.