| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of dart.io; | |
| 6 | |
| 7 // Constants used when working with native ports. | 5 // Constants used when working with native ports. |
| 8 const int _SUCCESS_RESPONSE = 0; | 6 const int _SUCCESS_RESPONSE = 0; |
| 9 const int _ILLEGAL_ARGUMENT_RESPONSE = 1; | 7 const int _ILLEGAL_ARGUMENT_RESPONSE = 1; |
| 10 const int _OSERROR_RESPONSE = 2; | 8 const int _OSERROR_RESPONSE = 2; |
| 11 const int _FILE_CLOSED_RESPONSE = 3; | 9 const int _FILE_CLOSED_RESPONSE = 3; |
| 12 | 10 |
| 13 const int _ERROR_RESPONSE_ERROR_TYPE = 0; | 11 const int _ERROR_RESPONSE_ERROR_TYPE = 0; |
| 14 const int _OSERROR_RESPONSE_ERROR_CODE = 1; | 12 const int _OSERROR_RESPONSE_ERROR_CODE = 1; |
| 15 const int _OSERROR_RESPONSE_MESSAGE = 2; | 13 const int _OSERROR_RESPONSE_MESSAGE = 2; |
| 16 | 14 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 88 |
| 91 | 89 |
| 92 // TODO(ager): The only reason for the class here is that | 90 // TODO(ager): The only reason for the class here is that |
| 93 // we cannot patch a top-level function. | 91 // we cannot patch a top-level function. |
| 94 class _BufferUtils { | 92 class _BufferUtils { |
| 95 // Check if a List is a builtin VM List type. Returns true | 93 // Check if a List is a builtin VM List type. Returns true |
| 96 // if the List is a builtin VM List type and false if it is | 94 // if the List is a builtin VM List type and false if it is |
| 97 // a user defined List type. | 95 // a user defined List type. |
| 98 external static bool _isBuiltinList(List buffer); | 96 external static bool _isBuiltinList(List buffer); |
| 99 } | 97 } |
| OLD | NEW |