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 "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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 static const bool kResultNotNeeded = false; | 324 static const bool kResultNotNeeded = false; |
325 | 325 |
326 Definition* BuildStoreIndexedValues(StoreIndexedNode* node, | 326 Definition* BuildStoreIndexedValues(StoreIndexedNode* node, |
327 bool result_is_needed); | 327 bool result_is_needed); |
328 | 328 |
329 void BuildInstanceSetterArguments( | 329 void BuildInstanceSetterArguments( |
330 InstanceSetterNode* node, | 330 InstanceSetterNode* node, |
331 ZoneGrowableArray<PushArgumentInstr*>* arguments, | 331 ZoneGrowableArray<PushArgumentInstr*>* arguments, |
332 bool result_is_needed); | 332 bool result_is_needed); |
333 | 333 |
| 334 StrictCompareInstr* BuildStrictCompare(AstNode* left, |
| 335 AstNode* right, |
| 336 Token::Kind kind, |
| 337 intptr_t token_pos); |
| 338 |
334 virtual void BuildTypeTest(ComparisonNode* node); | 339 virtual void BuildTypeTest(ComparisonNode* node); |
335 virtual void BuildTypeCast(ComparisonNode* node); | 340 virtual void BuildTypeCast(ComparisonNode* node); |
336 | 341 |
337 bool MustSaveRestoreContext(SequenceNode* node) const; | 342 bool MustSaveRestoreContext(SequenceNode* node) const; |
338 | 343 |
339 // Moves parent context into the context register. | 344 // Moves parent context into the context register. |
340 void UnchainContext(); | 345 void UnchainContext(); |
341 | 346 |
342 void CloseFragment() { exit_ = NULL; } | 347 void CloseFragment() { exit_ = NULL; } |
343 intptr_t AllocateTempIndex() { return temp_index_++; } | 348 intptr_t AllocateTempIndex() { return temp_index_++; } |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 // Output parameters. | 531 // Output parameters. |
527 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 532 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
528 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 533 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
529 | 534 |
530 intptr_t condition_token_pos_; | 535 intptr_t condition_token_pos_; |
531 }; | 536 }; |
532 | 537 |
533 } // namespace dart | 538 } // namespace dart |
534 | 539 |
535 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 540 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
OLD | NEW |