OLD | NEW |
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 <errno.h> | 5 #include <errno.h> |
6 #include <fcntl.h> | 6 #include <fcntl.h> |
7 #include <signal.h> | 7 #include <signal.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <string.h> | 9 #include <string.h> |
10 #include <sys/stat.h> | 10 #include <sys/stat.h> |
11 #include <sys/time.h> | 11 #include <sys/time.h> |
12 #include <sys/types.h> | 12 #include <sys/types.h> |
13 #include <sys/wait.h> | 13 #include <sys/wait.h> |
14 #include <unistd.h> | 14 #include <unistd.h> |
15 | 15 |
16 #include "src/d8.h" | 16 #include "src/d8.h" |
17 | 17 |
18 #ifndef V8_SHARED | |
19 #include "src/list-inl.h" | |
20 #endif | |
21 | |
22 #if !V8_OS_NACL | 18 #if !V8_OS_NACL |
23 #include <sys/select.h> | 19 #include <sys/select.h> |
24 #endif | 20 #endif |
25 | 21 |
26 namespace v8 { | 22 namespace v8 { |
27 | 23 |
28 | 24 |
29 // If the buffer ends in the middle of a UTF-8 sequence then we return | 25 // If the buffer ends in the middle of a UTF-8 sequence then we return |
30 // the length of the string up to but not including the incomplete UTF-8 | 26 // the length of the string up to but not including the incomplete UTF-8 |
31 // sequence. If the buffer ends with a valid UTF-8 sequence then we | 27 // sequence. If the buffer ends with a valid UTF-8 sequence then we |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 FunctionTemplate::New(isolate, SetUMask)); | 782 FunctionTemplate::New(isolate, SetUMask)); |
787 os_templ->Set(String::NewFromUtf8(isolate, "mkdirp", NewStringType::kNormal) | 783 os_templ->Set(String::NewFromUtf8(isolate, "mkdirp", NewStringType::kNormal) |
788 .ToLocalChecked(), | 784 .ToLocalChecked(), |
789 FunctionTemplate::New(isolate, MakeDirectory)); | 785 FunctionTemplate::New(isolate, MakeDirectory)); |
790 os_templ->Set(String::NewFromUtf8(isolate, "rmdir", NewStringType::kNormal) | 786 os_templ->Set(String::NewFromUtf8(isolate, "rmdir", NewStringType::kNormal) |
791 .ToLocalChecked(), | 787 .ToLocalChecked(), |
792 FunctionTemplate::New(isolate, RemoveDirectory)); | 788 FunctionTemplate::New(isolate, RemoveDirectory)); |
793 } | 789 } |
794 | 790 |
795 } // namespace v8 | 791 } // namespace v8 |
OLD | NEW |