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

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

Issue 2111803003: DBC: Remove special case from CheckClassInstr. Cleanup. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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
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 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/bootstrap.h" 8 #include "vm/bootstrap.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/constant_propagator.h" 10 #include "vm/constant_propagator.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 bool Instruction::Equals(Instruction* other) const { 120 bool Instruction::Equals(Instruction* other) const {
121 if (tag() != other->tag()) return false; 121 if (tag() != other->tag()) return false;
122 for (intptr_t i = 0; i < InputCount(); ++i) { 122 for (intptr_t i = 0; i < InputCount(); ++i) {
123 if (!InputAt(i)->Equals(other->InputAt(i))) return false; 123 if (!InputAt(i)->Equals(other->InputAt(i))) return false;
124 } 124 }
125 return AttributesEqual(other); 125 return AttributesEqual(other);
126 } 126 }
127 127
128 128
129 void Instruction::Unsupported(FlowGraphCompiler* compiler) {
130 compiler->Bailout(ToCString());
131 UNREACHABLE();
132 }
133
134
129 bool Value::Equals(Value* other) const { 135 bool Value::Equals(Value* other) const {
130 return definition() == other->definition(); 136 return definition() == other->definition();
131 } 137 }
132 138
133 139
134 static int LowestFirst(const intptr_t* a, const intptr_t* b) { 140 static int LowestFirst(const intptr_t* a, const intptr_t* b) {
135 return *a - *b; 141 return *a - *b;
136 } 142 }
137 143
138 144
(...skipping 3786 matching lines...) Expand 10 before | Expand all | Expand 10 after
3925 set_native_c_function(native_function); 3931 set_native_c_function(native_function);
3926 function().SetIsNativeAutoSetupScope(auto_setup_scope); 3932 function().SetIsNativeAutoSetupScope(auto_setup_scope);
3927 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); 3933 Dart_NativeEntryResolver resolver = library.native_entry_resolver();
3928 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); 3934 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver);
3929 set_is_bootstrap_native(is_bootstrap_native); 3935 set_is_bootstrap_native(is_bootstrap_native);
3930 } 3936 }
3931 3937
3932 #undef __ 3938 #undef __
3933 3939
3934 } // namespace dart 3940 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698