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

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

Issue 10918016: Removed handle creation and inlined two field index checks (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/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/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 423
424 cpp_vtable handle_vtable_; 424 cpp_vtable handle_vtable_;
425 intptr_t instance_size_; // Size if fixed length or 0 if variable length. 425 intptr_t instance_size_; // Size if fixed length or 0 if variable length.
426 intptr_t id_; // Class Id, also index in the class table. 426 intptr_t id_; // Class Id, also index in the class table.
427 intptr_t type_arguments_instance_field_offset_; // May be kNoTypeArguments. 427 intptr_t type_arguments_instance_field_offset_; // May be kNoTypeArguments.
428 intptr_t next_field_offset_; // Offset of the next instance field. 428 intptr_t next_field_offset_; // Offset of the next instance field.
429 intptr_t num_native_fields_; // Number of native fields in class. 429 intptr_t num_native_fields_; // Number of native fields in class.
430 intptr_t token_pos_; 430 intptr_t token_pos_;
431 uint8_t state_bits_; // state, is_const, is_interface. 431 uint8_t state_bits_; // state, is_const, is_interface.
432 432
433 friend class Instance;
433 friend class Object; 434 friend class Object;
434 friend class RawInstance; 435 friend class RawInstance;
435 friend class RawInstructions; 436 friend class RawInstructions;
436 friend class SnapshotReader; 437 friend class SnapshotReader;
437 }; 438 };
438 439
439 440
440 class RawUnresolvedClass : public RawObject { 441 class RawUnresolvedClass : public RawObject {
441 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass); 442 RAW_HEAP_OBJECT_IMPLEMENTATION(UnresolvedClass);
442 443
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 kExternalUint64ArrayCid == kByteArrayCid + 18 && 1586 kExternalUint64ArrayCid == kByteArrayCid + 18 &&
1586 kExternalFloat32ArrayCid == kByteArrayCid + 19 && 1587 kExternalFloat32ArrayCid == kByteArrayCid + 19 &&
1587 kExternalFloat64ArrayCid == kByteArrayCid + 20 && 1588 kExternalFloat64ArrayCid == kByteArrayCid + 20 &&
1588 kStacktraceCid == kByteArrayCid + 21); 1589 kStacktraceCid == kByteArrayCid + 21);
1589 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); 1590 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid);
1590 } 1591 }
1591 1592
1592 } // namespace dart 1593 } // namespace dart
1593 1594
1594 #endif // VM_RAW_OBJECT_H_ 1595 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698