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

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

Issue 1410573006: Cache initial (empty) ic_data arrays so that they are not repeatedly allocated. Factor out descript… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: address comment Created 5 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
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | no next file » | 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_SNAPSHOT_IDS_H_ 5 #ifndef VM_SNAPSHOT_IDS_H_
6 #define VM_SNAPSHOT_IDS_H_ 6 #define VM_SNAPSHOT_IDS_H_
7 7
8 #include "vm/raw_object.h" 8 #include "vm/raw_object.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 kExtractorParameterNames, 47 kExtractorParameterNames,
48 kEmptyContextScopeObject, 48 kEmptyContextScopeObject,
49 kImplicitClosureScopeObject, 49 kImplicitClosureScopeObject,
50 kEmptyObjectPool, 50 kEmptyObjectPool,
51 kEmptyDescriptors, 51 kEmptyDescriptors,
52 kEmptyVarDescriptors, 52 kEmptyVarDescriptors,
53 kEmptyExceptionHandlers, 53 kEmptyExceptionHandlers,
54 kCachedArgumentsDescriptor0, 54 kCachedArgumentsDescriptor0,
55 kCachedArgumentsDescriptorN = (kCachedArgumentsDescriptor0 + 55 kCachedArgumentsDescriptorN = (kCachedArgumentsDescriptor0 +
56 ArgumentsDescriptor::kCachedDescriptorCount - 1), 56 ArgumentsDescriptor::kCachedDescriptorCount - 1),
57 kCachedICDataArray0,
58 kCachedICDataArrayN = (kCachedICDataArray0 +
59 ICData::kCachedICDataArrayCount - 1),
57 60
58 kInstanceObjectId, 61 kInstanceObjectId,
59 kStaticImplicitClosureObjectId, 62 kStaticImplicitClosureObjectId,
60 kMaxPredefinedObjectIds, 63 kMaxPredefinedObjectIds,
61 kInvalidIndex = -1, 64 kInvalidIndex = -1,
62 }; 65 };
63 66
64 } // namespace dart 67 } // namespace dart
65 68
66 #endif // VM_SNAPSHOT_IDS_H_ 69 #endif // VM_SNAPSHOT_IDS_H_
OLDNEW
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698