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

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

Issue 1531863003: Fix clang build error (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « runtime/bin/main.cc ('k') | no next file » | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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/vmservice_dartium.h" 5 #include "bin/vmservice_dartium.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/eventhandler.h" 9 #include "bin/eventhandler.h"
10 #include "bin/platform.h" 10 #include "bin/platform.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 unsigned int* output_length) { 99 unsigned int* output_length) {
100 ASSERT(input != NULL); 100 ASSERT(input != NULL);
101 ASSERT(input_len > 0); 101 ASSERT(input_len > 0);
102 ASSERT(output != NULL); 102 ASSERT(output != NULL);
103 ASSERT(output_length != NULL); 103 ASSERT(output_length != NULL);
104 104
105 // Initialize output. 105 // Initialize output.
106 *output = NULL; 106 *output = NULL;
107 *output_length = 0; 107 *output_length = 0;
108 108
109 const intptr_t kChunkSize = 256 * 1024; 109 const unsigned int kChunkSize = 256 * 1024;
110 uint8_t chunk_out[kChunkSize]; 110 uint8_t chunk_out[kChunkSize];
111 z_stream strm; 111 z_stream strm;
112 strm.zalloc = Z_NULL; 112 strm.zalloc = Z_NULL;
113 strm.zfree = Z_NULL; 113 strm.zfree = Z_NULL;
114 strm.opaque = Z_NULL; 114 strm.opaque = Z_NULL;
115 strm.avail_in = 0; 115 strm.avail_in = 0;
116 strm.next_in = 0; 116 strm.next_in = 0;
117 int ret = inflateInit2(&strm, 32 + MAX_WBITS); 117 int ret = inflateInit2(&strm, 32 + MAX_WBITS);
118 ASSERT(ret == Z_OK); 118 ASSERT(ret == Z_OK);
119 119
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 156 }
157 157
158 /* DISALLOW_ALLOCATION */ 158 /* DISALLOW_ALLOCATION */
159 void VmServiceServer::operator delete(void* pointer) { 159 void VmServiceServer::operator delete(void* pointer) {
160 fprintf(stderr, "unreachable code\n"); 160 fprintf(stderr, "unreachable code\n");
161 abort(); 161 abort();
162 } 162 }
163 163
164 } // namespace bin 164 } // namespace bin
165 } // namespace dart 165 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698