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

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

Issue 1756403002: VM: Add smi fast path operations for precompiled code (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments 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/object.cc ('k') | runtime/vm/stack_frame.cc » ('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 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 // The bit map representation is optimized for dense and small bit maps, without 1247 // The bit map representation is optimized for dense and small bit maps, without
1248 // any upper bound. 1248 // any upper bound.
1249 class RawStackmap : public RawObject { 1249 class RawStackmap : public RawObject {
1250 RAW_HEAP_OBJECT_IMPLEMENTATION(Stackmap); 1250 RAW_HEAP_OBJECT_IMPLEMENTATION(Stackmap);
1251 1251
1252 // Regarding changing this to a bitfield: ARM64 requires register_bit_count_ 1252 // Regarding changing this to a bitfield: ARM64 requires register_bit_count_
1253 // to be as large as 96, meaning 7 bits, leaving 25 bits for the length, or 1253 // to be as large as 96, meaning 7 bits, leaving 25 bits for the length, or
1254 // as large as ~33 million entries. If that is sufficient, then these two 1254 // as large as ~33 million entries. If that is sufficient, then these two
1255 // fields can be merged into a BitField. 1255 // fields can be merged into a BitField.
1256 int32_t length_; // Length of payload, in bits. 1256 int32_t length_; // Length of payload, in bits.
1257 int32_t register_bit_count_; // Live register bits, included in length_. 1257 int32_t slow_path_bit_count_; // Slow path live values, included in length_.
1258 1258
1259 // Offset from code entry point corresponding to this stack map 1259 // Offset from code entry point corresponding to this stack map
1260 // representation. 1260 // representation.
1261 uint32_t pc_offset_; 1261 uint32_t pc_offset_;
1262 1262
1263 // Variable length data follows here (bitmap of the stack layout). 1263 // Variable length data follows here (bitmap of the stack layout).
1264 uint8_t* data() { OPEN_ARRAY_START(uint8_t, uint8_t); } 1264 uint8_t* data() { OPEN_ARRAY_START(uint8_t, uint8_t); }
1265 const uint8_t* data() const { OPEN_ARRAY_START(uint8_t, uint8_t); } 1265 const uint8_t* data() const { OPEN_ARRAY_START(uint8_t, uint8_t); }
1266 1266
1267 friend class SnapshotReader; 1267 friend class SnapshotReader;
(...skipping 1087 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/object.cc ('k') | runtime/vm/stack_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698