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

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

Issue 183973035: More performance fixes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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/parser.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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 } 1376 }
1377 RawObject** to(intptr_t length) { 1377 RawObject** to(intptr_t length) {
1378 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]); 1378 return reinterpret_cast<RawObject**>(&ptr()->data()[length - 1]);
1379 } 1379 }
1380 1380
1381 friend class RawCode; 1381 friend class RawCode;
1382 friend class RawImmutableArray; 1382 friend class RawImmutableArray;
1383 friend class SnapshotReader; 1383 friend class SnapshotReader;
1384 friend class GrowableObjectArray; 1384 friend class GrowableObjectArray;
1385 friend class Object; 1385 friend class Object;
1386 friend class ICData; // For high performance access.
1387 friend class SubtypeTestCache; // For high performance access.
1386 }; 1388 };
1387 1389
1388 1390
1389 class RawImmutableArray : public RawArray { 1391 class RawImmutableArray : public RawArray {
1390 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); 1392 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray);
1391 1393
1392 friend class SnapshotReader; 1394 friend class SnapshotReader;
1393 }; 1395 };
1394 1396
1395 1397
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 // Make sure this is updated when new TypedData types are added. 1773 // Make sure this is updated when new TypedData types are added.
1772 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1774 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1773 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); 1775 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15);
1774 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1776 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1775 return (kNullCid - kTypedDataInt8ArrayCid); 1777 return (kNullCid - kTypedDataInt8ArrayCid);
1776 } 1778 }
1777 1779
1778 } // namespace dart 1780 } // namespace dart
1779 1781
1780 #endif // VM_RAW_OBJECT_H_ 1782 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698