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 3866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3877 private: | 3877 private: |
3878 const NativeBodyNode& ast_node_; | 3878 const NativeBodyNode& ast_node_; |
3879 | 3879 |
3880 DISALLOW_COPY_AND_ASSIGN(NativeCallInstr); | 3880 DISALLOW_COPY_AND_ASSIGN(NativeCallInstr); |
3881 }; | 3881 }; |
3882 | 3882 |
3883 | 3883 |
3884 class DebugStepCheckInstr : public TemplateInstruction<0> { | 3884 class DebugStepCheckInstr : public TemplateInstruction<0> { |
3885 public: | 3885 public: |
3886 DebugStepCheckInstr(intptr_t token_pos, | 3886 DebugStepCheckInstr(intptr_t token_pos, |
3887 PcDescriptors::Kind stub_kind) | 3887 RawPcDescriptors::Kind stub_kind) |
3888 : token_pos_(token_pos), | 3888 : token_pos_(token_pos), |
3889 stub_kind_(stub_kind) { | 3889 stub_kind_(stub_kind) { |
3890 } | 3890 } |
3891 | 3891 |
3892 DECLARE_INSTRUCTION(DebugStepCheck) | 3892 DECLARE_INSTRUCTION(DebugStepCheck) |
3893 | 3893 |
3894 virtual intptr_t token_pos() const { return token_pos_; } | 3894 virtual intptr_t token_pos() const { return token_pos_; } |
3895 virtual bool MayThrow() const { return false; } | 3895 virtual bool MayThrow() const { return false; } |
3896 virtual bool CanDeoptimize() const { return false; } | 3896 virtual bool CanDeoptimize() const { return false; } |
3897 virtual EffectSet Effects() const { return EffectSet::All(); } | 3897 virtual EffectSet Effects() const { return EffectSet::All(); } |
3898 virtual intptr_t ArgumentCount() const { return 0; } | 3898 virtual intptr_t ArgumentCount() const { return 0; } |
3899 virtual Instruction* Canonicalize(FlowGraph* flow_graph); | 3899 virtual Instruction* Canonicalize(FlowGraph* flow_graph); |
3900 | 3900 |
3901 private: | 3901 private: |
3902 const intptr_t token_pos_; | 3902 const intptr_t token_pos_; |
3903 const PcDescriptors::Kind stub_kind_; | 3903 const RawPcDescriptors::Kind stub_kind_; |
3904 | 3904 |
3905 DISALLOW_COPY_AND_ASSIGN(DebugStepCheckInstr); | 3905 DISALLOW_COPY_AND_ASSIGN(DebugStepCheckInstr); |
3906 }; | 3906 }; |
3907 | 3907 |
3908 | 3908 |
3909 enum StoreBarrierType { | 3909 enum StoreBarrierType { |
3910 kNoStoreBarrier, | 3910 kNoStoreBarrier, |
3911 kEmitStoreBarrier | 3911 kEmitStoreBarrier |
3912 }; | 3912 }; |
3913 | 3913 |
(...skipping 4305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8219 ForwardInstructionIterator* current_iterator_; | 8219 ForwardInstructionIterator* current_iterator_; |
8220 | 8220 |
8221 private: | 8221 private: |
8222 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 8222 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
8223 }; | 8223 }; |
8224 | 8224 |
8225 | 8225 |
8226 } // namespace dart | 8226 } // namespace dart |
8227 | 8227 |
8228 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 8228 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
OLD | NEW |