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

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

Issue 1851653002: Fix bug in receiver-phi computation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | runtime/vm/flow_graph.cc » ('j') | runtime/vm/flow_graph.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_H_ 5 #ifndef VM_FLOW_GRAPH_H_
6 #define VM_FLOW_GRAPH_H_ 6 #define VM_FLOW_GRAPH_H_
7 7
8 #include "vm/bit_vector.h" 8 #include "vm/bit_vector.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 #include "vm/hash_map.h" 10 #include "vm/hash_map.h"
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 void InsertConversionsFor(Definition* def); 350 void InsertConversionsFor(Definition* def);
351 void ConvertUse(Value* use, Representation from); 351 void ConvertUse(Value* use, Representation from);
352 void ConvertEnvironmentUse(Value* use, Representation from); 352 void ConvertEnvironmentUse(Value* use, Representation from);
353 void InsertConversion(Representation from, 353 void InsertConversion(Representation from,
354 Representation to, 354 Representation to,
355 Value* use, 355 Value* use,
356 bool is_environment_use); 356 bool is_environment_use);
357 357
358 bool IsReceiver(Definition* def) const; 358 bool IsReceiver(Definition* def) const;
359 void ComputeIsReceiverRecursive(PhiInstr* phi, BitVector* processed) const; 359 void ComputeIsReceiver() const;
360 360
361 Thread* thread_; 361 Thread* thread_;
362 362
363 // DiscoverBlocks computes parent_ and assigned_vars_ which are then used 363 // DiscoverBlocks computes parent_ and assigned_vars_ which are then used
364 // if/when computing SSA. 364 // if/when computing SSA.
365 GrowableArray<intptr_t> parent_; 365 GrowableArray<intptr_t> parent_;
366 GrowableArray<BitVector*> assigned_vars_; 366 GrowableArray<BitVector*> assigned_vars_;
367 367
368 intptr_t current_ssa_temp_index_; 368 intptr_t current_ssa_temp_index_;
369 intptr_t max_block_id_; 369 intptr_t max_block_id_;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 539
540 private: 540 private:
541 GrowableArray<Definition*> defs_; 541 GrowableArray<Definition*> defs_;
542 BitVector* contains_vector_; 542 BitVector* contains_vector_;
543 }; 543 };
544 544
545 545
546 } // namespace dart 546 } // namespace dart
547 547
548 #endif // VM_FLOW_GRAPH_H_ 548 #endif // VM_FLOW_GRAPH_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph.cc » ('j') | runtime/vm/flow_graph.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698