| Index: src/frames.cc
|
| diff --git a/src/frames.cc b/src/frames.cc
|
| index 86f2a1166b641b551412926cf46fed5ce765db01..434cdb34605cac880d6a96a94542442aa278ce7b 100644
|
| --- a/src/frames.cc
|
| +++ b/src/frames.cc
|
| @@ -761,12 +761,13 @@ void JavaScriptFrame::Summarize(List<FrameSummary>* functions) {
|
| }
|
|
|
|
|
| -int JavaScriptFrame::LookupExceptionHandlerInTable(int* stack_slots) {
|
| +int JavaScriptFrame::LookupExceptionHandlerInTable(
|
| + int* stack_slots, HandlerTable::CatchPrediction* prediction) {
|
| Code* code = LookupCode();
|
| DCHECK(!code->is_optimized_code());
|
| HandlerTable* table = HandlerTable::cast(code->handler_table());
|
| int pc_offset = static_cast<int>(pc() - code->entry());
|
| - return table->LookupRange(pc_offset, stack_slots);
|
| + return table->LookupRange(pc_offset, stack_slots, prediction);
|
| }
|
|
|
|
|
| @@ -977,14 +978,14 @@ void OptimizedFrame::Summarize(List<FrameSummary>* frames) {
|
| }
|
|
|
|
|
| -int OptimizedFrame::LookupExceptionHandlerInTable(int* stack_slots) {
|
| +int OptimizedFrame::LookupExceptionHandlerInTable(
|
| + int* stack_slots, HandlerTable::CatchPrediction* prediction) {
|
| Code* code = LookupCode();
|
| DCHECK(code->is_optimized_code());
|
| HandlerTable* table = HandlerTable::cast(code->handler_table());
|
| int pc_offset = static_cast<int>(pc() - code->entry());
|
| *stack_slots = code->stack_slots();
|
| - HandlerTable::CatchPrediction prediction; // TODO(yangguo): For debugger.
|
| - return table->LookupReturn(pc_offset, &prediction);
|
| + return table->LookupReturn(pc_offset, prediction);
|
| }
|
|
|
|
|
|
|