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

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

Issue 11191002: Optimize type checks for boolean expressions using class-id information. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1946 } 1946 }
1947 1947
1948 virtual void PrintOperandsTo(BufferFormatter* f) const; 1948 virtual void PrintOperandsTo(BufferFormatter* f) const;
1949 1949
1950 virtual bool CanDeoptimize() const { return false; } 1950 virtual bool CanDeoptimize() const { return false; }
1951 1951
1952 virtual bool HasSideEffect() const { return false; } 1952 virtual bool HasSideEffect() const { return false; }
1953 1953
1954 virtual intptr_t ResultCid() const { return kBoolCid; } 1954 virtual intptr_t ResultCid() const { return kBoolCid; }
1955 1955
1956 virtual Definition* Canonicalize();
1957
1956 private: 1958 private:
1957 const intptr_t token_pos_; 1959 const intptr_t token_pos_;
1958 bool is_eliminated_; 1960 bool is_eliminated_;
1959 1961
1960 DISALLOW_COPY_AND_ASSIGN(AssertBooleanInstr); 1962 DISALLOW_COPY_AND_ASSIGN(AssertBooleanInstr);
1961 }; 1963 };
1962 1964
1963 1965
1964 class ArgumentDefinitionTestInstr : public TemplateDefinition<1> { 1966 class ArgumentDefinitionTestInstr : public TemplateDefinition<1> {
1965 public: 1967 public:
(...skipping 2240 matching lines...) Expand 10 before | Expand all | Expand 10 after
4206 ForwardInstructionIterator* current_iterator_; 4208 ForwardInstructionIterator* current_iterator_;
4207 4209
4208 private: 4210 private:
4209 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4211 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4210 }; 4212 };
4211 4213
4212 4214
4213 } // namespace dart 4215 } // namespace dart
4214 4216
4215 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4217 #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