| 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_FLOW_GRAPH_BUILDER_H_ | 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_ |
| 6 #define VM_FLOW_GRAPH_BUILDER_H_ | 6 #define VM_FLOW_GRAPH_BUILDER_H_ |
| 7 | 7 |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "platform/globals.h" | 9 #include "platform/globals.h" |
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 // This implementation shares state among visitors by using the builder. | 297 // This implementation shares state among visitors by using the builder. |
| 298 // The implementation is incorrect if a visitor that hits a return is not | 298 // The implementation is incorrect if a visitor that hits a return is not |
| 299 // actually added to the graph. | 299 // actually added to the graph. |
| 300 void AddReturnExit(intptr_t token_pos, Value* value); | 300 void AddReturnExit(intptr_t token_pos, Value* value); |
| 301 | 301 |
| 302 protected: | 302 protected: |
| 303 Definition* BuildStoreTemp(const LocalVariable& local, Value* value); | 303 Definition* BuildStoreTemp(const LocalVariable& local, Value* value); |
| 304 Definition* BuildStoreExprTemp(Value* value); | 304 Definition* BuildStoreExprTemp(Value* value); |
| 305 Definition* BuildLoadExprTemp(); | 305 Definition* BuildLoadExprTemp(); |
| 306 | 306 |
| 307 Definition* BuildStoreLocal(const LocalVariable& local, Value* value); | 307 Definition* BuildStoreLocal(const LocalVariable& local, |
| 308 Definition* BuildLoadLocal(const LocalVariable& local); | 308 Value* value, |
| 309 intptr_t token_pos = Scanner::kNoSourcePos); |
| 310 Definition* BuildLoadLocal(const LocalVariable& local, |
| 311 intptr_t token_pos = Scanner::kNoSourcePos); |
| 309 LoadLocalInstr* BuildLoadThisVar(LocalScope* scope); | 312 LoadLocalInstr* BuildLoadThisVar(LocalScope* scope); |
| 310 LoadFieldInstr* BuildNativeGetter( | 313 LoadFieldInstr* BuildNativeGetter( |
| 311 NativeBodyNode* node, | 314 NativeBodyNode* node, |
| 312 MethodRecognizer::Kind kind, | 315 MethodRecognizer::Kind kind, |
| 313 intptr_t offset, | 316 intptr_t offset, |
| 314 const Type& type, | 317 const Type& type, |
| 315 intptr_t class_id); | 318 intptr_t class_id); |
| 316 // Assumes setter parameter is named 'value'. Returns null constant. | 319 // Assumes setter parameter is named 'value'. Returns null constant. |
| 317 ConstantInstr* DoNativeSetterStoreValue( | 320 ConstantInstr* DoNativeSetterStoreValue( |
| 318 NativeBodyNode* node, | 321 NativeBodyNode* node, |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 // Output parameters. | 575 // Output parameters. |
| 573 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 576 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 574 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 577 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 575 | 578 |
| 576 intptr_t condition_token_pos_; | 579 intptr_t condition_token_pos_; |
| 577 }; | 580 }; |
| 578 | 581 |
| 579 } // namespace dart | 582 } // namespace dart |
| 580 | 583 |
| 581 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 584 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |