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

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

Issue 9189003: Move assert.h/assert.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing vm/assert.h for _macos, _win, _arm and _x64 files Created 8 years, 11 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
OLDNEW
1 // Copyright (c) 2011, 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/snapshot.h" 5 #include "platform/assert.h"
6
7 #include "vm/assert.h"
8 #include "vm/bigint_operations.h" 6 #include "vm/bigint_operations.h"
9 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/snapshot.h"
10 #include "vm/unit_test.h" 9 #include "vm/unit_test.h"
11 10
12 namespace dart { 11 namespace dart {
13 12
14 // Check if serialized and deserialized objects are equal. 13 // Check if serialized and deserialized objects are equal.
15 static bool Equals(const Object& expected, const Object& actual) { 14 static bool Equals(const Object& expected, const Object& actual) {
16 if (expected.IsNull()) { 15 if (expected.IsNull()) {
17 return actual.IsNull(); 16 return actual.IsNull();
18 } 17 }
19 if (expected.IsSmi()) { 18 if (expected.IsSmi()) {
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 Dart_ExitScope(); 519 Dart_ExitScope();
521 } 520 }
522 Dart_ShutdownIsolate(); 521 Dart_ShutdownIsolate();
523 free(full_snapshot); 522 free(full_snapshot);
524 free(script_snapshot); 523 free(script_snapshot);
525 } 524 }
526 525
527 #endif // TARGET_ARCH_IA32. 526 #endif // TARGET_ARCH_IA32.
528 527
529 } // namespace dart 528 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698