| Index: test/cctest/test-cpu-profiler.cc
|
| diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc
|
| index a990f987cdd8459a9685aa73f32c4264f32cb3a8..5b17b135daac7536e1bc98734222a72d4dc25451 100644
|
| --- a/test/cctest/test-cpu-profiler.cc
|
| +++ b/test/cctest/test-cpu-profiler.cc
|
| @@ -1771,8 +1771,12 @@ TEST(CollectDeoptEvents) {
|
| }
|
| {
|
| const char* branch[] = {"", "opt_function1", "opt_function1"};
|
| - CHECK_EQ(reason(i::Deoptimizer::kNaN),
|
| - GetBranchDeoptReason(iprofile, branch, arraysize(branch)));
|
| + const char* deopt_reason =
|
| + GetBranchDeoptReason(iprofile, branch, arraysize(branch));
|
| + if (deopt_reason != reason(i::Deoptimizer::kNaN) &&
|
| + deopt_reason != reason(i::Deoptimizer::kLostPrecisionOrNaN)) {
|
| + FATAL(deopt_reason);
|
| + }
|
| }
|
| {
|
| const char* branch[] = {"", "opt_function2", "opt_function2"};
|
|
|