OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "bin/file.h" | 5 #include "bin/file.h" |
6 | 6 |
7 #include "bin/builtin.h" | 7 #include "bin/builtin.h" |
8 #include "bin/dartutils.h" | 8 #include "bin/dartutils.h" |
9 #include "bin/io_buffer.h" | 9 #include "bin/io_buffer.h" |
10 #include "bin/thread.h" | |
11 #include "bin/utils.h" | 10 #include "bin/utils.h" |
12 | 11 |
13 #include "include/dart_api.h" | 12 #include "include/dart_api.h" |
14 | 13 |
15 namespace dart { | 14 namespace dart { |
16 namespace bin { | 15 namespace bin { |
17 | 16 |
18 static const int kMSPerSecond = 1000; | 17 static const int kMSPerSecond = 1000; |
19 | 18 |
20 | 19 |
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 CObjectArray* wrapper = new CObjectArray(CObject::NewArray(2)); | 1191 CObjectArray* wrapper = new CObjectArray(CObject::NewArray(2)); |
1193 wrapper->SetAt(0, new CObjectInt32(CObject::NewInt32(CObject::kSuccess))); | 1192 wrapper->SetAt(0, new CObjectInt32(CObject::NewInt32(CObject::kSuccess))); |
1194 wrapper->SetAt(1, result); | 1193 wrapper->SetAt(1, result); |
1195 return wrapper; | 1194 return wrapper; |
1196 } | 1195 } |
1197 return CObject::IllegalArgumentError(); | 1196 return CObject::IllegalArgumentError(); |
1198 } | 1197 } |
1199 | 1198 |
1200 } // namespace bin | 1199 } // namespace bin |
1201 } // namespace dart | 1200 } // namespace dart |
OLD | NEW |