Chromium Code Reviews| Index: src/compiler/code-generator.cc |
| diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
| index 6f03d1361294d2f98a75363195c1058192472745..59d5136cc37edd4bbbc88c428e3bfd201ea12b4f 100644 |
| --- a/src/compiler/code-generator.cc |
| +++ b/src/compiler/code-generator.cc |
| @@ -229,9 +229,9 @@ Handle<Code> CodeGenerator::GenerateCode() { |
| TENURED)); |
| for (size_t i = 0; i < handlers_.size(); ++i) { |
| int position = handlers_[i].handler->pos(); |
| + HandlerTable::CatchPrediction prediction = HandlerTable::UNCAUGHT; |
| table->SetReturnOffset(static_cast<int>(i), handlers_[i].pc_offset); |
| - table->SetReturnHandler(static_cast<int>(i), position, |
| - handlers_[i].catch_prediction); |
| + table->SetReturnHandler(static_cast<int>(i), position, prediction); |
|
Yang
2016/08/02 13:20:40
Do we still want to have this prediction field whe
Michael Starzinger
2016/08/02 13:22:49
Acknowledged. I agree, we should remove the predic
|
| } |
| result->set_handler_table(*table); |
| } |
| @@ -603,15 +603,8 @@ void CodeGenerator::RecordCallPosition(Instruction* instr) { |
| if (flags & CallDescriptor::kHasExceptionHandler) { |
| InstructionOperandConverter i(this, instr); |
| - HandlerTable::CatchPrediction prediction = HandlerTable::UNCAUGHT; |
| - if (flags & CallDescriptor::kHasLocalCatchHandler) { |
| - prediction = HandlerTable::CAUGHT; |
| - } else if (flags & CallDescriptor::kHasLocalCatchHandlerForPromiseReject) { |
| - prediction = HandlerTable::PROMISE; |
| - } |
| RpoNumber handler_rpo = i.InputRpo(instr->InputCount() - 1); |
| - handlers_.push_back( |
| - {prediction, GetLabel(handler_rpo), masm()->pc_offset()}); |
| + handlers_.push_back({GetLabel(handler_rpo), masm()->pc_offset()}); |
| } |
| if (needs_frame_state) { |