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

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

Issue 10874071: Eliminate interface bool (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/parser.cc ('k') | runtime/vm/snapshot_ids.h » ('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/snapshot.h" 5 #include "vm/snapshot.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/bigint_operations.h" 8 #include "vm/bigint_operations.h"
9 #include "vm/bootstrap.h" 9 #include "vm/bootstrap.h"
10 #include "vm/exceptions.h" 10 #include "vm/exceptions.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 case kNullType: return object_store->null_type(); 59 case kNullType: return object_store->null_type();
60 case kDynamicType: return object_store->dynamic_type(); 60 case kDynamicType: return object_store->dynamic_type();
61 case kVoidType: return object_store->void_type(); 61 case kVoidType: return object_store->void_type();
62 case kFunctionType: return object_store->function_type(); 62 case kFunctionType: return object_store->function_type();
63 case kNumberType: return object_store->number_type(); 63 case kNumberType: return object_store->number_type();
64 case kSmiType: return object_store->smi_type(); 64 case kSmiType: return object_store->smi_type();
65 case kMintType: return object_store->mint_type(); 65 case kMintType: return object_store->mint_type();
66 case kDoubleType: return object_store->double_type(); 66 case kDoubleType: return object_store->double_type();
67 case kDoubleInterface: return object_store->double_interface(); 67 case kDoubleInterface: return object_store->double_interface();
68 case kIntInterface: return object_store->int_interface(); 68 case kIntInterface: return object_store->int_interface();
69 case kBoolInterface: return object_store->bool_interface(); 69 case kBoolType: return object_store->bool_type();
70 case kStringInterface: return object_store->string_interface(); 70 case kStringInterface: return object_store->string_interface();
71 case kListInterface: return object_store->list_interface(); 71 case kListInterface: return object_store->list_interface();
72 case kByteArrayInterface: return object_store->byte_array_interface(); 72 case kByteArrayInterface: return object_store->byte_array_interface();
73 default: break; 73 default: break;
74 } 74 }
75 UNREACHABLE(); 75 UNREACHABLE();
76 return Type::null(); 76 return Type::null();
77 } 77 }
78 78
79 79
(...skipping 14 matching lines...) Expand all
94 } else if (raw_type == object_store->smi_type()) { 94 } else if (raw_type == object_store->smi_type()) {
95 return kSmiType; 95 return kSmiType;
96 } else if (raw_type == object_store->mint_type()) { 96 } else if (raw_type == object_store->mint_type()) {
97 return kMintType; 97 return kMintType;
98 } else if (raw_type == object_store->double_type()) { 98 } else if (raw_type == object_store->double_type()) {
99 return kDoubleType; 99 return kDoubleType;
100 } else if (raw_type == object_store->double_interface()) { 100 } else if (raw_type == object_store->double_interface()) {
101 return kDoubleInterface; 101 return kDoubleInterface;
102 } else if (raw_type == object_store->int_interface()) { 102 } else if (raw_type == object_store->int_interface()) {
103 return kIntInterface; 103 return kIntInterface;
104 } else if (raw_type == object_store->bool_interface()) { 104 } else if (raw_type == object_store->bool_type()) {
105 return kBoolInterface; 105 return kBoolType;
106 } else if (raw_type == object_store->string_interface()) { 106 } else if (raw_type == object_store->string_interface()) {
107 return kStringInterface; 107 return kStringInterface;
108 } else if (raw_type == object_store->list_interface()) { 108 } else if (raw_type == object_store->list_interface()) {
109 return kListInterface; 109 return kListInterface;
110 } else if (raw_type == object_store->byte_array_interface()) { 110 } else if (raw_type == object_store->byte_array_interface()) {
111 return kByteArrayInterface; 111 return kByteArrayInterface;
112 } 112 }
113 return kInvalidIndex; 113 return kInvalidIndex;
114 } 114 }
115 115
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 1153
1154 1154
1155 void MessageWriter::WriteMessage(const Object& obj) { 1155 void MessageWriter::WriteMessage(const Object& obj) {
1156 ASSERT(kind() == Snapshot::kMessage); 1156 ASSERT(kind() == Snapshot::kMessage);
1157 WriteObject(obj.raw()); 1157 WriteObject(obj.raw());
1158 UnmarkAll(); 1158 UnmarkAll();
1159 } 1159 }
1160 1160
1161 1161
1162 } // namespace dart 1162 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/snapshot_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698