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

Unified Diff: src/frames.cc

Issue 2521233002: [fullcodegen] Remove exception handling support. (Closed)
Patch Set: Rebased. Created 4 years, 1 month 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/frames.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index 5ecffaf7b10f1b8e6dcba021a98c901e3460c6d4..1eea2219c28fcba77adcaf86a9686c7b4bf652f6 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -982,10 +982,9 @@ Object* JavaScriptFrame::context() const {
int JavaScriptFrame::LookupExceptionHandlerInTable(
int* stack_depth, HandlerTable::CatchPrediction* prediction) {
- Code* code = LookupCode();
- DCHECK(!code->is_optimized_code());
- int pc_offset = static_cast<int>(pc() - code->entry());
- return code->LookupRangeInHandlerTable(pc_offset, stack_depth, prediction);
+ DCHECK_EQ(0, LookupCode()->handler_table()->length());
+ DCHECK(!LookupCode()->is_optimized_code());
+ return -1;
}
void JavaScriptFrame::PrintFunctionAndOffset(JSFunction* function,
« no previous file with comments | « src/frames.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698