| OLD | NEW |
| 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/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 3577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3588 | 3588 |
| 3589 class ShiftMintOpInstr : public TemplateDefinition<2> { | 3589 class ShiftMintOpInstr : public TemplateDefinition<2> { |
| 3590 public: | 3590 public: |
| 3591 ShiftMintOpInstr(Token::Kind op_kind, | 3591 ShiftMintOpInstr(Token::Kind op_kind, |
| 3592 Value* left, | 3592 Value* left, |
| 3593 Value* right, | 3593 Value* right, |
| 3594 InstanceCallInstr* instance_call) | 3594 InstanceCallInstr* instance_call) |
| 3595 : op_kind_(op_kind) { | 3595 : op_kind_(op_kind) { |
| 3596 ASSERT(left != NULL); | 3596 ASSERT(left != NULL); |
| 3597 ASSERT(right != NULL); | 3597 ASSERT(right != NULL); |
| 3598 ASSERT(op_kind == Token::kSHR); | 3598 ASSERT(op_kind == Token::kSHR || op_kind == Token::kSHL); |
| 3599 inputs_[0] = left; | 3599 inputs_[0] = left; |
| 3600 inputs_[1] = right; | 3600 inputs_[1] = right; |
| 3601 deopt_id_ = instance_call->deopt_id(); | 3601 deopt_id_ = instance_call->deopt_id(); |
| 3602 } | 3602 } |
| 3603 | 3603 |
| 3604 Value* left() const { return inputs_[0]; } | 3604 Value* left() const { return inputs_[0]; } |
| 3605 Value* right() const { return inputs_[1]; } | 3605 Value* right() const { return inputs_[1]; } |
| 3606 | 3606 |
| 3607 Token::Kind op_kind() const { return op_kind_; } | 3607 Token::Kind op_kind() const { return op_kind_; } |
| 3608 | 3608 |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4184 ForwardInstructionIterator* current_iterator_; | 4184 ForwardInstructionIterator* current_iterator_; |
| 4185 | 4185 |
| 4186 private: | 4186 private: |
| 4187 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 4187 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 4188 }; | 4188 }; |
| 4189 | 4189 |
| 4190 | 4190 |
| 4191 } // namespace dart | 4191 } // namespace dart |
| 4192 | 4192 |
| 4193 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 4193 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |