OLD | NEW |
---|---|
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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
353 | 353 |
354 | 354 |
355 bool MathMinMaxInstr::AttributesEqual(Instruction* other) const { | 355 bool MathMinMaxInstr::AttributesEqual(Instruction* other) const { |
356 MathMinMaxInstr* other_op = other->AsMathMinMax(); | 356 MathMinMaxInstr* other_op = other->AsMathMinMax(); |
357 ASSERT(other_op != NULL); | 357 ASSERT(other_op != NULL); |
358 return (op_kind() == other_op->op_kind()) && | 358 return (op_kind() == other_op->op_kind()) && |
359 (result_cid() == other_op->result_cid()); | 359 (result_cid() == other_op->result_cid()); |
360 } | 360 } |
361 | 361 |
362 | 362 |
363 bool CheckedSmiOpInstr::AttributesEqual(Instruction* other) const { | |
364 ASSERT(other->tag() == tag()); | |
365 BinaryIntegerOpInstr* other_op = other->AsBinaryIntegerOp(); | |
Vyacheslav Egorov (Google)
2016/03/04 13:30:36
BinaryIntegerOp -> CheckedSmiOp
Though I don't th
Florian Schneider
2016/03/04 16:55:09
Done. Removed.
| |
366 return op_kind() == other_op->op_kind(); | |
367 } | |
368 | |
369 | |
363 bool BinaryIntegerOpInstr::AttributesEqual(Instruction* other) const { | 370 bool BinaryIntegerOpInstr::AttributesEqual(Instruction* other) const { |
364 ASSERT(other->tag() == tag()); | 371 ASSERT(other->tag() == tag()); |
365 BinaryIntegerOpInstr* other_op = other->AsBinaryIntegerOp(); | 372 BinaryIntegerOpInstr* other_op = other->AsBinaryIntegerOp(); |
366 return (op_kind() == other_op->op_kind()) && | 373 return (op_kind() == other_op->op_kind()) && |
367 (can_overflow() == other_op->can_overflow()) && | 374 (can_overflow() == other_op->can_overflow()) && |
368 (is_truncating() == other_op->is_truncating()); | 375 (is_truncating() == other_op->is_truncating()); |
369 } | 376 } |
370 | 377 |
371 | 378 |
372 EffectSet LoadFieldInstr::Dependencies() const { | 379 EffectSet LoadFieldInstr::Dependencies() const { |
(...skipping 3361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3734 set_native_c_function(native_function); | 3741 set_native_c_function(native_function); |
3735 function().SetIsNativeAutoSetupScope(auto_setup_scope); | 3742 function().SetIsNativeAutoSetupScope(auto_setup_scope); |
3736 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); | 3743 Dart_NativeEntryResolver resolver = library.native_entry_resolver(); |
3737 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); | 3744 bool is_bootstrap_native = Bootstrap::IsBootstapResolver(resolver); |
3738 set_is_bootstrap_native(is_bootstrap_native); | 3745 set_is_bootstrap_native(is_bootstrap_native); |
3739 } | 3746 } |
3740 | 3747 |
3741 #undef __ | 3748 #undef __ |
3742 | 3749 |
3743 } // namespace dart | 3750 } // namespace dart |
OLD | NEW |