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

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

Issue 12226068: Add snapshot size to the VM benchmarks suite. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/dartutils.h ('k') | runtime/vm/benchmark_test.cc » ('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) 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 #include "bin/dartutils.h" 5 #include "bin/dartutils.h"
6 6
7 #include "bin/extensions.h" 7 #include "bin/extensions.h"
8 #include "bin/directory.h" 8 #include "bin/directory.h"
9 #include "bin/file.h" 9 #include "bin/file.h"
10 #include "bin/io_buffer.h" 10 #include "bin/io_buffer.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 bool DartUtils::IsDartCryptoLibURL(const char* url_name) { 152 bool DartUtils::IsDartCryptoLibURL(const char* url_name) {
153 return (strcmp(url_name, kCryptoLibURL) == 0); 153 return (strcmp(url_name, kCryptoLibURL) == 0);
154 } 154 }
155 155
156 156
157 bool DartUtils::IsDartIOLibURL(const char* url_name) { 157 bool DartUtils::IsDartIOLibURL(const char* url_name) {
158 return (strcmp(url_name, kIOLibURL) == 0); 158 return (strcmp(url_name, kIOLibURL) == 0);
159 } 159 }
160 160
161 161
162 bool DartUtils::IsDartBuiltinLibURL(const char* url_name) {
163 return (strcmp(url_name, kBuiltinLibURL) == 0);
164 }
165
166
162 bool DartUtils::IsDartJsonLibURL(const char* url_name) { 167 bool DartUtils::IsDartJsonLibURL(const char* url_name) {
163 return (strcmp(url_name, kJsonLibURL) == 0); 168 return (strcmp(url_name, kJsonLibURL) == 0);
164 } 169 }
165 170
166 171
167 bool DartUtils::IsDartUriLibURL(const char* url_name) { 172 bool DartUtils::IsDartUriLibURL(const char* url_name) {
168 return (strcmp(url_name, kUriLibURL) == 0); 173 return (strcmp(url_name, kUriLibURL) == 0);
169 } 174 }
170 175
171 176
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 721
717 CObject* CObject::NewOSError(OSError* os_error) { 722 CObject* CObject::NewOSError(OSError* os_error) {
718 CObject* error_message = 723 CObject* error_message =
719 new CObjectString(CObject::NewString(os_error->message())); 724 new CObjectString(CObject::NewString(os_error->message()));
720 CObjectArray* result = new CObjectArray(CObject::NewArray(3)); 725 CObjectArray* result = new CObjectArray(CObject::NewArray(3));
721 result->SetAt(0, new CObjectInt32(CObject::NewInt32(kOSError))); 726 result->SetAt(0, new CObjectInt32(CObject::NewInt32(kOSError)));
722 result->SetAt(1, new CObjectInt32(CObject::NewInt32(os_error->code()))); 727 result->SetAt(1, new CObjectInt32(CObject::NewInt32(os_error->code())));
723 result->SetAt(2, error_message); 728 result->SetAt(2, error_message);
724 return result; 729 return result;
725 } 730 }
OLDNEW
« no previous file with comments | « runtime/bin/dartutils.h ('k') | runtime/vm/benchmark_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698