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

Side by Side Diff: src/frames.cc

Issue 1158563008: [turbofan] Introduce prediction for exception handlers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Architecture ports. Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698