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

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
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 2027 matching lines...) Expand 10 before | Expand all | Expand 10 after
2038 } 2038 }
2039 2039
2040 DECLARE_INSTRUCTION(InstanceCall) 2040 DECLARE_INSTRUCTION(InstanceCall)
2041 virtual RawAbstractType* CompileType() const; 2041 virtual RawAbstractType* CompileType() const;
2042 2042
2043 const ICData* ic_data() const { return ic_data_; } 2043 const ICData* ic_data() const { return ic_data_; }
2044 bool HasICData() const { 2044 bool HasICData() const {
2045 return (ic_data() != NULL) && !ic_data()->IsNull(); 2045 return (ic_data() != NULL) && !ic_data()->IsNull();
2046 } 2046 }
2047 2047
2048 // ICData can be replaced by optimizer.
2049 void set_ic_data(const ICData* value) { ic_data_ = value; }
2050
2048 intptr_t token_pos() const { return token_pos_; } 2051 intptr_t token_pos() const { return token_pos_; }
2049 const String& function_name() const { return function_name_; } 2052 const String& function_name() const { return function_name_; }
2050 Token::Kind token_kind() const { return token_kind_; } 2053 Token::Kind token_kind() const { return token_kind_; }
2051 virtual intptr_t ArgumentCount() const { return arguments_->length(); } 2054 virtual intptr_t ArgumentCount() const { return arguments_->length(); }
2052 PushArgumentInstr* ArgumentAt(intptr_t index) const { 2055 PushArgumentInstr* ArgumentAt(intptr_t index) const {
2053 return (*arguments_)[index]; 2056 return (*arguments_)[index];
2054 } 2057 }
2055 const Array& argument_names() const { return argument_names_; } 2058 const Array& argument_names() const { return argument_names_; }
2056 intptr_t checked_argument_count() const { return checked_argument_count_; } 2059 intptr_t checked_argument_count() const { return checked_argument_count_; }
2057 2060
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after
4233 ForwardInstructionIterator* current_iterator_; 4236 ForwardInstructionIterator* current_iterator_;
4234 4237
4235 private: 4238 private:
4236 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4239 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4237 }; 4240 };
4238 4241
4239 4242
4240 } // namespace dart 4243 } // namespace dart
4241 4244
4242 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4245 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698