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

Side by Side Diff: runtime/vm/object_test.cc

Issue 23072026: fix cpp11 compile errors (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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/vm/object.cc ('k') | runtime/vm/os_android.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 "vm/assembler.h" 5 #include "vm/assembler.h"
6 #include "vm/bigint_operations.h" 6 #include "vm/bigint_operations.h"
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 3245 matching lines...) Expand 10 before | Expand all | Expand 10 after
3256 3256
3257 3257
3258 static void PrintMetadata(const char* name, const Object& data) { 3258 static void PrintMetadata(const char* name, const Object& data) {
3259 if (data.IsError()) { 3259 if (data.IsError()) {
3260 OS::Print("Error in metadata evaluation for %s: '%s'\n", 3260 OS::Print("Error in metadata evaluation for %s: '%s'\n",
3261 name, 3261 name,
3262 Error::Cast(data).ToErrorCString()); 3262 Error::Cast(data).ToErrorCString());
3263 } 3263 }
3264 EXPECT(data.IsArray()); 3264 EXPECT(data.IsArray());
3265 const Array& metadata = Array::Cast(data); 3265 const Array& metadata = Array::Cast(data);
3266 OS::Print("Metadata for %s has %"Pd" values:\n", name, metadata.Length()); 3266 OS::Print("Metadata for %s has %" Pd " values:\n", name, metadata.Length());
3267 Object& elem = Object::Handle(); 3267 Object& elem = Object::Handle();
3268 for (int i = 0; i < metadata.Length(); i++) { 3268 for (int i = 0; i < metadata.Length(); i++) {
3269 elem = metadata.At(i); 3269 elem = metadata.At(i);
3270 OS::Print(" %d: %s\n", i, elem.ToCString()); 3270 OS::Print(" %d: %s\n", i, elem.ToCString());
3271 } 3271 }
3272 } 3272 }
3273 3273
3274 3274
3275 TEST_CASE(Metadata) { 3275 TEST_CASE(Metadata) {
3276 const char* kScriptChars = 3276 const char* kScriptChars =
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
3446 cls = Object::dynamic_class(); 3446 cls = Object::dynamic_class();
3447 array = cls.fields(); 3447 array = cls.fields();
3448 EXPECT(!array.IsNull()); 3448 EXPECT(!array.IsNull());
3449 EXPECT(array.IsArray()); 3449 EXPECT(array.IsArray());
3450 array = cls.functions(); 3450 array = cls.functions();
3451 EXPECT(!array.IsNull()); 3451 EXPECT(!array.IsNull());
3452 EXPECT(array.IsArray()); 3452 EXPECT(array.IsArray());
3453 } 3453 }
3454 3454
3455 } // namespace dart 3455 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/os_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698