| 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 3401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3412 | 3412 |
| 3413 private: | 3413 private: |
| 3414 const NativeBodyNode& ast_node_; | 3414 const NativeBodyNode& ast_node_; |
| 3415 | 3415 |
| 3416 DISALLOW_COPY_AND_ASSIGN(NativeCallInstr); | 3416 DISALLOW_COPY_AND_ASSIGN(NativeCallInstr); |
| 3417 }; | 3417 }; |
| 3418 | 3418 |
| 3419 | 3419 |
| 3420 class DebugStepCheckInstr : public TemplateInstruction<0> { | 3420 class DebugStepCheckInstr : public TemplateInstruction<0> { |
| 3421 public: | 3421 public: |
| 3422 explicit DebugStepCheckInstr(intptr_t token_pos) | 3422 DebugStepCheckInstr(intptr_t token_pos, |
| 3423 : token_pos_(token_pos) { | 3423 PcDescriptors::Kind stub_kind) |
| 3424 : token_pos_(token_pos), |
| 3425 stub_kind_(stub_kind) { |
| 3424 } | 3426 } |
| 3425 | 3427 |
| 3426 DECLARE_INSTRUCTION(DebugStepCheck) | 3428 DECLARE_INSTRUCTION(DebugStepCheck) |
| 3427 | 3429 |
| 3428 intptr_t token_pos() const { return token_pos_; } | 3430 intptr_t token_pos() const { return token_pos_; } |
| 3429 virtual bool MayThrow() const { return false; } | 3431 virtual bool MayThrow() const { return false; } |
| 3430 virtual bool CanDeoptimize() const { return false; } | 3432 virtual bool CanDeoptimize() const { return false; } |
| 3431 virtual EffectSet Effects() const { return EffectSet::All(); } | 3433 virtual EffectSet Effects() const { return EffectSet::All(); } |
| 3432 virtual intptr_t ArgumentCount() const { return 0; } | 3434 virtual intptr_t ArgumentCount() const { return 0; } |
| 3433 virtual Instruction* Canonicalize(FlowGraph* flow_graph); | 3435 virtual Instruction* Canonicalize(FlowGraph* flow_graph); |
| 3434 | 3436 |
| 3435 private: | 3437 private: |
| 3436 const intptr_t token_pos_; | 3438 const intptr_t token_pos_; |
| 3439 const PcDescriptors::Kind stub_kind_; |
| 3437 | 3440 |
| 3438 DISALLOW_COPY_AND_ASSIGN(DebugStepCheckInstr); | 3441 DISALLOW_COPY_AND_ASSIGN(DebugStepCheckInstr); |
| 3439 }; | 3442 }; |
| 3440 | 3443 |
| 3441 | 3444 |
| 3442 enum StoreBarrierType { | 3445 enum StoreBarrierType { |
| 3443 kNoStoreBarrier, | 3446 kNoStoreBarrier, |
| 3444 kEmitStoreBarrier | 3447 kEmitStoreBarrier |
| 3445 }; | 3448 }; |
| 3446 | 3449 |
| (...skipping 3661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7108 ForwardInstructionIterator* current_iterator_; | 7111 ForwardInstructionIterator* current_iterator_; |
| 7109 | 7112 |
| 7110 private: | 7113 private: |
| 7111 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 7114 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 7112 }; | 7115 }; |
| 7113 | 7116 |
| 7114 | 7117 |
| 7115 } // namespace dart | 7118 } // namespace dart |
| 7116 | 7119 |
| 7117 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7120 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |