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

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
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 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after
2368 2368
2369 Range* constraint_; 2369 Range* constraint_;
2370 TargetEntryInstr* target_; 2370 TargetEntryInstr* target_;
2371 2371
2372 DISALLOW_COPY_AND_ASSIGN(ConstraintInstr); 2372 DISALLOW_COPY_AND_ASSIGN(ConstraintInstr);
2373 }; 2373 };
2374 2374
2375 2375
2376 class ConstantInstr : public TemplateDefinition<0> { 2376 class ConstantInstr : public TemplateDefinition<0> {
2377 public: 2377 public:
2378 explicit ConstantInstr(const Object& value) 2378 explicit ConstantInstr(const Object& value);
2379 : value_(value) { }
2380 2379
2381 DECLARE_INSTRUCTION(Constant) 2380 DECLARE_INSTRUCTION(Constant)
2382 virtual CompileType ComputeType() const; 2381 virtual CompileType ComputeType() const;
2383 2382
2384 virtual Definition* Canonicalize(FlowGraph* flow_graph); 2383 virtual Definition* Canonicalize(FlowGraph* flow_graph);
2385 2384
2386 const Object& value() const { return value_; } 2385 const Object& value() const { return value_; }
2387 2386
2388 virtual void PrintOperandsTo(BufferFormatter* f) const; 2387 virtual void PrintOperandsTo(BufferFormatter* f) const;
2389 2388
(...skipping 4013 matching lines...) Expand 10 before | Expand all | Expand 10 after
6403 ForwardInstructionIterator* current_iterator_; 6402 ForwardInstructionIterator* current_iterator_;
6404 6403
6405 private: 6404 private:
6406 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6405 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6407 }; 6406 };
6408 6407
6409 6408
6410 } // namespace dart 6409 } // namespace dart
6411 6410
6412 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6411 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698