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

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

Issue 8972005: More optimizations cleanup. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_CODE_GENERATOR_H_ 5 #ifndef VM_CODE_GENERATOR_H_
6 #define VM_CODE_GENERATOR_H_ 6 #define VM_CODE_GENERATOR_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/runtime_entry.h" 9 #include "vm/runtime_entry.h"
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 kDeoptSmiEquality, 72 kDeoptSmiEquality,
73 kDeoptSmiCompareSmis, 73 kDeoptSmiCompareSmis,
74 kDeoptSmiCompareAny, 74 kDeoptSmiCompareAny,
75 kDeoptEqualityNoFeedback, 75 kDeoptEqualityNoFeedback,
76 kDeoptEqualityClassCheck, 76 kDeoptEqualityClassCheck,
77 kDeoptDoubleComparison, 77 kDeoptDoubleComparison,
78 kDeoptLoadIndexedFixedArray, 78 kDeoptLoadIndexedFixedArray,
79 kDeoptLoadIndexedGrowableArray, 79 kDeoptLoadIndexedGrowableArray,
80 kDeoptNoTypeFeedback, 80 kDeoptNoTypeFeedback,
81 kDeoptSAR, 81 kDeoptSAR,
82 kDeoptUnaryOp,
82 }; 83 };
83 84
84 // This class wraps around the array RawClass::functions_cache_. 85 // This class wraps around the array RawClass::functions_cache_.
85 // The structure of that array is specified by FunctionsCache::Entries. 86 // The structure of that array is specified by FunctionsCache::Entries.
86 // The last entry in the array is always NULL, the lookup code can rely on 87 // The last entry in the array is always NULL, the lookup code can rely on
87 // last entry being NULL to terminate its search. 88 // last entry being NULL to terminate its search.
88 // The compiled functions are added sequentially (except for the last entry 89 // The compiled functions are added sequentially (except for the last entry
89 // being empty). Names of functions with variable number of arguments 90 // being empty). Names of functions with variable number of arguments
90 // can appear several times, once for each valid argument count. 91 // can appear several times, once for each valid argument count.
91 class FunctionsCache : public ValueObject { 92 class FunctionsCache : public ValueObject {
(...skipping 25 matching lines...) Expand all
117 const Function& function, 118 const Function& function,
118 int num_arguments, 119 int num_arguments,
119 int num_named_arguments); 120 int num_named_arguments);
120 121
121 const Class& class_; 122 const Class& class_;
122 }; 123 };
123 124
124 } // namespace dart 125 } // namespace dart
125 126
126 #endif // VM_CODE_GENERATOR_H_ 127 #endif // VM_CODE_GENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698