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

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

Issue 24837002: Optimize string interpolation by running it at compile time if all inputs are constant. This is don… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 Definition* BuildLoadExprTemp(); 271 Definition* BuildLoadExprTemp();
272 272
273 Definition* BuildStoreLocal(const LocalVariable& local, 273 Definition* BuildStoreLocal(const LocalVariable& local,
274 Value* value, 274 Value* value,
275 bool result_is_needed); 275 bool result_is_needed);
276 Definition* BuildLoadLocal(const LocalVariable& local); 276 Definition* BuildLoadLocal(const LocalVariable& local);
277 277
278 void HandleStoreLocal(StoreLocalNode* node, bool result_is_needed); 278 void HandleStoreLocal(StoreLocalNode* node, bool result_is_needed);
279 279
280 // Helpers for translating parts of the AST. 280 // Helpers for translating parts of the AST.
281 void TranslateArgumentList(const ArgumentListNode& node,
282 ZoneGrowableArray<Value*>* values);
283 void BuildPushArguments(const ArgumentListNode& node, 281 void BuildPushArguments(const ArgumentListNode& node,
284 ZoneGrowableArray<PushArgumentInstr*>* values); 282 ZoneGrowableArray<PushArgumentInstr*>* values);
285 283
286 // Creates an instantiated type argument vector used in preparation of an 284 // Creates an instantiated type argument vector used in preparation of an
287 // allocation call. 285 // allocation call.
288 // May be called only if allocating an object of a parameterized class. 286 // May be called only if allocating an object of a parameterized class.
289 Value* BuildInstantiatedTypeArguments( 287 Value* BuildInstantiatedTypeArguments(
290 intptr_t token_pos, 288 intptr_t token_pos,
291 const AbstractTypeArguments& type_arguments); 289 const AbstractTypeArguments& type_arguments);
292 290
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 // Output parameters. 525 // Output parameters.
528 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 526 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
529 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 527 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
530 528
531 intptr_t condition_token_pos_; 529 intptr_t condition_token_pos_;
532 }; 530 };
533 531
534 } // namespace dart 532 } // namespace dart
535 533
536 #endif // VM_FLOW_GRAPH_BUILDER_H_ 534 #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