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

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

Issue 1377543003: Clean up serialization of RawFunction, RawCode (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code-review 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
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 RawObject* owner_; // Class or patch class or mixin class 766 RawObject* owner_; // Class or patch class or mixin class
767 // where this function is defined. 767 // where this function is defined.
768 RawAbstractType* result_type_; 768 RawAbstractType* result_type_;
769 RawArray* parameter_types_; 769 RawArray* parameter_types_;
770 RawArray* parameter_names_; 770 RawArray* parameter_names_;
771 RawObject* data_; // Additional data specific to the function kind. 771 RawObject* data_; // Additional data specific to the function kind.
772 RawObject** to_snapshot() { 772 RawObject** to_snapshot() {
773 return reinterpret_cast<RawObject**>(&ptr()->data_); 773 return reinterpret_cast<RawObject**>(&ptr()->data_);
774 } 774 }
775 RawArray* ic_data_array_; // ICData of unoptimized code. 775 RawArray* ic_data_array_; // ICData of unoptimized code.
776 RawObject** to_optimized_snapshot() {
777 return reinterpret_cast<RawObject**>(&ptr()->ic_data_array_);
778 }
779 RawObject** to_no_code() { 776 RawObject** to_no_code() {
780 return reinterpret_cast<RawObject**>(&ptr()->ic_data_array_); 777 return reinterpret_cast<RawObject**>(&ptr()->ic_data_array_);
781 } 778 }
782 RawCode* code_; // Currently active code. 779 RawCode* code_; // Currently active code.
783 RawCode* unoptimized_code_; // Unoptimized code, keep it after optimization. 780 RawCode* unoptimized_code_; // Unoptimized code, keep it after optimization.
784 RawObject** to() { 781 RawObject** to() {
785 return reinterpret_cast<RawObject**>(&ptr()->unoptimized_code_); 782 return reinterpret_cast<RawObject**>(&ptr()->unoptimized_code_);
786 } 783 }
787 uword entry_point_; 784 uword entry_point_;
788 785
(...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after
2232 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2229 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2233 kTypedDataInt8ArrayViewCid + 15); 2230 kTypedDataInt8ArrayViewCid + 15);
2234 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2231 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2235 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2232 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2236 return (kNullCid - kTypedDataInt8ArrayCid); 2233 return (kNullCid - kTypedDataInt8ArrayCid);
2237 } 2234 }
2238 2235
2239 } // namespace dart 2236 } // namespace dart
2240 2237
2241 #endif // VM_RAW_OBJECT_H_ 2238 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698