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

Side by Side Diff: vm/flow_graph_compiler_ia32.h

Issue 11745022: - Make Boolean 'true' and 'false' singleton VM isolate objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 11 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 | « vm/flow_graph_compiler.cc ('k') | vm/flow_graph_compiler_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_FLOW_GRAPH_COMPILER_IA32_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_
6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_ 6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_
7 7
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h.
10 #endif 10 #endif
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 void AddSlowPathCode(SlowPathCode* slow_path); 199 void AddSlowPathCode(SlowPathCode* slow_path);
200 200
201 void FinalizeExceptionHandlers(const Code& code); 201 void FinalizeExceptionHandlers(const Code& code);
202 void FinalizePcDescriptors(const Code& code); 202 void FinalizePcDescriptors(const Code& code);
203 void FinalizeDeoptInfo(const Code& code); 203 void FinalizeDeoptInfo(const Code& code);
204 void FinalizeStackmaps(const Code& code); 204 void FinalizeStackmaps(const Code& code);
205 void FinalizeVarDescriptors(const Code& code); 205 void FinalizeVarDescriptors(const Code& code);
206 void FinalizeComments(const Code& code); 206 void FinalizeComments(const Code& code);
207 void FinalizeStaticCallTargetsTable(const Code& code); 207 void FinalizeStaticCallTargetsTable(const Code& code);
208 208
209 const Bool& bool_true() const { return bool_true_; }
210 const Bool& bool_false() const { return bool_false_; }
211 const Class& double_class() const { return double_class_; } 209 const Class& double_class() const { return double_class_; }
212 210
213 void SaveLiveRegisters(LocationSummary* locs); 211 void SaveLiveRegisters(LocationSummary* locs);
214 void RestoreLiveRegisters(LocationSummary* locs); 212 void RestoreLiveRegisters(LocationSummary* locs);
215 213
216 // Returns true if the compiled function has a finally clause. 214 // Returns true if the compiled function has a finally clause.
217 bool HasFinally() const; 215 bool HasFinally() const;
218 216
219 intptr_t CurrentTryIndex() const { 217 intptr_t CurrentTryIndex() const {
220 if (current_block_ == NULL) { 218 if (current_block_ == NULL) {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 StackmapTableBuilder* stackmap_table_builder_; 335 StackmapTableBuilder* stackmap_table_builder_;
338 GrowableArray<BlockInfo*> block_info_; 336 GrowableArray<BlockInfo*> block_info_;
339 GrowableArray<CompilerDeoptInfo*> deopt_infos_; 337 GrowableArray<CompilerDeoptInfo*> deopt_infos_;
340 GrowableArray<SlowPathCode*> slow_path_code_; 338 GrowableArray<SlowPathCode*> slow_path_code_;
341 // Stores: [code offset, function, null(code)]. 339 // Stores: [code offset, function, null(code)].
342 const GrowableObjectArray& static_calls_target_table_; 340 const GrowableObjectArray& static_calls_target_table_;
343 const bool is_optimizing_; 341 const bool is_optimizing_;
344 // Set to true if optimized code has IC calls. 342 // Set to true if optimized code has IC calls.
345 bool may_reoptimize_; 343 bool may_reoptimize_;
346 344
347 const Bool& bool_true_;
348 const Bool& bool_false_;
349 const Class& double_class_; 345 const Class& double_class_;
350 346
351 ParallelMoveResolver parallel_move_resolver_; 347 ParallelMoveResolver parallel_move_resolver_;
352 348
353 // Currently instructions generate deopt stubs internally by 349 // Currently instructions generate deopt stubs internally by
354 // calling AddDeoptStub. To communicate deoptimization environment 350 // calling AddDeoptStub. To communicate deoptimization environment
355 // that should be used when deoptimizing we store it in this variable. 351 // that should be used when deoptimizing we store it in this variable.
356 // In future AddDeoptStub should be moved out of the instruction template. 352 // In future AddDeoptStub should be moved out of the instruction template.
357 Environment* pending_deoptimization_env_; 353 Environment* pending_deoptimization_env_;
358 354
359 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 355 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
360 }; 356 };
361 357
362 } // namespace dart 358 } // namespace dart
363 359
364 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ 360 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_
OLDNEW
« no previous file with comments | « vm/flow_graph_compiler.cc ('k') | vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698