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

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

Issue 25050004: Add a is_recognized bit to function kind field. Improves performance of method recognizer and thus … (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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 enum Kind { 172 enum Kind {
173 kUnknown, 173 kUnknown,
174 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, 174 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name,
175 RECOGNIZED_LIST(DEFINE_ENUM_LIST) 175 RECOGNIZED_LIST(DEFINE_ENUM_LIST)
176 #undef DEFINE_ENUM_LIST 176 #undef DEFINE_ENUM_LIST
177 }; 177 };
178 178
179 static Kind RecognizeKind(const Function& function); 179 static Kind RecognizeKind(const Function& function);
180 static bool AlwaysInline(const Function& function); 180 static bool AlwaysInline(const Function& function);
181 static const char* KindToCString(Kind kind); 181 static const char* KindToCString(Kind kind);
182 static void InitializeState();
182 }; 183 };
183 184
184 185
185 // CompileType describes type of the value produced by the definition. 186 // CompileType describes type of the value produced by the definition.
186 // 187 //
187 // It captures the following properties: 188 // It captures the following properties:
188 // - whether value can potentially be null or it is definitely not null; 189 // - whether value can potentially be null or it is definitely not null;
189 // - concrete class id of the value or kDynamicCid if unknown statically; 190 // - concrete class id of the value or kDynamicCid if unknown statically;
190 // - abstract super type of the value, concrete type of the value in runtime 191 // - abstract super type of the value, concrete type of the value in runtime
191 // is guaranteed to be sub type of this type. 192 // is guaranteed to be sub type of this type.
(...skipping 6610 matching lines...) Expand 10 before | Expand all | Expand 10 after
6802 ForwardInstructionIterator* current_iterator_; 6803 ForwardInstructionIterator* current_iterator_;
6803 6804
6804 private: 6805 private:
6805 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6806 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6806 }; 6807 };
6807 6808
6808 6809
6809 } // namespace dart 6810 } // namespace dart
6810 6811
6811 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6812 #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