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

Side by Side Diff: src/d8.cc

Issue 2511733002: [debugger] handle stack overflow. Fail silently. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | src/debug/debug-evaluate.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 #include <errno.h> 5 #include <errno.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <string.h> 7 #include <string.h>
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 v8::String::NewFromUtf8(isolate_, "receive", v8::NewStringType::kNormal) 1799 v8::String::NewFromUtf8(isolate_, "receive", v8::NewStringType::kNormal)
1800 .ToLocalChecked(); 1800 .ToLocalChecked();
1801 Local<Context> context = context_.Get(isolate_); 1801 Local<Context> context = context_.Get(isolate_);
1802 Local<Value> callback = 1802 Local<Value> callback =
1803 context->Global()->Get(context, callback_name).ToLocalChecked(); 1803 context->Global()->Get(context, callback_name).ToLocalChecked();
1804 if (callback->IsFunction()) { 1804 if (callback->IsFunction()) {
1805 v8::TryCatch try_catch(isolate_); 1805 v8::TryCatch try_catch(isolate_);
1806 Local<Value> args[] = {message}; 1806 Local<Value> args[] = {message};
1807 MaybeLocal<Value> result = Local<Function>::Cast(callback)->Call( 1807 MaybeLocal<Value> result = Local<Function>::Cast(callback)->Call(
1808 context, Undefined(isolate_), 1, args); 1808 context, Undefined(isolate_), 1, args);
1809 CHECK(!result.IsEmpty()); // Listeners may not throw.
jgruber 2016/11/17 13:56:55 If this is removed, maybe we should remove similar
1810 } 1809 }
1811 } 1810 }
1812 1811
1813 Isolate* isolate_; 1812 Isolate* isolate_;
1814 Global<Context> context_; 1813 Global<Context> context_;
1815 }; 1814 };
1816 1815
1817 class InspectorClient : public v8_inspector::V8InspectorClient { 1816 class InspectorClient : public v8_inspector::V8InspectorClient {
1818 public: 1817 public:
1819 InspectorClient(Local<Context> context, bool connect) { 1818 InspectorClient(Local<Context> context, bool connect) {
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after
2949 } 2948 }
2950 2949
2951 } // namespace v8 2950 } // namespace v8
2952 2951
2953 2952
2954 #ifndef GOOGLE3 2953 #ifndef GOOGLE3
2955 int main(int argc, char* argv[]) { 2954 int main(int argc, char* argv[]) {
2956 return v8::Shell::Main(argc, argv); 2955 return v8::Shell::Main(argc, argv);
2957 } 2956 }
2958 #endif 2957 #endif
OLDNEW
« no previous file with comments | « no previous file | src/debug/debug-evaluate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698