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

Side by Side Diff: src/frames.h

Issue 1154163006: Debugger: consider try-finally scopes not catching wrt debug events. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove modes for PredictExceptionCatcher 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/debug.cc ('k') | 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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 virtual int GetInlineCount() { return 1; } 556 virtual int GetInlineCount() { return 1; }
557 557
558 // Return a list with JSFunctions of this frame. 558 // Return a list with JSFunctions of this frame.
559 virtual void GetFunctions(List<JSFunction*>* functions); 559 virtual void GetFunctions(List<JSFunction*>* functions);
560 560
561 // Build a list with summaries for this frame including all inlined frames. 561 // Build a list with summaries for this frame including all inlined frames.
562 virtual void Summarize(List<FrameSummary>* frames); 562 virtual void Summarize(List<FrameSummary>* frames);
563 563
564 // Lookup exception handler for current {pc}, returns -1 if none found. Also 564 // Lookup exception handler for current {pc}, returns -1 if none found. Also
565 // returns the expected number of stack slots at the handler site. 565 // returns the expected number of stack slots at the handler site.
566 virtual int LookupExceptionHandlerInTable(int* stack_slots); 566 virtual int LookupExceptionHandlerInTable(
567 int* stack_slots, HandlerTable::CatchPrediction* prediction);
567 568
568 // Architecture-specific register description. 569 // Architecture-specific register description.
569 static Register fp_register(); 570 static Register fp_register();
570 static Register context_register(); 571 static Register context_register();
571 static Register constant_pool_pointer_register(); 572 static Register constant_pool_pointer_register();
572 573
573 static JavaScriptFrame* cast(StackFrame* frame) { 574 static JavaScriptFrame* cast(StackFrame* frame) {
574 DCHECK(frame->is_java_script()); 575 DCHECK(frame->is_java_script());
575 return static_cast<JavaScriptFrame*>(frame); 576 return static_cast<JavaScriptFrame*>(frame);
576 } 577 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 633
633 // Return a list with JSFunctions of this frame. 634 // Return a list with JSFunctions of this frame.
634 // The functions are ordered bottom-to-top (i.e. functions.last() 635 // The functions are ordered bottom-to-top (i.e. functions.last()
635 // is the top-most activation) 636 // is the top-most activation)
636 virtual void GetFunctions(List<JSFunction*>* functions); 637 virtual void GetFunctions(List<JSFunction*>* functions);
637 638
638 virtual void Summarize(List<FrameSummary>* frames); 639 virtual void Summarize(List<FrameSummary>* frames);
639 640
640 // Lookup exception handler for current {pc}, returns -1 if none found. Also 641 // Lookup exception handler for current {pc}, returns -1 if none found. Also
641 // returns the expected number of stack slots at the handler site. 642 // returns the expected number of stack slots at the handler site.
642 virtual int LookupExceptionHandlerInTable(int* stack_slots); 643 virtual int LookupExceptionHandlerInTable(
644 int* stack_slots, HandlerTable::CatchPrediction* prediction);
643 645
644 DeoptimizationInputData* GetDeoptimizationData(int* deopt_index); 646 DeoptimizationInputData* GetDeoptimizationData(int* deopt_index);
645 647
646 protected: 648 protected:
647 inline explicit OptimizedFrame(StackFrameIteratorBase* iterator); 649 inline explicit OptimizedFrame(StackFrameIteratorBase* iterator);
648 650
649 private: 651 private:
650 JSFunction* LiteralAt(FixedArray* literal_array, int literal_id); 652 JSFunction* LiteralAt(FixedArray* literal_array, int literal_id);
651 653
652 friend class StackFrameIteratorBase; 654 friend class StackFrameIteratorBase;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 }; 899 };
898 900
899 901
900 // Reads all frames on the current stack and copies them into the current 902 // Reads all frames on the current stack and copies them into the current
901 // zone memory. 903 // zone memory.
902 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone); 904 Vector<StackFrame*> CreateStackMap(Isolate* isolate, Zone* zone);
903 905
904 } } // namespace v8::internal 906 } } // namespace v8::internal
905 907
906 #endif // V8_FRAMES_H_ 908 #endif // V8_FRAMES_H_
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698