| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 class ClosureCallComp : public Computation { | 265 class ClosureCallComp : public Computation { |
| 266 public: | 266 public: |
| 267 ClosureCallComp(ClosureCallNode* node, | 267 ClosureCallComp(ClosureCallNode* node, |
| 268 intptr_t try_index, | 268 intptr_t try_index, |
| 269 Value* context, | 269 Value* context, |
| 270 ZoneGrowableArray<Value*>* arguments) | 270 ZoneGrowableArray<Value*>* arguments) |
| 271 : ast_node_(*node), | 271 : ast_node_(*node), |
| 272 try_index_(try_index), | 272 try_index_(try_index), |
| 273 context_(context), | 273 context_(context), |
| 274 arguments_(arguments) { | 274 arguments_(arguments) { |
| 275 ASSERT(context->IsTemp()); | 275 ASSERT(context->IsTemp() || context->IsUse()); |
| 276 } | 276 } |
| 277 | 277 |
| 278 DECLARE_COMPUTATION(ClosureCall) | 278 DECLARE_COMPUTATION(ClosureCall) |
| 279 | 279 |
| 280 const Array& argument_names() const { return ast_node_.arguments()->names(); } | 280 const Array& argument_names() const { return ast_node_.arguments()->names(); } |
| 281 intptr_t token_index() const { return ast_node_.token_index(); } | 281 intptr_t token_index() const { return ast_node_.token_index(); } |
| 282 intptr_t try_index() const { return try_index_; } | 282 intptr_t try_index() const { return try_index_; } |
| 283 | 283 |
| 284 Value* context() const { return context_; } | 284 Value* context() const { return context_; } |
| 285 intptr_t ArgumentCount() const { return arguments_->length(); } | 285 intptr_t ArgumentCount() const { return arguments_->length(); } |
| (...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1579 const GrowableArray<BlockEntryInstr*>& block_order_; | 1579 const GrowableArray<BlockEntryInstr*>& block_order_; |
| 1580 | 1580 |
| 1581 private: | 1581 private: |
| 1582 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 1582 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 1583 }; | 1583 }; |
| 1584 | 1584 |
| 1585 | 1585 |
| 1586 } // namespace dart | 1586 } // namespace dart |
| 1587 | 1587 |
| 1588 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 1588 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |