Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: src/compiler/code-generator.cc

Issue 2207533002: [turbofan] Remove IfExceptionHint from exception projections. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/code-generator.h ('k') | src/compiler/common-operator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
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) {
« no previous file with comments | « src/compiler/code-generator.h ('k') | src/compiler/common-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698