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

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

Issue 807593002: Merge RawICData::range_feedback_ field into RawICData::state_bits_. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
« runtime/vm/object.cc ('K') | « runtime/vm/object.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/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 } 1274 }
1275 RawFunction* owner_; // Parent/calling function of this IC. 1275 RawFunction* owner_; // Parent/calling function of this IC.
1276 RawString* target_name_; // Name of target function. 1276 RawString* target_name_; // Name of target function.
1277 RawArray* args_descriptor_; // Arguments descriptor. 1277 RawArray* args_descriptor_; // Arguments descriptor.
1278 RawArray* ic_data_; // Contains class-ids, target and count. 1278 RawArray* ic_data_; // Contains class-ids, target and count.
1279 RawObject** to() { 1279 RawObject** to() {
1280 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); 1280 return reinterpret_cast<RawObject**>(&ptr()->ic_data_);
1281 } 1281 }
1282 int32_t deopt_id_; // Deoptimization id corresponding to this IC. 1282 int32_t deopt_id_; // Deoptimization id corresponding to this IC.
1283 uint32_t state_bits_; // Number of arguments tested in IC, deopt reasons, 1283 uint32_t state_bits_; // Number of arguments tested in IC, deopt reasons,
1284 // is closure call, JS warning issued. 1284 // is closure call, JS warning issued, range feedback.
1285 uint32_t range_feedback_;
1286 }; 1285 };
1287 1286
1288 1287
1289 class RawMegamorphicCache : public RawObject { 1288 class RawMegamorphicCache : public RawObject {
1290 RAW_HEAP_OBJECT_IMPLEMENTATION(MegamorphicCache); 1289 RAW_HEAP_OBJECT_IMPLEMENTATION(MegamorphicCache);
1291 1290
1292 RawObject** from() { 1291 RawObject** from() {
1293 return reinterpret_cast<RawObject**>(&ptr()->buckets_); 1292 return reinterpret_cast<RawObject**>(&ptr()->buckets_);
1294 } 1293 }
1295 RawArray* buckets_; 1294 RawArray* buckets_;
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
2127 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2126 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2128 kTypedDataInt8ArrayViewCid + 15); 2127 kTypedDataInt8ArrayViewCid + 15);
2129 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2128 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2130 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2129 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2131 return (kNullCid - kTypedDataInt8ArrayCid); 2130 return (kNullCid - kTypedDataInt8ArrayCid);
2132 } 2131 }
2133 2132
2134 } // namespace dart 2133 } // namespace dart
2135 2134
2136 #endif // VM_RAW_OBJECT_H_ 2135 #endif // VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698