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/symbols.h

Issue 468793004: VM: Improve performance of method recognizer and unify the it with the intrinsifier. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | « runtime/vm/object.cc ('k') | runtime/vm/vm_sources.gypi » ('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_SYMBOLS_H_ 5 #ifndef VM_SYMBOLS_H_
6 #define VM_SYMBOLS_H_ 6 #define VM_SYMBOLS_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 #include "vm/snapshot_ids.h" 9 #include "vm/snapshot_ids.h"
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 V(Interpolate, "_interpolate") \ 56 V(Interpolate, "_interpolate") \
57 V(GetIterator, "iterator") \ 57 V(GetIterator, "iterator") \
58 V(NoSuchMethod, "noSuchMethod") \ 58 V(NoSuchMethod, "noSuchMethod") \
59 V(SavedCurrentContextVar, ":saved_current_context_var") \ 59 V(SavedCurrentContextVar, ":saved_current_context_var") \
60 V(SavedEntryContextVar, ":saved_entry_context_var") \ 60 V(SavedEntryContextVar, ":saved_entry_context_var") \
61 V(SavedTryContextVar, ":saved_try_context_var") \ 61 V(SavedTryContextVar, ":saved_try_context_var") \
62 V(ExceptionVar, ":exception_var") \ 62 V(ExceptionVar, ":exception_var") \
63 V(StackTraceVar, ":stack_trace_var") \ 63 V(StackTraceVar, ":stack_trace_var") \
64 V(ListLiteralElement, "list literal element") \ 64 V(ListLiteralElement, "list literal element") \
65 V(ForInIter, ":for-in-iter") \ 65 V(ForInIter, ":for-in-iter") \
66 V(ClosureFunctionField, ":function") \
67 V(ClosureContextField, ":context") \
68 V(Library, "library") \ 66 V(Library, "library") \
69 V(LoadLibrary, "loadLibrary") \ 67 V(LoadLibrary, "loadLibrary") \
70 V(_LibraryPrefix, "_LibraryPrefix") \ 68 V(_LibraryPrefix, "_LibraryPrefix") \
71 V(Async, "async") \ 69 V(Async, "async") \
72 V(AsyncCompleter, ":async_completer") \ 70 V(AsyncCompleter, ":async_completer") \
73 V(AsyncOperation, ":async_op") \ 71 V(AsyncOperation, ":async_op") \
74 V(AsyncOperationParam, ":async_result") \ 72 V(AsyncOperationParam, ":async_result") \
75 V(Future, "Future") \ 73 V(Future, "Future") \
76 V(FutureConstructor, "Future.") \ 74 V(FutureConstructor, "Future.") \
77 V(FutureThen, "then") \ 75 V(FutureThen, "then") \
78 V(Completer, "Completer") \ 76 V(Completer, "Completer") \
79 V(CompleterComplete, "complete") \ 77 V(CompleterComplete, "complete") \
80 V(CompleterConstructor, "Completer.") \ 78 V(CompleterConstructor, "Completer.") \
81 V(CompleterFuture, "future") \ 79 V(CompleterFuture, "future") \
82 V(Native, "native") \ 80 V(Native, "native") \
83 V(Import, "import") \
84 V(Source, "source") \
85 V(Class, "Class") \ 81 V(Class, "Class") \
86 V(Null, "Null") \ 82 V(Null, "Null") \
87 V(Dynamic, "dynamic") \ 83 V(Dynamic, "dynamic") \
88 V(Void, "void") \ 84 V(Void, "void") \
89 V(UnresolvedClass, "UnresolvedClass") \ 85 V(UnresolvedClass, "UnresolvedClass") \
90 V(Type, "_Type") \ 86 V(Type, "_Type") \
91 V(TypeRef, "_TypeRef") \ 87 V(TypeRef, "_TypeRef") \
92 V(TypeParameter, "_TypeParameter") \ 88 V(TypeParameter, "_TypeParameter") \
93 V(BoundedType, "_BoundedType") \ 89 V(BoundedType, "_BoundedType") \
94 V(MixinAppType, "_MixinAppType") \ 90 V(MixinAppType, "_MixinAppType") \
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 V(Object, "Object") \ 147 V(Object, "Object") \
152 V(Int, "int") \ 148 V(Int, "int") \
153 V(Double, "double") \ 149 V(Double, "double") \
154 V(_Float32x4, "_Float32x4") \ 150 V(_Float32x4, "_Float32x4") \
155 V(_Float64x2, "_Float64x2") \ 151 V(_Float64x2, "_Float64x2") \
156 V(_Int32x4, "_Int32x4") \ 152 V(_Int32x4, "_Int32x4") \
157 V(Float32x4, "Float32x4") \ 153 V(Float32x4, "Float32x4") \
158 V(Float64x2, "Float64x2") \ 154 V(Float64x2, "Float64x2") \
159 V(Int32x4, "Int32x4") \ 155 V(Int32x4, "Int32x4") \
160 V(Int8List, "Int8List") \ 156 V(Int8List, "Int8List") \
161 V(Int8ListFactory, "Int8List.") \
162 V(Uint8List, "Uint8List") \ 157 V(Uint8List, "Uint8List") \
163 V(Uint8ListFactory, "Uint8List.") \
164 V(Uint8ClampedList, "Uint8ClampedList") \ 158 V(Uint8ClampedList, "Uint8ClampedList") \
165 V(Uint8ClampedListFactory, "Uint8ClampedList.") \
166 V(Int16List, "Int16List") \ 159 V(Int16List, "Int16List") \
167 V(Int16ListFactory, "Int16List.") \
168 V(Uint16List, "Uint16List") \ 160 V(Uint16List, "Uint16List") \
169 V(Uint16ListFactory, "Uint16List.") \
170 V(Int32List, "Int32List") \ 161 V(Int32List, "Int32List") \
171 V(Int32ListFactory, "Int32List.") \
172 V(Uint32List, "Uint32List") \ 162 V(Uint32List, "Uint32List") \
173 V(Uint32ListFactory, "Uint32List.") \
174 V(Int64List, "Int64List") \ 163 V(Int64List, "Int64List") \
175 V(Int64ListFactory, "Int64List.") \
176 V(Uint64List, "Uint64List") \ 164 V(Uint64List, "Uint64List") \
177 V(Uint64ListFactory, "Uint64List.") \
178 V(Float32x4List, "Float32x4List") \ 165 V(Float32x4List, "Float32x4List") \
179 V(Float32x4ListFactory, "Float32x4List.") \
180 V(Int32x4List, "Int32x4List") \ 166 V(Int32x4List, "Int32x4List") \
181 V(Int32x4ListFactory, "Int32x4List.") \
182 V(Float64x2List, "Float64x2List") \ 167 V(Float64x2List, "Float64x2List") \
183 V(Float64x2ListFactory, "Float64x2List.") \
184 V(Float32List, "Float32List") \ 168 V(Float32List, "Float32List") \
185 V(Float32ListFactory, "Float32List.") \
186 V(Float64List, "Float64List") \ 169 V(Float64List, "Float64List") \
187 V(Float64ListFactory, "Float64List.") \
188 V(_Int8Array, "_Int8Array") \ 170 V(_Int8Array, "_Int8Array") \
189 V(_Int8ArrayFactory, "_Int8Array.") \ 171 V(_Int8ArrayFactory, "_Int8Array.") \
190 V(_Uint8Array, "_Uint8Array") \ 172 V(_Uint8Array, "_Uint8Array") \
191 V(_Uint8ArrayFactory, "_Uint8Array.") \ 173 V(_Uint8ArrayFactory, "_Uint8Array.") \
192 V(_Uint8ClampedArray, "_Uint8ClampedArray") \ 174 V(_Uint8ClampedArray, "_Uint8ClampedArray") \
193 V(_Uint8ClampedArrayFactory, "_Uint8ClampedArray.") \ 175 V(_Uint8ClampedArrayFactory, "_Uint8ClampedArray.") \
194 V(_Int16Array, "_Int16Array") \ 176 V(_Int16Array, "_Int16Array") \
195 V(_Int16ArrayFactory, "_Int16Array.") \ 177 V(_Int16ArrayFactory, "_Int16Array.") \
196 V(_Uint16Array, "_Uint16Array") \ 178 V(_Uint16Array, "_Uint16Array") \
197 V(_Uint16ArrayFactory, "_Uint16Array.") \ 179 V(_Uint16ArrayFactory, "_Uint16Array.") \
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 V(_ExternalInt64Array, "_ExternalInt64Array") \ 219 V(_ExternalInt64Array, "_ExternalInt64Array") \
238 V(_ExternalUint64Array, "_ExternalUint64Array") \ 220 V(_ExternalUint64Array, "_ExternalUint64Array") \
239 V(_ExternalFloat32x4Array, "_ExternalFloat32x4Array") \ 221 V(_ExternalFloat32x4Array, "_ExternalFloat32x4Array") \
240 V(_ExternalInt32x4Array, "_ExternalInt32x4Array") \ 222 V(_ExternalInt32x4Array, "_ExternalInt32x4Array") \
241 V(_ExternalFloat32Array, "_ExternalFloat32Array") \ 223 V(_ExternalFloat32Array, "_ExternalFloat32Array") \
242 V(_ExternalFloat64Array, "_ExternalFloat64Array") \ 224 V(_ExternalFloat64Array, "_ExternalFloat64Array") \
243 V(_ExternalFloat64x2Array, "_ExternalFloat64x2Array") \ 225 V(_ExternalFloat64x2Array, "_ExternalFloat64x2Array") \
244 V(ByteData, "ByteData") \ 226 V(ByteData, "ByteData") \
245 V(ByteDataDot, "ByteData.") \ 227 V(ByteDataDot, "ByteData.") \
246 V(ByteDataDot_view, "ByteData._view") \ 228 V(ByteDataDot_view, "ByteData._view") \
247 V(ByteDataDotview, "ByteData.view") \
248 V(_ByteDataView, "_ByteDataView") \ 229 V(_ByteDataView, "_ByteDataView") \
249 V(_ByteBuffer, "_ByteBuffer") \ 230 V(_ByteBuffer, "_ByteBuffer") \
250 V(_ByteBufferDot_New, "_ByteBuffer._New") \ 231 V(_ByteBufferDot_New, "_ByteBuffer._New") \
251 V(_WeakProperty, "_WeakProperty") \ 232 V(_WeakProperty, "_WeakProperty") \
252 V(_MirrorReference, "_MirrorReference") \ 233 V(_MirrorReference, "_MirrorReference") \
253 V(InvocationMirror, "_InvocationMirror") \ 234 V(InvocationMirror, "_InvocationMirror") \
254 V(AllocateInvocationMirror, "_allocateInvocationMirror") \ 235 V(AllocateInvocationMirror, "_allocateInvocationMirror") \
255 V(toString, "toString") \ 236 V(toString, "toString") \
256 V(_lookupHandler, "_lookupHandler") \ 237 V(_lookupHandler, "_lookupHandler") \
257 V(_handleMessage, "_handleMessage") \ 238 V(_handleMessage, "_handleMessage") \
258 V(DotCreate, "._create") \ 239 V(DotCreate, "._create") \
259 V(DotWithType, "._withType") \ 240 V(DotWithType, "._withType") \
260 V(_get, "_get") \ 241 V(_get, "_get") \
261 V(RangeError, "RangeError") \ 242 V(RangeError, "RangeError") \
262 V(ArgumentError, "ArgumentError") \ 243 V(ArgumentError, "ArgumentError") \
263 V(FormatException, "FormatException") \ 244 V(FormatException, "FormatException") \
264 V(UnsupportedError, "UnsupportedError") \ 245 V(UnsupportedError, "UnsupportedError") \
265 V(StackOverflowError, "StackOverflowError") \ 246 V(StackOverflowError, "StackOverflowError") \
266 V(OutOfMemoryError, "OutOfMemoryError") \ 247 V(OutOfMemoryError, "OutOfMemoryError") \
267 V(InternalError, "_InternalError") \ 248 V(InternalError, "_InternalError") \
268 V(NullThrownError, "NullThrownError") \ 249 V(NullThrownError, "NullThrownError") \
269 V(IsolateSpawnException, "IsolateSpawnException") \ 250 V(IsolateSpawnException, "IsolateSpawnException") \
270 V(IsolateUnhandledException, "_IsolateUnhandledException") \ 251 V(IsolateUnhandledException, "_IsolateUnhandledException") \
271 V(JavascriptIntegerOverflowError, "_JavascriptIntegerOverflowError") \ 252 V(JavascriptIntegerOverflowError, "_JavascriptIntegerOverflowError") \
272 V(JavascriptCompatibilityError, "_JavascriptCompatibilityError") \ 253 V(JavascriptCompatibilityError, "_JavascriptCompatibilityError") \
273 V(_setupFullStackTrace, "_setupFullStackTrace") \ 254 V(_setupFullStackTrace, "_setupFullStackTrace") \
274 V(BooleanExpression, "boolean expression") \ 255 V(BooleanExpression, "boolean expression") \
275 V(Malformed, "malformed") \ 256 V(Malformed, "malformed") \
276 V(Malbounded, "malbounded") \ 257 V(Malbounded, "malbounded") \
277 V(InstanceOf, "InstanceOf") \
278 V(MegamorphicMiss, "megamorphic_miss") \ 258 V(MegamorphicMiss, "megamorphic_miss") \
279 V(CommaSpace, ", ") \ 259 V(CommaSpace, ", ") \
280 V(ColonSpace, ": ") \ 260 V(ColonSpace, ": ") \
281 V(RParenArrow, ") => ") \ 261 V(RParenArrow, ") => ") \
282 V(SpaceExtendsSpace, " extends ") \ 262 V(SpaceExtendsSpace, " extends ") \
283 V(SwitchExpr, ":switch_expr") \ 263 V(SwitchExpr, ":switch_expr") \
284 V(TwoNewlines, "\n\n") \ 264 V(TwoNewlines, "\n\n") \
285 V(TwoSpaces, " ") \ 265 V(TwoSpaces, " ") \
286 V(_instanceOf, "_instanceOf") \ 266 V(_instanceOf, "_instanceOf") \
287 V(_as, "_as") \ 267 V(_as, "_as") \
288 V(GetterPrefix, "get:") \ 268 V(GetterPrefix, "get:") \
289 V(SetterPrefix, "set:") \ 269 V(SetterPrefix, "set:") \
290 V(InitPrefix, "init:") \ 270 V(InitPrefix, "init:") \
291 V(PrivateGetterPrefix, "get:_") \
292 V(PrivateSetterPrefix, "set:_") \
293 V(_New, "_new") \ 271 V(_New, "_new") \
294 V(DartScheme, "dart:") \ 272 V(DartScheme, "dart:") \
295 V(DartSchemePrivate, "dart:_") \ 273 V(DartSchemePrivate, "dart:_") \
296 V(DartNativeWrappers, "dart:nativewrappers") \ 274 V(DartNativeWrappers, "dart:nativewrappers") \
297 V(DartNativeWrappersLibName, "dart.nativewrappers") \ 275 V(DartNativeWrappersLibName, "dart.nativewrappers") \
298 V(DartAsync, "dart:async") \
299 V(DartCore, "dart:core") \ 276 V(DartCore, "dart:core") \
300 V(DartCollection, "dart:collection") \ 277 V(DartCollection, "dart:collection") \
301 V(DartConvert, "dart:convert") \
302 V(DartInternal, "dart:_internal") \ 278 V(DartInternal, "dart:_internal") \
303 V(DartIsolate, "dart:isolate") \ 279 V(DartIsolate, "dart:isolate") \
304 V(DartMath, "dart:math") \
305 V(DartMirrors, "dart:mirrors") \ 280 V(DartMirrors, "dart:mirrors") \
306 V(DartTypedData, "dart:typed_data") \ 281 V(DartTypedData, "dart:typed_data") \
307 V(DartVMService, "dart:vmservice") \ 282 V(DartVMService, "dart:vmservice") \
308 V(DartProfiler, "dart:profiler") \ 283 V(DartProfiler, "dart:profiler") \
309 V(DartIOLibName, "dart.io") \ 284 V(DartIOLibName, "dart.io") \
310 V(_Random, "_Random") \ 285 V(_Random, "_Random") \
311 V(_state, "_state") \ 286 V(_state, "_state") \
312 V(_A, "_A") \ 287 V(_A, "_A") \
313 V(_stackTrace, "_stackTrace") \ 288 V(_stackTrace, "_stackTrace") \
314 V(_SpecialTypeMirror, "_SpecialTypeMirror") \ 289 V(_SpecialTypeMirror, "_SpecialTypeMirror") \
315 V(_LocalClassMirror, "_LocalClassMirror") \ 290 V(_LocalClassMirror, "_LocalClassMirror") \
316 V(_LocalFunctionTypeMirror, "_LocalFunctionTypeMirror") \ 291 V(_LocalFunctionTypeMirror, "_LocalFunctionTypeMirror") \
317 V(_LocalLibraryMirror, "_LocalLibraryMirror") \ 292 V(_LocalLibraryMirror, "_LocalLibraryMirror") \
318 V(_LocalLibraryDependencyMirror, "_LocalLibraryDependencyMirror") \ 293 V(_LocalLibraryDependencyMirror, "_LocalLibraryDependencyMirror") \
319 V(_LocalCombinatorMirror, "_LocalCombinatorMirror") \ 294 V(_LocalCombinatorMirror, "_LocalCombinatorMirror") \
320 V(_LocalMethodMirror, "_LocalMethodMirror") \ 295 V(_LocalMethodMirror, "_LocalMethodMirror") \
321 V(_LocalVariableMirror, "_LocalVariableMirror") \ 296 V(_LocalVariableMirror, "_LocalVariableMirror") \
322 V(_LocalParameterMirror, "_LocalParameterMirror") \ 297 V(_LocalParameterMirror, "_LocalParameterMirror") \
323 V(_LocalIsolateMirror, "_LocalIsolateMirror") \ 298 V(_LocalIsolateMirror, "_LocalIsolateMirror") \
324 V(_LocalMirrorSystem, "_LocalMirrorSystem") \ 299 V(_LocalMirrorSystem, "_LocalMirrorSystem") \
325 V(_LocalTypedefMirror, "_LocalTypedefMirror") \ 300 V(_LocalTypedefMirror, "_LocalTypedefMirror") \
326 V(_LocalTypeVariableMirror, "_LocalTypeVariableMirror") \ 301 V(_LocalTypeVariableMirror, "_LocalTypeVariableMirror") \
327 V(_SourceLocation, "_SourceLocation") \ 302 V(_SourceLocation, "_SourceLocation") \
328 V(hashCode, "get:hashCode") \ 303 V(hashCode, "get:hashCode") \
329 V(_leftShiftWithMask32, "_leftShiftWithMask32") \ 304 V(_leftShiftWithMask32, "_leftShiftWithMask32") \
330 V(OptimizedOut, "<optimized out>") \ 305 V(OptimizedOut, "<optimized out>") \
331 V(NotInitialized, "<not initialized>") \ 306 V(NotInitialized, "<not initialized>") \
332 V(AllocationStubFor, "Allocation stub for ") \ 307 V(AllocationStubFor, "Allocation stub for ") \
333 V(TempParam, ":temp_param") \ 308 V(TempParam, ":temp_param") \
334 V(UserTag, "UserTag") \
335 V(_UserTag, "_UserTag") \ 309 V(_UserTag, "_UserTag") \
336 V(Default, "Default") \ 310 V(Default, "Default") \
337 V(StubPrefix, "[Stub] ") \ 311 V(StubPrefix, "[Stub] ") \
338 V(ClassID, "ClassID") \ 312 V(ClassID, "ClassID") \
339 313
340 314
341 // Contains a list of frequently used strings in a canonicalized form. This 315 // Contains a list of frequently used strings in a canonicalized form. This
342 // list is kept in the vm_isolate in order to share the copy across isolates 316 // list is kept in the vm_isolate in order to share the copy across isolates
343 // without having to maintain copies in each isolate. 317 // without having to maintain copies in each isolate.
344 class Symbols : public AllStatic { 318 class Symbols : public AllStatic {
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 friend class SnapshotReader; 499 friend class SnapshotReader;
526 friend class SnapshotWriter; 500 friend class SnapshotWriter;
527 friend class ApiMessageReader; 501 friend class ApiMessageReader;
528 502
529 DISALLOW_COPY_AND_ASSIGN(Symbols); 503 DISALLOW_COPY_AND_ASSIGN(Symbols);
530 }; 504 };
531 505
532 } // namespace dart 506 } // namespace dart
533 507
534 #endif // VM_SYMBOLS_H_ 508 #endif // VM_SYMBOLS_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698