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

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

Issue 102283004: Fix invalid aliasing in type propagation of AssertAssignable. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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/flow_graph_type_propagator.cc ('k') | no next file » | 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) 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_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_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 2611 matching lines...) Expand 10 before | Expand all | Expand 10 after
2622 dst_name_(dst_name) { 2622 dst_name_(dst_name) {
2623 ASSERT(!dst_type.IsNull()); 2623 ASSERT(!dst_type.IsNull());
2624 ASSERT(!dst_name.IsNull()); 2624 ASSERT(!dst_name.IsNull());
2625 SetInputAt(0, value); 2625 SetInputAt(0, value);
2626 SetInputAt(1, instantiator); 2626 SetInputAt(1, instantiator);
2627 SetInputAt(2, instantiator_type_arguments); 2627 SetInputAt(2, instantiator_type_arguments);
2628 } 2628 }
2629 2629
2630 DECLARE_INSTRUCTION(AssertAssignable) 2630 DECLARE_INSTRUCTION(AssertAssignable)
2631 virtual CompileType* ComputeInitialType() const; 2631 virtual CompileType* ComputeInitialType() const;
2632 virtual bool RecomputeType();
2632 2633
2633 Value* value() const { return inputs_[0]; } 2634 Value* value() const { return inputs_[0]; }
2634 Value* instantiator() const { return inputs_[1]; } 2635 Value* instantiator() const { return inputs_[1]; }
2635 Value* instantiator_type_arguments() const { return inputs_[2]; } 2636 Value* instantiator_type_arguments() const { return inputs_[2]; }
2636 2637
2637 intptr_t token_pos() const { return token_pos_; } 2638 intptr_t token_pos() const { return token_pos_; }
2638 const AbstractType& dst_type() const { return dst_type_; } 2639 const AbstractType& dst_type() const { return dst_type_; }
2639 void set_dst_type(const AbstractType& dst_type) { 2640 void set_dst_type(const AbstractType& dst_type) {
2640 dst_type_ = dst_type.raw(); 2641 dst_type_ = dst_type.raw();
2641 } 2642 }
(...skipping 4411 matching lines...) Expand 10 before | Expand all | Expand 10 after
7053 ForwardInstructionIterator* current_iterator_; 7054 ForwardInstructionIterator* current_iterator_;
7054 7055
7055 private: 7056 private:
7056 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 7057 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
7057 }; 7058 };
7058 7059
7059 7060
7060 } // namespace dart 7061 } // namespace dart
7061 7062
7062 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 7063 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698