| Index: src/a64/lithium-codegen-a64.cc
|
| diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc
|
| index 65e897bcd76f53d850beb9668afeee6d3811f469..2fb24347528e65cdca6cd58b663f72a349f53c41 100644
|
| --- a/src/a64/lithium-codegen-a64.cc
|
| +++ b/src/a64/lithium-codegen-a64.cc
|
| @@ -885,7 +885,10 @@ void LCodeGen::Deoptimize(LEnvironment* environment,
|
| }
|
|
|
| TODO_UNIMPLEMENTED("Add support for deopt_every_n_times flag.");
|
| - TODO_UNIMPLEMENTED("Add support for trap_on_deopt flag.");
|
| + if (FLAG_trap_on_deopt && info()->IsOptimizing()) {
|
| + __ Debug("trap_on_deopt", __LINE__, BREAK);
|
| + }
|
| +
|
|
|
| // TODO(all): Currently this code directly jump to the second level deopt
|
| // table entry. This code need to be updated if we decide to use the
|
|
|