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

Side by Side Diff: src/isolate.h

Issue 1844223004: Display a meaningfull error message when trying to capture a stack trace to a proxy. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 <set> 9 #include <set>
10 10
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 void PrintCurrentStackTrace(FILE* out); 675 void PrintCurrentStackTrace(FILE* out);
676 void PrintStack(StringStream* accumulator, 676 void PrintStack(StringStream* accumulator,
677 PrintStackMode mode = kPrintStackVerbose); 677 PrintStackMode mode = kPrintStackVerbose);
678 void PrintStack(FILE* out, PrintStackMode mode = kPrintStackVerbose); 678 void PrintStack(FILE* out, PrintStackMode mode = kPrintStackVerbose);
679 Handle<String> StackTraceString(); 679 Handle<String> StackTraceString();
680 NO_INLINE(void PushStackTraceAndDie(unsigned int magic, void* ptr1, 680 NO_INLINE(void PushStackTraceAndDie(unsigned int magic, void* ptr1,
681 void* ptr2, unsigned int magic2)); 681 void* ptr2, unsigned int magic2));
682 Handle<JSArray> CaptureCurrentStackTrace( 682 Handle<JSArray> CaptureCurrentStackTrace(
683 int frame_limit, 683 int frame_limit,
684 StackTrace::StackTraceOptions options); 684 StackTrace::StackTraceOptions options);
685 Handle<Object> CaptureSimpleStackTrace(Handle<JSObject> error_object, 685 Handle<Object> CaptureSimpleStackTrace(Handle<JSReceiver> error_object,
686 Handle<Object> caller); 686 Handle<Object> caller);
687 MaybeHandle<JSObject> CaptureAndSetDetailedStackTrace( 687 MaybeHandle<JSReceiver> CaptureAndSetDetailedStackTrace(
688 Handle<JSObject> error_object); 688 Handle<JSReceiver> error_object);
689 MaybeHandle<JSObject> CaptureAndSetSimpleStackTrace( 689 MaybeHandle<JSReceiver> CaptureAndSetSimpleStackTrace(
690 Handle<JSObject> error_object, Handle<Object> caller); 690 Handle<JSReceiver> error_object, Handle<Object> caller);
691 Handle<JSArray> GetDetailedStackTrace(Handle<JSObject> error_object); 691 Handle<JSArray> GetDetailedStackTrace(Handle<JSObject> error_object);
692 Handle<JSArray> GetDetailedFromSimpleStackTrace( 692 Handle<JSArray> GetDetailedFromSimpleStackTrace(
693 Handle<JSObject> error_object); 693 Handle<JSObject> error_object);
694 694
695 // Returns if the given context may access the given global object. If 695 // Returns if the given context may access the given global object. If
696 // the result is false, the pending exception is guaranteed to be 696 // the result is false, the pending exception is guaranteed to be
697 // set. 697 // set.
698 bool MayAccess(Handle<Context> accessing_context, Handle<JSObject> receiver); 698 bool MayAccess(Handle<Context> accessing_context, Handle<JSObject> receiver);
699 699
700 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); 700 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback);
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 1597
1598 EmbeddedVector<char, 128> filename_; 1598 EmbeddedVector<char, 128> filename_;
1599 FILE* file_; 1599 FILE* file_;
1600 int scope_depth_; 1600 int scope_depth_;
1601 }; 1601 };
1602 1602
1603 } // namespace internal 1603 } // namespace internal
1604 } // namespace v8 1604 } // namespace v8
1605 1605
1606 #endif // V8_ISOLATE_H_ 1606 #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