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

Side by Side Diff: src/isolate.h

Issue 1077153003: Throw when attaching a stack trace to an object fails. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « no previous file | 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 <queue> 8 #include <queue>
9 #include "include/v8-debug.h" 9 #include "include/v8-debug.h"
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 Handle<String> StackTraceString(); 718 Handle<String> StackTraceString();
719 NO_INLINE(void PushStackTraceAndDie(unsigned int magic, 719 NO_INLINE(void PushStackTraceAndDie(unsigned int magic,
720 Object* object, 720 Object* object,
721 Map* map, 721 Map* map,
722 unsigned int magic2)); 722 unsigned int magic2));
723 Handle<JSArray> CaptureCurrentStackTrace( 723 Handle<JSArray> CaptureCurrentStackTrace(
724 int frame_limit, 724 int frame_limit,
725 StackTrace::StackTraceOptions options); 725 StackTrace::StackTraceOptions options);
726 Handle<Object> CaptureSimpleStackTrace(Handle<JSObject> error_object, 726 Handle<Object> CaptureSimpleStackTrace(Handle<JSObject> error_object,
727 Handle<Object> caller); 727 Handle<Object> caller);
728 void CaptureAndSetDetailedStackTrace(Handle<JSObject> error_object); 728 MaybeHandle<JSObject> CaptureAndSetDetailedStackTrace(
729 void CaptureAndSetSimpleStackTrace(Handle<JSObject> error_object, 729 Handle<JSObject> error_object);
730 Handle<Object> caller); 730 MaybeHandle<JSObject> CaptureAndSetSimpleStackTrace(
731 Handle<JSObject> error_object, Handle<Object> caller);
731 Handle<JSArray> GetDetailedStackTrace(Handle<JSObject> error_object); 732 Handle<JSArray> GetDetailedStackTrace(Handle<JSObject> error_object);
732 Handle<JSArray> GetDetailedFromSimpleStackTrace( 733 Handle<JSArray> GetDetailedFromSimpleStackTrace(
733 Handle<JSObject> error_object); 734 Handle<JSObject> error_object);
734 735
735 // Returns if the top context may access the given global object. If 736 // Returns if the top context may access the given global object. If
736 // the result is false, the pending exception is guaranteed to be 737 // the result is false, the pending exception is guaranteed to be
737 // set. 738 // set.
738 739
739 bool MayAccess(Handle<JSObject> receiver); 740 bool MayAccess(Handle<JSObject> receiver);
740 bool IsInternallyUsedPropertyName(Handle<Object> name); 741 bool IsInternallyUsedPropertyName(Handle<Object> name);
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 } 1569 }
1569 1570
1570 EmbeddedVector<char, 128> filename_; 1571 EmbeddedVector<char, 128> filename_;
1571 FILE* file_; 1572 FILE* file_;
1572 int scope_depth_; 1573 int scope_depth_;
1573 }; 1574 };
1574 1575
1575 } } // namespace v8::internal 1576 } } // namespace v8::internal
1576 1577
1577 #endif // V8_ISOLATE_H_ 1578 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698