| 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 4575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4586 | 4586 |
| 4587 virtual bool MayThrow() const { return false; } | 4587 virtual bool MayThrow() const { return false; } |
| 4588 | 4588 |
| 4589 private: | 4589 private: |
| 4590 DISALLOW_COPY_AND_ASSIGN(UnboxIntegerInstr); | 4590 DISALLOW_COPY_AND_ASSIGN(UnboxIntegerInstr); |
| 4591 }; | 4591 }; |
| 4592 | 4592 |
| 4593 | 4593 |
| 4594 class MathSqrtInstr : public TemplateDefinition<1> { | 4594 class MathSqrtInstr : public TemplateDefinition<1> { |
| 4595 public: | 4595 public: |
| 4596 MathSqrtInstr(Value* value, StaticCallInstr* instance_call) { | 4596 MathSqrtInstr(Value* value, intptr_t deopt_id) { |
| 4597 SetInputAt(0, value); | 4597 SetInputAt(0, value); |
| 4598 deopt_id_ = instance_call->deopt_id(); | 4598 deopt_id_ = deopt_id; |
| 4599 } | 4599 } |
| 4600 | 4600 |
| 4601 Value* value() const { return inputs_[0]; } | 4601 Value* value() const { return inputs_[0]; } |
| 4602 | 4602 |
| 4603 virtual bool CanDeoptimize() const { return false; } | 4603 virtual bool CanDeoptimize() const { return false; } |
| 4604 | 4604 |
| 4605 virtual Representation representation() const { | 4605 virtual Representation representation() const { |
| 4606 return kUnboxedDouble; | 4606 return kUnboxedDouble; |
| 4607 } | 4607 } |
| 4608 | 4608 |
| (...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6496 ForwardInstructionIterator* current_iterator_; | 6496 ForwardInstructionIterator* current_iterator_; |
| 6497 | 6497 |
| 6498 private: | 6498 private: |
| 6499 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 6499 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 6500 }; | 6500 }; |
| 6501 | 6501 |
| 6502 | 6502 |
| 6503 } // namespace dart | 6503 } // namespace dart |
| 6504 | 6504 |
| 6505 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 6505 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |