| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |