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

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

Issue 15507006: Improve constant propagation for Mint and Smi. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/flow_graph_optimizer.cc ('k') | 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 2359 matching lines...) Expand 10 before | Expand all | Expand 10 after
2370 2370
2371 Range* constraint_; 2371 Range* constraint_;
2372 TargetEntryInstr* target_; 2372 TargetEntryInstr* target_;
2373 2373
2374 DISALLOW_COPY_AND_ASSIGN(ConstraintInstr); 2374 DISALLOW_COPY_AND_ASSIGN(ConstraintInstr);
2375 }; 2375 };
2376 2376
2377 2377
2378 class ConstantInstr : public TemplateDefinition<0> { 2378 class ConstantInstr : public TemplateDefinition<0> {
2379 public: 2379 public:
2380 explicit ConstantInstr(const Object& value) 2380 explicit ConstantInstr(const Object& value);
2381 : value_(value) { }
2382 2381
2383 DECLARE_INSTRUCTION(Constant) 2382 DECLARE_INSTRUCTION(Constant)
2384 virtual CompileType ComputeType() const; 2383 virtual CompileType ComputeType() const;
2385 2384
2386 virtual Definition* Canonicalize(FlowGraph* flow_graph); 2385 virtual Definition* Canonicalize(FlowGraph* flow_graph);
2387 2386
2388 const Object& value() const { return value_; } 2387 const Object& value() const { return value_; }
2389 2388
2390 virtual void PrintOperandsTo(BufferFormatter* f) const; 2389 virtual void PrintOperandsTo(BufferFormatter* f) const;
2391 2390
(...skipping 4014 matching lines...) Expand 10 before | Expand all | Expand 10 after
6406 ForwardInstructionIterator* current_iterator_; 6405 ForwardInstructionIterator* current_iterator_;
6407 6406
6408 private: 6407 private:
6409 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6408 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6410 }; 6409 };
6411 6410
6412 6411
6413 } // namespace dart 6412 } // namespace dart
6414 6413
6415 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6414 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698