| 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 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1435 | 1435 |
| 1436 class RawClosure : public RawInstance { | 1436 class RawClosure : public RawInstance { |
| 1437 RAW_HEAP_OBJECT_IMPLEMENTATION(Closure); | 1437 RAW_HEAP_OBJECT_IMPLEMENTATION(Closure); |
| 1438 | 1438 |
| 1439 RawObject** from() { | 1439 RawObject** from() { |
| 1440 return reinterpret_cast<RawObject**>(&ptr()->type_arguments_); | 1440 return reinterpret_cast<RawObject**>(&ptr()->type_arguments_); |
| 1441 } | 1441 } |
| 1442 RawAbstractTypeArguments* type_arguments_; | 1442 RawAbstractTypeArguments* type_arguments_; |
| 1443 RawFunction* function_; | 1443 RawFunction* function_; |
| 1444 RawContext* context_; | 1444 RawContext* context_; |
| 1445 // TODO(iposva): Remove this temporary hack. | 1445 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->context_); } |
| 1446 RawInteger* smrck_; | |
| 1447 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->smrck_); } | |
| 1448 }; | 1446 }; |
| 1449 | 1447 |
| 1450 | 1448 |
| 1451 // VM type for capturing stacktraces when exceptions are thrown, | 1449 // VM type for capturing stacktraces when exceptions are thrown, |
| 1452 // Currently we don't have any interface that this object is supposed | 1450 // Currently we don't have any interface that this object is supposed |
| 1453 // to implement so we just support the 'toString' method which | 1451 // to implement so we just support the 'toString' method which |
| 1454 // converts the stack trace into a string. | 1452 // converts the stack trace into a string. |
| 1455 class RawStacktrace : public RawInstance { | 1453 class RawStacktrace : public RawInstance { |
| 1456 RAW_HEAP_OBJECT_IMPLEMENTATION(Stacktrace); | 1454 RAW_HEAP_OBJECT_IMPLEMENTATION(Stacktrace); |
| 1457 | 1455 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1622 kExternalUint64ArrayCid == kByteArrayCid + 18 && | 1620 kExternalUint64ArrayCid == kByteArrayCid + 18 && |
| 1623 kExternalFloat32ArrayCid == kByteArrayCid + 19 && | 1621 kExternalFloat32ArrayCid == kByteArrayCid + 19 && |
| 1624 kExternalFloat64ArrayCid == kByteArrayCid + 20 && | 1622 kExternalFloat64ArrayCid == kByteArrayCid + 20 && |
| 1625 kStacktraceCid == kByteArrayCid + 21); | 1623 kStacktraceCid == kByteArrayCid + 21); |
| 1626 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); | 1624 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); |
| 1627 } | 1625 } |
| 1628 | 1626 |
| 1629 } // namespace dart | 1627 } // namespace dart |
| 1630 | 1628 |
| 1631 #endif // VM_RAW_OBJECT_H_ | 1629 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |