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

Side by Side Diff: runtime/vm/intermediate_language.h

Issue 1897983002: VM: Avoid smi-check when loading class-ids from known non-smi values (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 4 years, 8 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
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language_arm.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 static CompileType Dynamic(); 133 static CompileType Dynamic();
134 134
135 static CompileType Null(); 135 static CompileType Null();
136 136
137 // Create non-nullable Bool type. 137 // Create non-nullable Bool type.
138 static CompileType Bool(); 138 static CompileType Bool();
139 139
140 // Create non-nullable Int type. 140 // Create non-nullable Int type.
141 static CompileType Int(); 141 static CompileType Int();
142 142
143 // Create non-nullable Smi type.
144 static CompileType Smi();
145
143 // Create non-nullable String type. 146 // Create non-nullable String type.
144 static CompileType String(); 147 static CompileType String();
145 148
146 // Perform a join operation over the type lattice. 149 // Perform a join operation over the type lattice.
147 void Union(CompileType* other); 150 void Union(CompileType* other);
148 151
149 // Returns true if this and other types are the same. 152 // Returns true if this and other types are the same.
150 bool IsEqualTo(CompileType* other) { 153 bool IsEqualTo(CompileType* other) {
151 return (is_nullable_ == other->is_nullable_) && 154 return (is_nullable_ == other->is_nullable_) &&
152 (ToNullableCid() == other->ToNullableCid()) && 155 (ToNullableCid() == other->ToNullableCid()) &&
(...skipping 8131 matching lines...) Expand 10 before | Expand all | Expand 10 after
8284 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ 8287 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \
8285 UNIMPLEMENTED(); \ 8288 UNIMPLEMENTED(); \
8286 return NULL; \ 8289 return NULL; \
8287 } \ 8290 } \
8288 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } 8291 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); }
8289 8292
8290 8293
8291 } // namespace dart 8294 } // namespace dart
8292 8295
8293 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 8296 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698