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

Side by Side Diff: runtime/bin/io_natives.cc

Issue 130513003: [ZLIB] Add support for windowBits, memLevel, raw (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: integrate feedback Created 6 years, 10 months 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/filter_patch.dart ('k') | runtime/include/dart_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/io_natives.h" 5 #include "bin/io_natives.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "bin/builtin.h" 10 #include "bin/builtin.h"
11 #include "bin/dartutils.h" 11 #include "bin/dartutils.h"
12 #include "include/dart_api.h" 12 #include "include/dart_api.h"
13 #include "platform/assert.h" 13 #include "platform/assert.h"
14 14
15 15
16 namespace dart { 16 namespace dart {
17 namespace bin { 17 namespace bin {
18 18
19 // Lists the native functions implementing advanced dart:io classes. 19 // Lists the native functions implementing advanced dart:io classes.
20 // Some classes, like File and Directory, list their implementations in 20 // Some classes, like File and Directory, list their implementations in
21 // builtin_natives.cc instead. 21 // builtin_natives.cc instead.
22 #define IO_NATIVE_LIST(V) \ 22 #define IO_NATIVE_LIST(V) \
23 V(Crypto_GetRandomBytes, 1) \ 23 V(Crypto_GetRandomBytes, 1) \
24 V(EventHandler_SendData, 3) \ 24 V(EventHandler_SendData, 3) \
25 V(Filter_CreateZLibDeflate, 3) \ 25 V(Filter_CreateZLibDeflate, 8) \
26 V(Filter_CreateZLibInflate, 1) \ 26 V(Filter_CreateZLibInflate, 4) \
27 V(Filter_End, 1) \ 27 V(Filter_End, 1) \
28 V(Filter_Process, 4) \ 28 V(Filter_Process, 4) \
29 V(Filter_Processed, 3) \ 29 V(Filter_Processed, 3) \
30 V(InternetAddress_Parse, 1) \ 30 V(InternetAddress_Parse, 1) \
31 V(IOService_NewServicePort, 0) \ 31 V(IOService_NewServicePort, 0) \
32 V(Platform_NumberOfProcessors, 0) \ 32 V(Platform_NumberOfProcessors, 0) \
33 V(Platform_OperatingSystem, 0) \ 33 V(Platform_OperatingSystem, 0) \
34 V(Platform_PathSeparator, 0) \ 34 V(Platform_PathSeparator, 0) \
35 V(Platform_LocalHostname, 0) \ 35 V(Platform_LocalHostname, 0) \
36 V(Platform_ExecutableName, 0) \ 36 V(Platform_ExecutableName, 0) \
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 if (!strcmp(function_name, entry->name_) && 112 if (!strcmp(function_name, entry->name_) &&
113 (entry->argument_count_ == argument_count)) { 113 (entry->argument_count_ == argument_count)) {
114 return reinterpret_cast<Dart_NativeFunction>(entry->function_); 114 return reinterpret_cast<Dart_NativeFunction>(entry->function_);
115 } 115 }
116 } 116 }
117 return NULL; 117 return NULL;
118 } 118 }
119 119
120 } // namespace bin 120 } // namespace bin
121 } // namespace dart 121 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/filter_patch.dart ('k') | runtime/include/dart_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698