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

Side by Side Diff: src/d8-windows.cc

Issue 2478473003: [d8] cleanly force exit in d8 on windows. (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 | « src/d8-posix.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 "src/d8.h" 5 #include "src/d8.h"
6 6
7 7
8 namespace v8 { 8 namespace v8 {
9 9
10 10
11 void Shell::AddOSMethods(Isolate* isolate, Local<ObjectTemplate> os_templ) {} 11 void Shell::AddOSMethods(Isolate* isolate, Local<ObjectTemplate> os_templ) {}
12 12
13 void Shell::Exit(int exit_code) {
14 // Use TerminateProcess avoid races between isolate threads and
15 // static destructors.
16 fflush(stdout);
17 fflush(stderr);
18 TerminateProcess(GetCurrentProcess(), exit_code);
19 }
13 20
14 } // namespace v8 21 } // namespace v8
OLDNEW
« no previous file with comments | « src/d8-posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698