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

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

Issue 11635017: Set kArrayCid as ResultCid for CreateArray instruction. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
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_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 3015 matching lines...) Expand 10 before | Expand all | Expand 10 after
3026 PushArgumentInstr* ArgumentAt(intptr_t i) const { return (*arguments_)[i]; } 3026 PushArgumentInstr* ArgumentAt(intptr_t i) const { return (*arguments_)[i]; }
3027 const AbstractType& type() const { return type_; } 3027 const AbstractType& type() const { return type_; }
3028 Value* element_type() const { return inputs_[0]; } 3028 Value* element_type() const { return inputs_[0]; }
3029 3029
3030 virtual void PrintOperandsTo(BufferFormatter* f) const; 3030 virtual void PrintOperandsTo(BufferFormatter* f) const;
3031 3031
3032 virtual bool CanDeoptimize() const { return false; } 3032 virtual bool CanDeoptimize() const { return false; }
3033 3033
3034 virtual bool HasSideEffect() const { return true; } 3034 virtual bool HasSideEffect() const { return true; }
3035 3035
3036 virtual intptr_t ResultCid() const { return kDynamicCid; } 3036 virtual intptr_t ResultCid() const { return kArrayCid; }
3037 3037
3038 private: 3038 private:
3039 const intptr_t token_pos_; 3039 const intptr_t token_pos_;
3040 ZoneGrowableArray<PushArgumentInstr*>* const arguments_; 3040 ZoneGrowableArray<PushArgumentInstr*>* const arguments_;
3041 const AbstractType& type_; 3041 const AbstractType& type_;
3042 3042
3043 DISALLOW_COPY_AND_ASSIGN(CreateArrayInstr); 3043 DISALLOW_COPY_AND_ASSIGN(CreateArrayInstr);
3044 }; 3044 };
3045 3045
3046 3046
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
4354 ForwardInstructionIterator* current_iterator_; 4354 ForwardInstructionIterator* current_iterator_;
4355 4355
4356 private: 4356 private:
4357 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4357 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4358 }; 4358 };
4359 4359
4360 4360
4361 } // namespace dart 4361 } // namespace dart
4362 4362
4363 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4363 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« runtime/vm/flow_graph_optimizer.cc ('K') | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698