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

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

Issue 266633007: Merge ConstantInstr -> UnboxDouble to UnboxedConstant. Reduces register usage and allows for variou… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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') | runtime/vm/flow_graph_builder.cc » ('J')
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 "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 intptr_t args_pushed() const { return args_pushed_; } 201 intptr_t args_pushed() const { return args_pushed_; }
202 void add_args_pushed(intptr_t n) { args_pushed_ += n; } 202 void add_args_pushed(intptr_t n) { args_pushed_ += n; }
203 203
204 NestedStatement* nesting_stack() const { return nesting_stack_; } 204 NestedStatement* nesting_stack() const { return nesting_stack_; }
205 205
206 // When compiling for OSR, remove blocks that are not reachable from the 206 // When compiling for OSR, remove blocks that are not reachable from the
207 // OSR entry point. 207 // OSR entry point.
208 void PruneUnreachable(); 208 void PruneUnreachable();
209 209
210 // Returns address where the constant 'value' is stored or 0 if not found.
211 static uword FindDoubleConstant(double value);
212
210 private: 213 private:
211 friend class NestedStatement; // Explicit access to nesting_stack_. 214 friend class NestedStatement; // Explicit access to nesting_stack_.
212 215
213 intptr_t parameter_count() const { 216 intptr_t parameter_count() const {
214 return num_copied_params_ + num_non_copied_params_; 217 return num_copied_params_ + num_non_copied_params_;
215 } 218 }
216 intptr_t variable_count() const { 219 intptr_t variable_count() const {
217 return parameter_count() + num_stack_locals_; 220 return parameter_count() + num_stack_locals_;
218 } 221 }
219 222
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 // Output parameters. 567 // Output parameters.
565 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 568 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
566 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 569 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
567 570
568 intptr_t condition_token_pos_; 571 intptr_t condition_token_pos_;
569 }; 572 };
570 573
571 } // namespace dart 574 } // namespace dart
572 575
573 #endif // VM_FLOW_GRAPH_BUILDER_H_ 576 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | runtime/vm/flow_graph_builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698