| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/frames.h" | 5 #include "src/frames.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/v8.h" | 9 #include "src/v8.h" |
| 10 | 10 |
| (...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 DCHECK(!is_constructor); | 976 DCHECK(!is_constructor); |
| 977 } | 977 } |
| 978 | 978 |
| 979 | 979 |
| 980 int OptimizedFrame::LookupExceptionHandlerInTable(int* stack_slots) { | 980 int OptimizedFrame::LookupExceptionHandlerInTable(int* stack_slots) { |
| 981 Code* code = LookupCode(); | 981 Code* code = LookupCode(); |
| 982 DCHECK(code->is_optimized_code()); | 982 DCHECK(code->is_optimized_code()); |
| 983 HandlerTable* table = HandlerTable::cast(code->handler_table()); | 983 HandlerTable* table = HandlerTable::cast(code->handler_table()); |
| 984 int pc_offset = static_cast<int>(pc() - code->entry()); | 984 int pc_offset = static_cast<int>(pc() - code->entry()); |
| 985 *stack_slots = code->stack_slots(); | 985 *stack_slots = code->stack_slots(); |
| 986 return table->LookupReturn(pc_offset); | 986 HandlerTable::CatchPrediction prediction; // TODO(yangguo): For debugger. |
| 987 return table->LookupReturn(pc_offset, &prediction); |
| 987 } | 988 } |
| 988 | 989 |
| 989 | 990 |
| 990 DeoptimizationInputData* OptimizedFrame::GetDeoptimizationData( | 991 DeoptimizationInputData* OptimizedFrame::GetDeoptimizationData( |
| 991 int* deopt_index) { | 992 int* deopt_index) { |
| 992 DCHECK(is_optimized()); | 993 DCHECK(is_optimized()); |
| 993 | 994 |
| 994 JSFunction* opt_function = function(); | 995 JSFunction* opt_function = function(); |
| 995 Code* code = opt_function->code(); | 996 Code* code = opt_function->code(); |
| 996 | 997 |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1517 ZoneList<StackFrame*> list(10, zone); | 1518 ZoneList<StackFrame*> list(10, zone); |
| 1518 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 1519 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { |
| 1519 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1520 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
| 1520 list.Add(frame, zone); | 1521 list.Add(frame, zone); |
| 1521 } | 1522 } |
| 1522 return list.ToVector(); | 1523 return list.ToVector(); |
| 1523 } | 1524 } |
| 1524 | 1525 |
| 1525 | 1526 |
| 1526 } } // namespace v8::internal | 1527 } } // namespace v8::internal |
| OLD | NEW |