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

Side by Side Diff: src/isolate.h

Issue 2813773002: [inspector] store v8:StackTrace as FixedArray (Closed)
Patch Set: addressed comments Created 3 years, 8 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/asmjs/asm-typer.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 <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 NO_INLINE(void PushStackTraceAndDie(unsigned int magic1, void* ptr1, 710 NO_INLINE(void PushStackTraceAndDie(unsigned int magic1, void* ptr1,
711 void* ptr2, unsigned int magic2)); 711 void* ptr2, unsigned int magic2));
712 NO_INLINE(void PushStackTraceAndDie(unsigned int magic1, void* ptr1, 712 NO_INLINE(void PushStackTraceAndDie(unsigned int magic1, void* ptr1,
713 void* ptr2, void* ptr3, void* ptr4, 713 void* ptr2, void* ptr3, void* ptr4,
714 void* ptr5, void* ptr6, void* ptr7, 714 void* ptr5, void* ptr6, void* ptr7,
715 void* ptr8, unsigned int magic2)); 715 void* ptr8, unsigned int magic2));
716 NO_INLINE(void PushCodeObjectsAndDie(unsigned int magic, void* ptr1, 716 NO_INLINE(void PushCodeObjectsAndDie(unsigned int magic, void* ptr1,
717 void* ptr2, void* ptr3, void* ptr4, 717 void* ptr2, void* ptr3, void* ptr4,
718 void* ptr5, void* ptr6, void* ptr7, 718 void* ptr5, void* ptr6, void* ptr7,
719 void* ptr8, unsigned int magic2)); 719 void* ptr8, unsigned int magic2));
720 Handle<JSArray> CaptureCurrentStackTrace( 720 Handle<FixedArray> CaptureCurrentStackTrace(
721 int frame_limit, 721 int frame_limit, StackTrace::StackTraceOptions options);
722 StackTrace::StackTraceOptions options);
723 Handle<Object> CaptureSimpleStackTrace(Handle<JSReceiver> error_object, 722 Handle<Object> CaptureSimpleStackTrace(Handle<JSReceiver> error_object,
724 FrameSkipMode mode, 723 FrameSkipMode mode,
725 Handle<Object> caller); 724 Handle<Object> caller);
726 MaybeHandle<JSReceiver> CaptureAndSetDetailedStackTrace( 725 MaybeHandle<JSReceiver> CaptureAndSetDetailedStackTrace(
727 Handle<JSReceiver> error_object); 726 Handle<JSReceiver> error_object);
728 MaybeHandle<JSReceiver> CaptureAndSetSimpleStackTrace( 727 MaybeHandle<JSReceiver> CaptureAndSetSimpleStackTrace(
729 Handle<JSReceiver> error_object, FrameSkipMode mode, 728 Handle<JSReceiver> error_object, FrameSkipMode mode,
730 Handle<Object> caller); 729 Handle<Object> caller);
731 Handle<JSArray> GetDetailedStackTrace(Handle<JSObject> error_object); 730 Handle<FixedArray> GetDetailedStackTrace(Handle<JSObject> error_object);
732 731
733 // Returns if the given context may access the given global object. If 732 // Returns if the given context may access the given global object. If
734 // the result is false, the pending exception is guaranteed to be 733 // the result is false, the pending exception is guaranteed to be
735 // set. 734 // set.
736 bool MayAccess(Handle<Context> accessing_context, Handle<JSObject> receiver); 735 bool MayAccess(Handle<Context> accessing_context, Handle<JSObject> receiver);
737 736
738 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); 737 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback);
739 void ReportFailedAccessCheck(Handle<JSObject> receiver); 738 void ReportFailedAccessCheck(Handle<JSObject> receiver);
740 739
741 // Exception throwing support. The caller should use the result 740 // Exception throwing support. The caller should use the result
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1798 1797
1799 EmbeddedVector<char, 128> filename_; 1798 EmbeddedVector<char, 128> filename_;
1800 FILE* file_; 1799 FILE* file_;
1801 int scope_depth_; 1800 int scope_depth_;
1802 }; 1801 };
1803 1802
1804 } // namespace internal 1803 } // namespace internal
1805 } // namespace v8 1804 } // namespace v8
1806 1805
1807 #endif // V8_ISOLATE_H_ 1806 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/asmjs/asm-typer.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698