| OLD | NEW |
| 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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 | 520 |
| 521 | 521 |
| 522 class RawPatchClass : public RawObject { | 522 class RawPatchClass : public RawObject { |
| 523 private: | 523 private: |
| 524 RAW_HEAP_OBJECT_IMPLEMENTATION(PatchClass); | 524 RAW_HEAP_OBJECT_IMPLEMENTATION(PatchClass); |
| 525 | 525 |
| 526 RawObject** from() { | 526 RawObject** from() { |
| 527 return reinterpret_cast<RawObject**>(&ptr()->patched_class_); | 527 return reinterpret_cast<RawObject**>(&ptr()->patched_class_); |
| 528 } | 528 } |
| 529 RawClass* patched_class_; | 529 RawClass* patched_class_; |
| 530 RawScript* script_; | 530 RawClass* source_class_; |
| 531 RawObject** to() { | 531 RawObject** to() { |
| 532 return reinterpret_cast<RawObject**>(&ptr()->script_); | 532 return reinterpret_cast<RawObject**>(&ptr()->source_class_); |
| 533 } | 533 } |
| 534 }; | 534 }; |
| 535 | 535 |
| 536 | 536 |
| 537 class RawFunction : public RawObject { | 537 class RawFunction : public RawObject { |
| 538 public: | 538 public: |
| 539 enum Kind { | 539 enum Kind { |
| 540 kRegularFunction, | 540 kRegularFunction, |
| 541 kClosureFunction, | 541 kClosureFunction, |
| 542 kSignatureFunction, // represents a signature only without actual code. | 542 kSignatureFunction, // represents a signature only without actual code. |
| (...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1689 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 8 && | 1689 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 8 && |
| 1690 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 9 && | 1690 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 9 && |
| 1691 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 10 && | 1691 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 10 && |
| 1692 kStacktraceCid == kExternalInt8ArrayCid + 11); | 1692 kStacktraceCid == kExternalInt8ArrayCid + 11); |
| 1693 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); | 1693 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); |
| 1694 } | 1694 } |
| 1695 | 1695 |
| 1696 } // namespace dart | 1696 } // namespace dart |
| 1697 | 1697 |
| 1698 #endif // VM_RAW_OBJECT_H_ | 1698 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |