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

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

Issue 8403003: Rename the VM internal 'var' type to 'Dynamic' type. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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_store.h ('k') | runtime/vm/object_test.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/object_store.h" 5 #include "vm/object_store.h"
6 6
7 #include "vm/isolate.h" 7 #include "vm/isolate.h"
8 #include "vm/object.h" 8 #include "vm/object.h"
9 #include "vm/raw_object.h" 9 #include "vm/raw_object.h"
10 #include "vm/visitor.h" 10 #include "vm/visitor.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 return kJSRegExpClass; 118 return kJSRegExpClass;
119 } 119 }
120 return kInvalidIndex; 120 return kInvalidIndex;
121 } 121 }
122 122
123 123
124 RawType* ObjectStore::GetType(int index) { 124 RawType* ObjectStore::GetType(int index) {
125 switch (index) { 125 switch (index) {
126 case kObjectType: return object_type(); 126 case kObjectType: return object_type();
127 case kNullType: return null_type(); 127 case kNullType: return null_type();
128 case kVarType: return var_type(); 128 case kDynamicType: return dynamic_type();
129 case kVoidType: return void_type(); 129 case kVoidType: return void_type();
130 case kFunctionInterface: return function_interface(); 130 case kFunctionInterface: return function_interface();
131 case kNumberInterface: return number_interface(); 131 case kNumberInterface: return number_interface();
132 case kDoubleInterface: return double_interface(); 132 case kDoubleInterface: return double_interface();
133 case kIntInterface: return int_interface(); 133 case kIntInterface: return int_interface();
134 case kBoolInterface: return bool_interface(); 134 case kBoolInterface: return bool_interface();
135 case kStringInterface: return string_interface(); 135 case kStringInterface: return string_interface();
136 default: break; 136 default: break;
137 } 137 }
138 UNREACHABLE(); 138 UNREACHABLE();
139 return Type::null(); 139 return Type::null();
140 } 140 }
141 141
142 142
143 int ObjectStore::GetTypeIndex(const RawType* raw_type) { 143 int ObjectStore::GetTypeIndex(const RawType* raw_type) {
144 ASSERT(raw_type->IsHeapObject()); 144 ASSERT(raw_type->IsHeapObject());
145 if (raw_type == object_type()) { 145 if (raw_type == object_type()) {
146 return kObjectType; 146 return kObjectType;
147 } else if (raw_type == null_type()) { 147 } else if (raw_type == null_type()) {
148 return kNullType; 148 return kNullType;
149 } else if (raw_type == var_type()) { 149 } else if (raw_type == dynamic_type()) {
150 return kVarType; 150 return kDynamicType;
151 } else if (raw_type == void_type()) { 151 } else if (raw_type == void_type()) {
152 return kVoidType; 152 return kVoidType;
153 } else if (raw_type == function_interface()) { 153 } else if (raw_type == function_interface()) {
154 return kFunctionInterface; 154 return kFunctionInterface;
155 } else if (raw_type == number_interface()) { 155 } else if (raw_type == number_interface()) {
156 return kNumberInterface; 156 return kNumberInterface;
157 } else if (raw_type == double_interface()) { 157 } else if (raw_type == double_interface()) {
158 return kDoubleInterface; 158 return kDoubleInterface;
159 } else if (raw_type == int_interface()) { 159 } else if (raw_type == int_interface()) {
160 return kIntInterface; 160 return kIntInterface;
161 } else if (raw_type == bool_interface()) { 161 } else if (raw_type == bool_interface()) {
162 return kBoolInterface; 162 return kBoolInterface;
163 } else if (raw_type == string_interface()) { 163 } else if (raw_type == string_interface()) {
164 return kStringInterface; 164 return kStringInterface;
165 } 165 }
166 return kInvalidIndex; 166 return kInvalidIndex;
167 } 167 }
168 168
169 } // namespace dart 169 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object_store.h ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698