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

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

Issue 9921017: Intrinsify methods early. Fix some bugs in trinsified code, mark one precision-related bug as SKIP … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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/code_generator_ia32.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_CODE_GENERATOR_IA32_H_ 5 #ifndef VM_CODE_GENERATOR_IA32_H_
6 #define VM_CODE_GENERATOR_IA32_H_ 6 #define VM_CODE_GENERATOR_IA32_H_
7 7
8 #ifndef VM_CODE_GENERATOR_H_ 8 #ifndef VM_CODE_GENERATOR_H_
9 #error Do not include code_generator_ia32.h directly; use code_generator.h. 9 #error Do not include code_generator_ia32.h directly; use code_generator.h.
10 #endif 10 #endif
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 static bool CanOptimize(); 115 static bool CanOptimize();
116 116
117 private: 117 private:
118 // TODO(srdjan): Remove the friendship once the two compilers are properly 118 // TODO(srdjan): Remove the friendship once the two compilers are properly
119 // structured. 119 // structured.
120 friend class OptimizingCodeGenerator; 120 friend class OptimizingCodeGenerator;
121 121
122 // Forward declarations. 122 // Forward declarations.
123 class HandlerList; 123 class HandlerList;
124 124
125 // Return true if intrinsification was completed and no other code 125 // Return true if intrinsification succeeded and no more code is needed.
126 // needs to be generated. 126 // Returns false if either no intrinsification occured or if intrinsified
127 virtual bool TryIntrinsify() { return false; } 127 // code needs the rest for slow case execution.
128 bool TryIntrinsify();
129
130 void IntrinsifyGetter();
131 void IntrinsifySetter();
132
128 virtual void GeneratePreEntryCode(); 133 virtual void GeneratePreEntryCode();
129 void GenerateLegacyEntryCode(); 134 void GenerateLegacyEntryCode();
130 void GenerateEntryCode(); 135 void GenerateEntryCode();
131 void GenerateLoadVariable(Register dst, const LocalVariable& local); 136 void GenerateLoadVariable(Register dst, const LocalVariable& local);
132 void GeneratePushVariable(const LocalVariable& variable, Register scratch); 137 void GeneratePushVariable(const LocalVariable& variable, Register scratch);
133 void GenerateStoreVariable(const LocalVariable& local, 138 void GenerateStoreVariable(const LocalVariable& local,
134 Register src, 139 Register src,
135 Register scratch); 140 Register scratch);
136 void GenerateLogicalNotOp(UnaryOpNode* node); 141 void GenerateLogicalNotOp(UnaryOpNode* node);
137 void GenerateLogicalAndOrOp(BinaryOpNode* node); 142 void GenerateLogicalAndOrOp(BinaryOpNode* node);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // The runtime context level is only incremented when a new context is 225 // The runtime context level is only incremented when a new context is
221 // allocated and chained to the list of contexts. 226 // allocated and chained to the list of contexts.
222 intptr_t context_level_; 227 intptr_t context_level_;
223 228
224 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); 229 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator);
225 }; 230 };
226 231
227 } // namespace dart 232 } // namespace dart
228 233
229 #endif // VM_CODE_GENERATOR_IA32_H_ 234 #endif // VM_CODE_GENERATOR_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/code_generator_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698