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

Side by Side Diff: src/isolate.h

Issue 674423002: Get stack trace for uncaught exceptions/promise rejections from the simple stack when available. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed Created 6 years, 1 month 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 | « src/api.cc ('k') | src/isolate.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_ISOLATE_H_ 5 #ifndef V8_ISOLATE_H_
6 #define V8_ISOLATE_H_ 6 #define V8_ISOLATE_H_
7 7
8 #include "include/v8-debug.h" 8 #include "include/v8-debug.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 Map* map, 739 Map* map,
740 unsigned int magic2)); 740 unsigned int magic2));
741 Handle<JSArray> CaptureCurrentStackTrace( 741 Handle<JSArray> CaptureCurrentStackTrace(
742 int frame_limit, 742 int frame_limit,
743 StackTrace::StackTraceOptions options); 743 StackTrace::StackTraceOptions options);
744 Handle<Object> CaptureSimpleStackTrace(Handle<JSObject> error_object, 744 Handle<Object> CaptureSimpleStackTrace(Handle<JSObject> error_object,
745 Handle<Object> caller); 745 Handle<Object> caller);
746 void CaptureAndSetDetailedStackTrace(Handle<JSObject> error_object); 746 void CaptureAndSetDetailedStackTrace(Handle<JSObject> error_object);
747 void CaptureAndSetSimpleStackTrace(Handle<JSObject> error_object, 747 void CaptureAndSetSimpleStackTrace(Handle<JSObject> error_object,
748 Handle<Object> caller); 748 Handle<Object> caller);
749 Handle<JSArray> GetDetailedStackTrace(Handle<JSObject> error_object);
750 Handle<JSArray> GetDetailedFromSimpleStackTrace(
751 Handle<JSObject> error_object);
749 752
750 // Returns if the top context may access the given global object. If 753 // Returns if the top context may access the given global object. If
751 // the result is false, the pending exception is guaranteed to be 754 // the result is false, the pending exception is guaranteed to be
752 // set. 755 // set.
753 756
754 bool MayNamedAccess(Handle<JSObject> receiver, 757 bool MayNamedAccess(Handle<JSObject> receiver,
755 Handle<Object> key, 758 Handle<Object> key,
756 v8::AccessType type); 759 v8::AccessType type);
757 bool MayIndexedAccess(Handle<JSObject> receiver, 760 bool MayIndexedAccess(Handle<JSObject> receiver,
758 uint32_t index, 761 uint32_t index,
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 } 1536 }
1534 1537
1535 EmbeddedVector<char, 128> filename_; 1538 EmbeddedVector<char, 128> filename_;
1536 FILE* file_; 1539 FILE* file_;
1537 int scope_depth_; 1540 int scope_depth_;
1538 }; 1541 };
1539 1542
1540 } } // namespace v8::internal 1543 } } // namespace v8::internal
1541 1544
1542 #endif // V8_ISOLATE_H_ 1545 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698