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

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

Issue 19721004: Allow inlining of closures with a context change. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 | « no previous file | 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } 341 }
342 342
343 // Returns a local variable index for a temporary local that is 343 // Returns a local variable index for a temporary local that is
344 // on top of the current expression stack. 344 // on top of the current expression stack.
345 intptr_t GetCurrentTempLocalIndex() const; 345 intptr_t GetCurrentTempLocalIndex() const;
346 346
347 Value* BuildObjectAllocation(ConstructorCallNode* node); 347 Value* BuildObjectAllocation(ConstructorCallNode* node);
348 void BuildConstructorCall(ConstructorCallNode* node, 348 void BuildConstructorCall(ConstructorCallNode* node,
349 PushArgumentInstr* alloc_value); 349 PushArgumentInstr* alloc_value);
350 350
351 void BuildStoreContext(const LocalVariable& variable); 351 void BuildSaveContext(const LocalVariable& variable);
352 void BuildLoadContext(const LocalVariable& variable); 352 void BuildRestoreContext(const LocalVariable& variable);
353 353
354 void BuildThrowNode(ThrowNode* node); 354 void BuildThrowNode(ThrowNode* node);
355 355
356 StaticCallInstr* BuildStaticNoSuchMethodCall( 356 StaticCallInstr* BuildStaticNoSuchMethodCall(
357 const Class& target_class, 357 const Class& target_class,
358 AstNode* receiver, 358 AstNode* receiver,
359 const String& method_name, 359 const String& method_name,
360 ArgumentListNode* method_arguments, 360 ArgumentListNode* method_arguments,
361 bool save_last_arg); 361 bool save_last_arg);
362 362
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 // Output parameters. 517 // Output parameters.
518 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 518 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
519 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 519 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
520 520
521 intptr_t condition_token_pos_; 521 intptr_t condition_token_pos_;
522 }; 522 };
523 523
524 } // namespace dart 524 } // namespace dart
525 525
526 #endif // VM_FLOW_GRAPH_BUILDER_H_ 526 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698