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

Side by Side Diff: src/frames.h

Issue 555170: Show user script source line that caused exception intead of a line in a nati... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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 | Annotate | Revision Log
« 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 582
583 583
584 // NOTE: The stack trace frame iterator is an iterator that only 584 // NOTE: The stack trace frame iterator is an iterator that only
585 // traverse proper JavaScript frames; that is JavaScript frames that 585 // traverse proper JavaScript frames; that is JavaScript frames that
586 // have proper JavaScript functions. This excludes the problematic 586 // have proper JavaScript functions. This excludes the problematic
587 // functions in runtime.js. 587 // functions in runtime.js.
588 class StackTraceFrameIterator: public JavaScriptFrameIterator { 588 class StackTraceFrameIterator: public JavaScriptFrameIterator {
589 public: 589 public:
590 StackTraceFrameIterator(); 590 StackTraceFrameIterator();
591 void Advance(); 591 void Advance();
592
593 private:
594 bool IsValidFrame();
592 }; 595 };
593 596
594 597
595 class SafeStackFrameIterator BASE_EMBEDDED { 598 class SafeStackFrameIterator BASE_EMBEDDED {
596 public: 599 public:
597 SafeStackFrameIterator(Address fp, Address sp, 600 SafeStackFrameIterator(Address fp, Address sp,
598 Address low_bound, Address high_bound); 601 Address low_bound, Address high_bound);
599 602
600 StackFrame* frame() const { 603 StackFrame* frame() const {
601 ASSERT(is_working_iterator_); 604 ASSERT(is_working_iterator_);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 JavaScriptFrame* FindJavaScriptFrame(int n); 654 JavaScriptFrame* FindJavaScriptFrame(int n);
652 655
653 private: 656 private:
654 StackFrameIterator iterator_; 657 StackFrameIterator iterator_;
655 }; 658 };
656 659
657 660
658 } } // namespace v8::internal 661 } } // namespace v8::internal
659 662
660 #endif // V8_FRAMES_H_ 663 #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