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 |
18 #if !V8_OS_NACL | 22 #if !V8_OS_NACL |
19 #include <sys/select.h> | 23 #include <sys/select.h> |
20 #endif | 24 #endif |
21 | 25 |
22 namespace v8 { | 26 namespace v8 { |
23 | 27 |
24 | 28 |
25 // If the buffer ends in the middle of a UTF-8 sequence then we return | 29 // If the buffer ends in the middle of a UTF-8 sequence then we return |
26 // the length of the string up to but not including the incomplete UTF-8 | 30 // the length of the string up to but not including the incomplete UTF-8 |
27 // sequence. If the buffer ends with a valid UTF-8 sequence then we | 31 // 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... |
782 FunctionTemplate::New(isolate, SetUMask)); | 786 FunctionTemplate::New(isolate, SetUMask)); |
783 os_templ->Set(String::NewFromUtf8(isolate, "mkdirp", NewStringType::kNormal) | 787 os_templ->Set(String::NewFromUtf8(isolate, "mkdirp", NewStringType::kNormal) |
784 .ToLocalChecked(), | 788 .ToLocalChecked(), |
785 FunctionTemplate::New(isolate, MakeDirectory)); | 789 FunctionTemplate::New(isolate, MakeDirectory)); |
786 os_templ->Set(String::NewFromUtf8(isolate, "rmdir", NewStringType::kNormal) | 790 os_templ->Set(String::NewFromUtf8(isolate, "rmdir", NewStringType::kNormal) |
787 .ToLocalChecked(), | 791 .ToLocalChecked(), |
788 FunctionTemplate::New(isolate, RemoveDirectory)); | 792 FunctionTemplate::New(isolate, RemoveDirectory)); |
789 } | 793 } |
790 | 794 |
791 } // namespace v8 | 795 } // namespace v8 |
OLD | NEW |