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

Side by Side Diff: src/frames.h

Issue 2197183002: [debugger] use handler table on unoptimized code for exception prediction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comments and rebase 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/frames.cc » ('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 #ifndef V8_FRAMES_H_ 5 #ifndef V8_FRAMES_H_
6 #define V8_FRAMES_H_ 6 #define V8_FRAMES_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/handles.h" 9 #include "src/handles.h"
10 #include "src/safepoint-table.h" 10 #include "src/safepoint-table.h"
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 // approximate mode should produce a summary even without deoptimization 703 // approximate mode should produce a summary even without deoptimization
704 // information, but it might miss frames. 704 // information, but it might miss frames.
705 enum Mode { kExactSummary, kApproximateSummary }; 705 enum Mode { kExactSummary, kApproximateSummary };
706 706
707 FrameSummary(Object* receiver, JSFunction* function, 707 FrameSummary(Object* receiver, JSFunction* function,
708 AbstractCode* abstract_code, int code_offset, 708 AbstractCode* abstract_code, int code_offset,
709 bool is_constructor, Mode mode = kExactSummary); 709 bool is_constructor, Mode mode = kExactSummary);
710 710
711 static FrameSummary GetFirst(JavaScriptFrame* frame); 711 static FrameSummary GetFirst(JavaScriptFrame* frame);
712 712
713 Handle<Object> receiver() { return receiver_; } 713 Handle<Object> receiver() const { return receiver_; }
714 Handle<JSFunction> function() { return function_; } 714 Handle<JSFunction> function() const { return function_; }
715 Handle<AbstractCode> abstract_code() { return abstract_code_; } 715 Handle<AbstractCode> abstract_code() const { return abstract_code_; }
716 int code_offset() { return code_offset_; } 716 int code_offset() const { return code_offset_; }
717 bool is_constructor() { return is_constructor_; } 717 bool is_constructor() const { return is_constructor_; }
718 718
719 void Print(); 719 void Print();
720 720
721 private: 721 private:
722 Handle<Object> receiver_; 722 Handle<Object> receiver_;
723 Handle<JSFunction> function_; 723 Handle<JSFunction> function_;
724 Handle<AbstractCode> abstract_code_; 724 Handle<AbstractCode> abstract_code_;
725 int code_offset_; 725 int code_offset_;
726 bool is_constructor_; 726 bool is_constructor_;
727 }; 727 };
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 1318
1319 1319
1320 // Reads all frames on the current stack and copies them into the current 1320 // Reads all frames on the current stack and copies them into the current
1321 // zone memory. 1321 // zone memory.
1322 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 1322 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
1323 1323
1324 } // namespace internal 1324 } // namespace internal
1325 } // namespace v8 1325 } // namespace v8
1326 1326
1327 #endif // V8_FRAMES_H_ 1327 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « no previous file | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698