OLD | NEW |
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 Loading... |
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 |
OLD | NEW |