| OLD | NEW |
| 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 "platform/globals.h" | 5 #include "platform/globals.h" |
| 6 | 6 |
| 7 #include "include/dart_tools_api.h" | 7 #include "include/dart_tools_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "vm/class_finalizer.h" | 9 #include "vm/class_finalizer.h" |
| 10 #include "vm/clustered_snapshot.h" |
| 10 #include "vm/dart_api_impl.h" | 11 #include "vm/dart_api_impl.h" |
| 11 #include "vm/dart_api_message.h" | 12 #include "vm/dart_api_message.h" |
| 12 #include "vm/dart_api_state.h" | 13 #include "vm/dart_api_state.h" |
| 13 #include "vm/flags.h" | 14 #include "vm/flags.h" |
| 14 #include "vm/snapshot.h" | 15 #include "vm/snapshot.h" |
| 15 #include "vm/symbols.h" | 16 #include "vm/symbols.h" |
| 16 #include "vm/unicode.h" | 17 #include "vm/unicode.h" |
| 17 #include "vm/unit_test.h" | 18 #include "vm/unit_test.h" |
| 18 | 19 |
| 19 namespace dart { | 20 namespace dart { |
| (...skipping 2991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3011 StackZone zone(Thread::Current()); | 3012 StackZone zone(Thread::Current()); |
| 3012 uint8_t* buffer; | 3013 uint8_t* buffer; |
| 3013 MessageWriter writer(&buffer, &zone_allocator, true); | 3014 MessageWriter writer(&buffer, &zone_allocator, true); |
| 3014 writer.WriteInlinedObjectHeader(kOmittedObjectId); | 3015 writer.WriteInlinedObjectHeader(kOmittedObjectId); |
| 3015 // For performance, we'd like single-byte headers when ids are omitted. | 3016 // For performance, we'd like single-byte headers when ids are omitted. |
| 3016 // If this starts failing, consider renumbering the snapshot ids. | 3017 // If this starts failing, consider renumbering the snapshot ids. |
| 3017 EXPECT_EQ(1, writer.BytesWritten()); | 3018 EXPECT_EQ(1, writer.BytesWritten()); |
| 3018 } | 3019 } |
| 3019 | 3020 |
| 3020 } // namespace dart | 3021 } // namespace dart |
| OLD | NEW |