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

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

Issue 11358052: Various little cleanups to avoid excessive allocation of handles. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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_optimizer.cc ('k') | runtime/vm/intermediate_language_ia32.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_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 2040 matching lines...) Expand 10 before | Expand all | Expand 10 after
2051 } 2051 }
2052 2052
2053 DECLARE_INSTRUCTION(InstanceCall) 2053 DECLARE_INSTRUCTION(InstanceCall)
2054 virtual RawAbstractType* CompileType() const; 2054 virtual RawAbstractType* CompileType() const;
2055 2055
2056 const ICData* ic_data() const { return ic_data_; } 2056 const ICData* ic_data() const { return ic_data_; }
2057 bool HasICData() const { 2057 bool HasICData() const {
2058 return (ic_data() != NULL) && !ic_data()->IsNull(); 2058 return (ic_data() != NULL) && !ic_data()->IsNull();
2059 } 2059 }
2060 2060
2061 // ICData can be replaced by optimizer.
2062 void set_ic_data(const ICData* value) { ic_data_ = value; }
2063
2061 intptr_t token_pos() const { return token_pos_; } 2064 intptr_t token_pos() const { return token_pos_; }
2062 const String& function_name() const { return function_name_; } 2065 const String& function_name() const { return function_name_; }
2063 Token::Kind token_kind() const { return token_kind_; } 2066 Token::Kind token_kind() const { return token_kind_; }
2064 virtual intptr_t ArgumentCount() const { return arguments_->length(); } 2067 virtual intptr_t ArgumentCount() const { return arguments_->length(); }
2065 PushArgumentInstr* ArgumentAt(intptr_t index) const { 2068 PushArgumentInstr* ArgumentAt(intptr_t index) const {
2066 return (*arguments_)[index]; 2069 return (*arguments_)[index];
2067 } 2070 }
2068 const Array& argument_names() const { return argument_names_; } 2071 const Array& argument_names() const { return argument_names_; }
2069 intptr_t checked_argument_count() const { return checked_argument_count_; } 2072 intptr_t checked_argument_count() const { return checked_argument_count_; }
2070 2073
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after
4246 ForwardInstructionIterator* current_iterator_; 4249 ForwardInstructionIterator* current_iterator_;
4247 4250
4248 private: 4251 private:
4249 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4252 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4250 }; 4253 };
4251 4254
4252 4255
4253 } // namespace dart 4256 } // namespace dart
4254 4257
4255 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4258 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698