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

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

Issue 9463007: Ensure that outgoing constant arguments will be materialized. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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_builder.cc ('k') | no next file » | 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_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/growable_array.h" 9 #include "vm/growable_array.h"
10 #include "vm/handles_impl.h" 10 #include "vm/handles_impl.h"
(...skipping 24 matching lines...) Expand all
35 35
36 private: 36 private:
37 DISALLOW_COPY_AND_ASSIGN(Computation); 37 DISALLOW_COPY_AND_ASSIGN(Computation);
38 }; 38 };
39 39
40 40
41 class Value : public Computation { 41 class Value : public Computation {
42 public: 42 public:
43 Value() { } 43 Value() { }
44 44
45 virtual bool IsConstant() const { return false; }
46
45 private: 47 private:
46 DISALLOW_COPY_AND_ASSIGN(Value); 48 DISALLOW_COPY_AND_ASSIGN(Value);
47 }; 49 };
48 50
49 51
50 class AssertAssignableComp : public Computation { 52 class AssertAssignableComp : public Computation {
51 public: 53 public:
52 AssertAssignableComp(Value* value, const AbstractType& type) 54 AssertAssignableComp(Value* value, const AbstractType& type)
53 : value_(value), type_(type) { } 55 : value_(value), type_(type) { }
54 56
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 intptr_t index_; 134 intptr_t index_;
133 135
134 DISALLOW_COPY_AND_ASSIGN(TempValue); 136 DISALLOW_COPY_AND_ASSIGN(TempValue);
135 }; 137 };
136 138
137 139
138 class ConstantValue: public Value { 140 class ConstantValue: public Value {
139 public: 141 public:
140 explicit ConstantValue(const Instance& instance) : instance_(instance) { } 142 explicit ConstantValue(const Instance& instance) : instance_(instance) { }
141 143
144 virtual bool IsConstant() const { return true; }
145
142 virtual void Print() const; 146 virtual void Print() const;
143 147
144 private: 148 private:
145 const Instance& instance_; 149 const Instance& instance_;
146 150
147 DISALLOW_COPY_AND_ASSIGN(ConstantValue); 151 DISALLOW_COPY_AND_ASSIGN(ConstantValue);
148 }; 152 };
149 153
150 154
151 // Instructions. 155 // Instructions.
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 #undef DECLARE_VISIT 392 #undef DECLARE_VISIT
389 393
390 private: 394 private:
391 DISALLOW_COPY_AND_ASSIGN(InstructionVisitor); 395 DISALLOW_COPY_AND_ASSIGN(InstructionVisitor);
392 }; 396 };
393 397
394 398
395 } // namespace dart 399 } // namespace dart
396 400
397 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 401 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698