| 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 4233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4244 | 4244 |
| 4245 class StoreVMFieldInstr : public TemplateDefinition<2> { | 4245 class StoreVMFieldInstr : public TemplateDefinition<2> { |
| 4246 public: | 4246 public: |
| 4247 StoreVMFieldInstr(Value* dest, | 4247 StoreVMFieldInstr(Value* dest, |
| 4248 intptr_t offset_in_bytes, | 4248 intptr_t offset_in_bytes, |
| 4249 Value* value, | 4249 Value* value, |
| 4250 const AbstractType& type) | 4250 const AbstractType& type) |
| 4251 : offset_in_bytes_(offset_in_bytes), type_(type) { | 4251 : offset_in_bytes_(offset_in_bytes), type_(type) { |
| 4252 ASSERT(type.IsZoneHandle()); // May be null if field is not an instance. | 4252 ASSERT(type.IsZoneHandle()); // May be null if field is not an instance. |
| 4253 SetInputAt(kValuePos, value); | 4253 SetInputAt(kValuePos, value); |
| 4254 SetInputAt(kDestPos, dest); | 4254 SetInputAt(kObjectPos, dest); |
| 4255 } | 4255 } |
| 4256 | 4256 |
| 4257 enum { | 4257 enum { |
| 4258 kValuePos = 0, | 4258 kValuePos = 0, |
| 4259 kDestPos = 1 | 4259 kObjectPos = 1 |
| 4260 }; | 4260 }; |
| 4261 | 4261 |
| 4262 DECLARE_INSTRUCTION(StoreVMField) | 4262 DECLARE_INSTRUCTION(StoreVMField) |
| 4263 virtual CompileType* ComputeInitialType() const; | 4263 virtual CompileType* ComputeInitialType() const; |
| 4264 | 4264 |
| 4265 Value* value() const { return inputs_[kValuePos]; } | 4265 Value* value() const { return inputs_[kValuePos]; } |
| 4266 Value* dest() const { return inputs_[kDestPos]; } | 4266 Value* dest() const { return inputs_[kObjectPos]; } |
| 4267 intptr_t offset_in_bytes() const { return offset_in_bytes_; } | 4267 intptr_t offset_in_bytes() const { return offset_in_bytes_; } |
| 4268 const AbstractType& type() const { return type_; } | 4268 const AbstractType& type() const { return type_; } |
| 4269 | 4269 |
| 4270 virtual void PrintOperandsTo(BufferFormatter* f) const; | 4270 virtual void PrintOperandsTo(BufferFormatter* f) const; |
| 4271 | 4271 |
| 4272 virtual bool CanDeoptimize() const { return false; } | 4272 virtual bool CanDeoptimize() const { return false; } |
| 4273 | 4273 |
| 4274 virtual EffectSet Effects() const { return EffectSet::None(); } | 4274 virtual EffectSet Effects() const { return EffectSet::None(); } |
| 4275 | 4275 |
| 4276 virtual bool MayThrow() const { return false; } | 4276 virtual bool MayThrow() const { return false; } |
| (...skipping 2777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7054 ForwardInstructionIterator* current_iterator_; | 7054 ForwardInstructionIterator* current_iterator_; |
| 7055 | 7055 |
| 7056 private: | 7056 private: |
| 7057 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 7057 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 7058 }; | 7058 }; |
| 7059 | 7059 |
| 7060 | 7060 |
| 7061 } // namespace dart | 7061 } // namespace dart |
| 7062 | 7062 |
| 7063 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7063 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |