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

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

Issue 1758153002: Tree-shake consts. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: no closure call bit on icdata anymore either Created 4 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
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | tests/co19/co19-runtime.status » ('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_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 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 RawArray* args_descriptor_; // Arguments descriptor. 1448 RawArray* args_descriptor_; // Arguments descriptor.
1449 RawObject** to_precompiled_snapshot() { 1449 RawObject** to_precompiled_snapshot() {
1450 return reinterpret_cast<RawObject**>(&ptr()->args_descriptor_); 1450 return reinterpret_cast<RawObject**>(&ptr()->args_descriptor_);
1451 } 1451 }
1452 RawObject* owner_; // Parent/calling function or original IC of cloned IC. 1452 RawObject* owner_; // Parent/calling function or original IC of cloned IC.
1453 RawObject** to() { 1453 RawObject** to() {
1454 return reinterpret_cast<RawObject**>(&ptr()->owner_); 1454 return reinterpret_cast<RawObject**>(&ptr()->owner_);
1455 } 1455 }
1456 int32_t deopt_id_; // Deoptimization id corresponding to this IC. 1456 int32_t deopt_id_; // Deoptimization id corresponding to this IC.
1457 uint32_t state_bits_; // Number of arguments tested in IC, deopt reasons, 1457 uint32_t state_bits_; // Number of arguments tested in IC, deopt reasons,
1458 // is closure call, JS warning issued, range feedback. 1458 // range feedback.
1459 }; 1459 };
1460 1460
1461 1461
1462 class RawMegamorphicCache : public RawObject { 1462 class RawMegamorphicCache : public RawObject {
1463 RAW_HEAP_OBJECT_IMPLEMENTATION(MegamorphicCache); 1463 RAW_HEAP_OBJECT_IMPLEMENTATION(MegamorphicCache);
1464 1464
1465 RawObject** from() { 1465 RawObject** from() {
1466 return reinterpret_cast<RawObject**>(&ptr()->buckets_); 1466 return reinterpret_cast<RawObject**>(&ptr()->buckets_);
1467 } 1467 }
1468 RawArray* buckets_; 1468 RawArray* buckets_;
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
2355 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2355 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2356 kTypedDataInt8ArrayViewCid + 15); 2356 kTypedDataInt8ArrayViewCid + 15);
2357 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2357 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2358 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2358 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2359 return (kNullCid - kTypedDataInt8ArrayCid); 2359 return (kNullCid - kTypedDataInt8ArrayCid);
2360 } 2360 }
2361 2361
2362 } // namespace dart 2362 } // namespace dart
2363 2363
2364 #endif // VM_RAW_OBJECT_H_ 2364 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698