| 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 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2312 public: | 2312 public: |
| 2313 CurrentContextInstr() { } | 2313 CurrentContextInstr() { } |
| 2314 | 2314 |
| 2315 DECLARE_INSTRUCTION(CurrentContext) | 2315 DECLARE_INSTRUCTION(CurrentContext) |
| 2316 virtual CompileType ComputeType() const; | 2316 virtual CompileType ComputeType() const; |
| 2317 | 2317 |
| 2318 virtual bool CanDeoptimize() const { return false; } | 2318 virtual bool CanDeoptimize() const { return false; } |
| 2319 | 2319 |
| 2320 virtual bool HasSideEffect() const { return false; } | 2320 virtual bool HasSideEffect() const { return false; } |
| 2321 | 2321 |
| 2322 virtual bool AttributesEqual(Instruction* other) const { return true; } |
| 2323 |
| 2322 private: | 2324 private: |
| 2323 DISALLOW_COPY_AND_ASSIGN(CurrentContextInstr); | 2325 DISALLOW_COPY_AND_ASSIGN(CurrentContextInstr); |
| 2324 }; | 2326 }; |
| 2325 | 2327 |
| 2326 | 2328 |
| 2327 class ClosureCallInstr : public TemplateDefinition<0> { | 2329 class ClosureCallInstr : public TemplateDefinition<0> { |
| 2328 public: | 2330 public: |
| 2329 ClosureCallInstr(ClosureCallNode* node, | 2331 ClosureCallInstr(ClosureCallNode* node, |
| 2330 ZoneGrowableArray<PushArgumentInstr*>* arguments) | 2332 ZoneGrowableArray<PushArgumentInstr*>* arguments) |
| 2331 : ast_node_(*node), | 2333 : ast_node_(*node), |
| (...skipping 2608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4940 ForwardInstructionIterator* current_iterator_; | 4942 ForwardInstructionIterator* current_iterator_; |
| 4941 | 4943 |
| 4942 private: | 4944 private: |
| 4943 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 4945 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 4944 }; | 4946 }; |
| 4945 | 4947 |
| 4946 | 4948 |
| 4947 } // namespace dart | 4949 } // namespace dart |
| 4948 | 4950 |
| 4949 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 4951 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |