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

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

Issue 26682003: Cache number of type arguments in class object instead of recalculating it. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.cc » ('j') | runtime/vm/object.cc » ('J')
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_CLASS_FINALIZER_H_ 5 #ifndef VM_CLASS_FINALIZER_H_
6 #define VM_CLASS_FINALIZER_H_ 6 #define VM_CLASS_FINALIZER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 10
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 static void ReportMalformedType(const Error& prev_error, 148 static void ReportMalformedType(const Error& prev_error,
149 const Script& script, 149 const Script& script,
150 const Type& type, 150 const Type& type,
151 const char* format, 151 const char* format,
152 va_list args); 152 va_list args);
153 static void ReportError(const Error& error); 153 static void ReportError(const Error& error);
154 static void ReportError(const Error& prev_error, 154 static void ReportError(const Error& prev_error,
155 const Script& script, 155 const Script& script,
156 intptr_t token_index, 156 intptr_t token_index,
157 const char* format, ...) PRINTF_ATTRIBUTE(4, 5); 157 const char* format, ...) PRINTF_ATTRIBUTE(4, 5);
158 static void ReportError(const char* format, ...) PRINTF_ATTRIBUTE(1, 2);
159 158
160 // Verify implicit offsets recorded in the VM for direct access to fields of 159 // Verify implicit offsets recorded in the VM for direct access to fields of
161 // Dart instances (e.g: _TypedListView, _ByteDataView). 160 // Dart instances (e.g: _TypedListView, _ByteDataView).
162 static void VerifyImplicitFieldOffsets(); 161 static void VerifyImplicitFieldOffsets();
163 }; 162 };
164 163
165 } // namespace dart 164 } // namespace dart
166 165
167 #endif // VM_CLASS_FINALIZER_H_ 166 #endif // VM_CLASS_FINALIZER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698