| 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 2797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2808 StoreInstanceFieldInstr(const Field& field, | 2808 StoreInstanceFieldInstr(const Field& field, |
| 2809 Value* instance, | 2809 Value* instance, |
| 2810 Value* value, | 2810 Value* value, |
| 2811 StoreBarrierType emit_store_barrier) | 2811 StoreBarrierType emit_store_barrier) |
| 2812 : field_(field), | 2812 : field_(field), |
| 2813 emit_store_barrier_(emit_store_barrier) { | 2813 emit_store_barrier_(emit_store_barrier) { |
| 2814 SetInputAt(0, instance); | 2814 SetInputAt(0, instance); |
| 2815 SetInputAt(1, value); | 2815 SetInputAt(1, value); |
| 2816 } | 2816 } |
| 2817 | 2817 |
| 2818 void SetDeoptId(intptr_t deopt_id) { | |
| 2819 ASSERT(CanDeoptimize()); | |
| 2820 deopt_id_ = deopt_id; | |
| 2821 } | |
| 2822 | |
| 2823 DECLARE_INSTRUCTION(StoreInstanceField) | 2818 DECLARE_INSTRUCTION(StoreInstanceField) |
| 2824 virtual CompileType* ComputeInitialType() const; | 2819 virtual CompileType* ComputeInitialType() const; |
| 2825 | 2820 |
| 2826 const Field& field() const { return field_; } | 2821 const Field& field() const { return field_; } |
| 2827 | 2822 |
| 2828 Value* instance() const { return inputs_[0]; } | 2823 Value* instance() const { return inputs_[0]; } |
| 2829 Value* value() const { return inputs_[1]; } | 2824 Value* value() const { return inputs_[1]; } |
| 2830 bool ShouldEmitStoreBarrier() const { | 2825 bool ShouldEmitStoreBarrier() const { |
| 2831 return value()->NeedsStoreBuffer() | 2826 return value()->NeedsStoreBuffer() |
| 2832 && (emit_store_barrier_ == kEmitStoreBarrier); | 2827 && (emit_store_barrier_ == kEmitStoreBarrier); |
| (...skipping 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4677 ForwardInstructionIterator* current_iterator_; | 4672 ForwardInstructionIterator* current_iterator_; |
| 4678 | 4673 |
| 4679 private: | 4674 private: |
| 4680 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 4675 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 4681 }; | 4676 }; |
| 4682 | 4677 |
| 4683 | 4678 |
| 4684 } // namespace dart | 4679 } // namespace dart |
| 4685 | 4680 |
| 4686 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 4681 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |