Chromium Code Reviews| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 352 StaticCallInstr* BuildStaticNoSuchMethodCall( | 352 StaticCallInstr* BuildStaticNoSuchMethodCall( |
| 353 const Class& target_class, | 353 const Class& target_class, |
| 354 AstNode* receiver, | 354 AstNode* receiver, |
| 355 const String& method_name, | 355 const String& method_name, |
| 356 ArgumentListNode* method_arguments, | 356 ArgumentListNode* method_arguments, |
| 357 bool save_last_arg); | 357 bool save_last_arg); |
| 358 | 358 |
| 359 StaticCallInstr* BuildThrowNoSuchMethodError(intptr_t token_pos, | 359 StaticCallInstr* BuildThrowNoSuchMethodError(intptr_t token_pos, |
| 360 const Class& function_class, | 360 const Class& function_class, |
| 361 const String& function_name, | 361 const String& function_name, |
| 362 ArgumentListNode* actuals, | |
|
regis
2013/08/28 21:10:54
If we emulate the naming convention used by BuildS
zra
2013/08/28 22:47:00
Done.
| |
| 362 int invocation_type); | 363 int invocation_type); |
| 364 StaticCallInstr* BuildThrowNoSuchMethodError(intptr_t token_pos, | |
| 365 const Class& function_class, | |
| 366 const String& function_name, | |
| 367 int invocation_type) { | |
| 368 return BuildThrowNoSuchMethodError( | |
| 369 token_pos, function_class, function_name, NULL, invocation_type); | |
|
regis
2013/08/28 21:10:54
Overriding is not encouraged. Why not make it clea
zra
2013/08/28 22:47:00
Done.
| |
| 370 } | |
| 363 | 371 |
| 364 void BuildStaticSetter(StaticSetterNode* node, bool result_is_needed); | 372 void BuildStaticSetter(StaticSetterNode* node, bool result_is_needed); |
| 365 Definition* BuildStoreStaticField(StoreStaticFieldNode* node, | 373 Definition* BuildStoreStaticField(StoreStaticFieldNode* node, |
| 366 bool result_is_needed); | 374 bool result_is_needed); |
| 367 | 375 |
| 368 ClosureCallInstr* BuildClosureCall(ClosureCallNode* node); | 376 ClosureCallInstr* BuildClosureCall(ClosureCallNode* node); |
| 369 | 377 |
| 370 Value* BuildNullValue(); | 378 Value* BuildNullValue(); |
| 371 | 379 |
| 372 // Returns true if the run-time type check can be eliminated. | 380 // Returns true if the run-time type check can be eliminated. |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 513 // Output parameters. | 521 // Output parameters. |
| 514 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 522 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 515 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 523 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 516 | 524 |
| 517 intptr_t condition_token_pos_; | 525 intptr_t condition_token_pos_; |
| 518 }; | 526 }; |
| 519 | 527 |
| 520 } // namespace dart | 528 } // namespace dart |
| 521 | 529 |
| 522 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 530 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |