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

Side by Side Diff: src/d8.cc

Issue 2758563002: [gn] Enable stricter build flags (Closed)
Patch Set: Address comment Created 3 years, 9 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/compiler/gap-resolver.cc ('k') | src/debug/debug.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 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1978 .ToLocalChecked(); 1978 .ToLocalChecked();
1979 Local<String> callback_name = 1979 Local<String> callback_name =
1980 v8::String::NewFromUtf8(isolate_, "receive", v8::NewStringType::kNormal) 1980 v8::String::NewFromUtf8(isolate_, "receive", v8::NewStringType::kNormal)
1981 .ToLocalChecked(); 1981 .ToLocalChecked();
1982 Local<Context> context = context_.Get(isolate_); 1982 Local<Context> context = context_.Get(isolate_);
1983 Local<Value> callback = 1983 Local<Value> callback =
1984 context->Global()->Get(context, callback_name).ToLocalChecked(); 1984 context->Global()->Get(context, callback_name).ToLocalChecked();
1985 if (callback->IsFunction()) { 1985 if (callback->IsFunction()) {
1986 v8::TryCatch try_catch(isolate_); 1986 v8::TryCatch try_catch(isolate_);
1987 Local<Value> args[] = {message}; 1987 Local<Value> args[] = {message};
1988 MaybeLocal<Value> result = Local<Function>::Cast(callback)->Call( 1988 USE(Local<Function>::Cast(callback)->Call(context, Undefined(isolate_), 1,
1989 context, Undefined(isolate_), 1, args); 1989 args));
1990 #ifdef DEBUG 1990 #ifdef DEBUG
1991 if (try_catch.HasCaught()) { 1991 if (try_catch.HasCaught()) {
1992 Local<Object> exception = Local<Object>::Cast(try_catch.Exception()); 1992 Local<Object> exception = Local<Object>::Cast(try_catch.Exception());
1993 Local<String> key = v8::String::NewFromUtf8(isolate_, "message", 1993 Local<String> key = v8::String::NewFromUtf8(isolate_, "message",
1994 v8::NewStringType::kNormal) 1994 v8::NewStringType::kNormal)
1995 .ToLocalChecked(); 1995 .ToLocalChecked();
1996 Local<String> expected = 1996 Local<String> expected =
1997 v8::String::NewFromUtf8(isolate_, 1997 v8::String::NewFromUtf8(isolate_,
1998 "Maximum call stack size exceeded", 1998 "Maximum call stack size exceeded",
1999 v8::NewStringType::kNormal) 1999 v8::NewStringType::kNormal)
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
3054 } 3054 }
3055 3055
3056 } // namespace v8 3056 } // namespace v8
3057 3057
3058 3058
3059 #ifndef GOOGLE3 3059 #ifndef GOOGLE3
3060 int main(int argc, char* argv[]) { 3060 int main(int argc, char* argv[]) {
3061 return v8::Shell::Main(argc, argv); 3061 return v8::Shell::Main(argc, argv);
3062 } 3062 }
3063 #endif 3063 #endif
OLDNEW
« no previous file with comments | « src/compiler/gap-resolver.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698