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

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

Issue 1420433004: Move selector and arguments descriptor into MegamorphicCache. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
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/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 1414
1415 1415
1416 class RawMegamorphicCache : public RawObject { 1416 class RawMegamorphicCache : public RawObject {
1417 RAW_HEAP_OBJECT_IMPLEMENTATION(MegamorphicCache); 1417 RAW_HEAP_OBJECT_IMPLEMENTATION(MegamorphicCache);
1418 1418
1419 RawObject** from() { 1419 RawObject** from() {
1420 return reinterpret_cast<RawObject**>(&ptr()->buckets_); 1420 return reinterpret_cast<RawObject**>(&ptr()->buckets_);
1421 } 1421 }
1422 RawArray* buckets_; 1422 RawArray* buckets_;
1423 RawSmi* mask_; 1423 RawSmi* mask_;
1424 RawString* target_name_; // Name of target function.
1425 RawArray* args_descriptor_; // Arguments descriptor.
1424 RawObject** to() { 1426 RawObject** to() {
1425 return reinterpret_cast<RawObject**>(&ptr()->mask_); 1427 return reinterpret_cast<RawObject**>(&ptr()->args_descriptor_);
1426 } 1428 }
1427 1429
1428 int32_t filled_entry_count_; 1430 int32_t filled_entry_count_;
1429 }; 1431 };
1430 1432
1431 1433
1432 class RawSubtypeTestCache : public RawObject { 1434 class RawSubtypeTestCache : public RawObject {
1433 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); 1435 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache);
1434 RawArray* cache_; 1436 RawArray* cache_;
1435 }; 1437 };
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
2265 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2267 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2266 kTypedDataInt8ArrayViewCid + 15); 2268 kTypedDataInt8ArrayViewCid + 15);
2267 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2269 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2268 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2270 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2269 return (kNullCid - kTypedDataInt8ArrayCid); 2271 return (kNullCid - kTypedDataInt8ArrayCid);
2270 } 2272 }
2271 2273
2272 } // namespace dart 2274 } // namespace dart
2273 2275
2274 #endif // VM_RAW_OBJECT_H_ 2276 #endif // VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/megamorphic_cache_table.cc ('K') | « runtime/vm/precompiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698