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

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

Issue 9460015: Do not count invocations but usage of a function, i.e., increment a function's counter at IC calls … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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 | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('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) 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_OPT_CODE_GENERATOR_IA32_H_ 5 #ifndef VM_OPT_CODE_GENERATOR_IA32_H_
6 #define VM_OPT_CODE_GENERATOR_IA32_H_ 6 #define VM_OPT_CODE_GENERATOR_IA32_H_
7 7
8 #ifndef VM_OPT_CODE_GENERATOR_H_ 8 #ifndef VM_OPT_CODE_GENERATOR_H_
9 #error Do not include opt_code_generator_ia32.h; use opt_code_generator.h. 9 #error Do not include opt_code_generator_ia32.h; use opt_code_generator.h.
10 #endif 10 #endif
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual void VisitTryCatchNode(TryCatchNode* node); 49 virtual void VisitTryCatchNode(TryCatchNode* node);
50 virtual void VisitUnaryOpNode(UnaryOpNode* node); 50 virtual void VisitUnaryOpNode(UnaryOpNode* node);
51 51
52 // Return true if intrinsification succeeded and no more code is needed. 52 // Return true if intrinsification succeeded and no more code is needed.
53 // Returns false if either no intrinsification occured or if intrinsified 53 // Returns false if either no intrinsification occured or if intrinsified
54 // code needs the rest for slow case execution. 54 // code needs the rest for slow case execution.
55 virtual bool TryIntrinsify(); 55 virtual bool TryIntrinsify();
56 virtual void GeneratePreEntryCode(); 56 virtual void GeneratePreEntryCode();
57 virtual bool IsOptimizing() const { return true; } 57 virtual bool IsOptimizing() const { return true; }
58 58
59 virtual void CountBackwardLoop() {}
60 virtual void GenerateDeferredCode(); 59 virtual void GenerateDeferredCode();
61 60
62 private: 61 private:
63 friend class DeoptimizationBlob; 62 friend class DeoptimizationBlob;
64 63
65 DeoptimizationBlob* AddDeoptimizationBlob(AstNode* node, 64 DeoptimizationBlob* AddDeoptimizationBlob(AstNode* node,
66 DeoptReasonId reason_id); 65 DeoptReasonId reason_id);
67 DeoptimizationBlob* AddDeoptimizationBlob(AstNode* node, 66 DeoptimizationBlob* AddDeoptimizationBlob(AstNode* node,
68 Register reg1, 67 Register reg1,
69 DeoptReasonId reason_id); 68 DeoptReasonId reason_id);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 const Class& smi_class_; 165 const Class& smi_class_;
167 const Class& double_class_; 166 const Class& double_class_;
168 167
169 DISALLOW_IMPLICIT_CONSTRUCTORS(OptimizingCodeGenerator); 168 DISALLOW_IMPLICIT_CONSTRUCTORS(OptimizingCodeGenerator);
170 }; 169 };
171 170
172 } // namespace dart 171 } // namespace dart
173 172
174 173
175 #endif // VM_OPT_CODE_GENERATOR_IA32_H_ 174 #endif // VM_OPT_CODE_GENERATOR_IA32_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698