Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: runtime/vm/flow_graph_builder.h

Issue 23482004: Evaluates arguments before throwing a NoSuchMethodError in constructor (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 void BuildThrowNode(ThrowNode* node); 350 void BuildThrowNode(ThrowNode* node);
351 351
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(
360 const Class& function_class, 360 intptr_t token_pos,
361 const String& function_name, 361 const Class& function_class,
362 int invocation_type); 362 const String& function_name,
363 ArgumentListNode* function_arguments,
364 int invocation_type);
363 365
364 void BuildStaticSetter(StaticSetterNode* node, bool result_is_needed); 366 void BuildStaticSetter(StaticSetterNode* node, bool result_is_needed);
365 Definition* BuildStoreStaticField(StoreStaticFieldNode* node, 367 Definition* BuildStoreStaticField(StoreStaticFieldNode* node,
366 bool result_is_needed); 368 bool result_is_needed);
367 369
368 ClosureCallInstr* BuildClosureCall(ClosureCallNode* node); 370 ClosureCallInstr* BuildClosureCall(ClosureCallNode* node);
369 371
370 Value* BuildNullValue(); 372 Value* BuildNullValue();
371 373
372 // Returns true if the run-time type check can be eliminated. 374 // Returns true if the run-time type check can be eliminated.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 // Output parameters. 515 // Output parameters.
514 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 516 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
515 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 517 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
516 518
517 intptr_t condition_token_pos_; 519 intptr_t condition_token_pos_;
518 }; 520 };
519 521
520 } // namespace dart 522 } // namespace dart
521 523
522 #endif // VM_FLOW_GRAPH_BUILDER_H_ 524 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698