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

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

Issue 27705003: Improve canonicalization of strict comparisons and bool negation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | « no previous file | runtime/vm/intermediate_language.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 3739 matching lines...) Expand 10 before | Expand all | Expand 10 after
3750 virtual CompileType ComputeType() const; 3750 virtual CompileType ComputeType() const;
3751 3751
3752 Value* value() const { return inputs_[0]; } 3752 Value* value() const { return inputs_[0]; }
3753 3753
3754 virtual bool CanDeoptimize() const { return false; } 3754 virtual bool CanDeoptimize() const { return false; }
3755 3755
3756 virtual EffectSet Effects() const { return EffectSet::None(); } 3756 virtual EffectSet Effects() const { return EffectSet::None(); }
3757 3757
3758 virtual bool MayThrow() const { return false; } 3758 virtual bool MayThrow() const { return false; }
3759 3759
3760 virtual Definition* Canonicalize(FlowGraph* flow_graph);
3761
3760 private: 3762 private:
3761 DISALLOW_COPY_AND_ASSIGN(BooleanNegateInstr); 3763 DISALLOW_COPY_AND_ASSIGN(BooleanNegateInstr);
3762 }; 3764 };
3763 3765
3764 3766
3765 class InstanceOfInstr : public TemplateDefinition<3> { 3767 class InstanceOfInstr : public TemplateDefinition<3> {
3766 public: 3768 public:
3767 InstanceOfInstr(intptr_t token_pos, 3769 InstanceOfInstr(intptr_t token_pos,
3768 Value* value, 3770 Value* value,
3769 Value* instantiator, 3771 Value* instantiator,
(...skipping 3084 matching lines...) Expand 10 before | Expand all | Expand 10 after
6854 ForwardInstructionIterator* current_iterator_; 6856 ForwardInstructionIterator* current_iterator_;
6855 6857
6856 private: 6858 private:
6857 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6859 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6858 }; 6860 };
6859 6861
6860 6862
6861 } // namespace dart 6863 } // namespace dart
6862 6864
6863 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6865 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698