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/atomic.h" | 9 #include "vm/atomic.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 kSourceTag, | 989 kSourceTag, |
990 kPatchTag, | 990 kPatchTag, |
991 kEvaluateTag, | 991 kEvaluateTag, |
992 }; | 992 }; |
993 | 993 |
994 private: | 994 private: |
995 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); | 995 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); |
996 | 996 |
997 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } | 997 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } |
998 RawString* url_; | 998 RawString* url_; |
| 999 RawString* resolved_url_; |
999 RawArray* compile_time_constants_; | 1000 RawArray* compile_time_constants_; |
1000 RawTokenStream* tokens_; | 1001 RawTokenStream* tokens_; |
1001 RawString* source_; | 1002 RawString* source_; |
1002 RawObject** to() {return reinterpret_cast<RawObject**>(&ptr()->source_); } | 1003 RawObject** to() {return reinterpret_cast<RawObject**>(&ptr()->source_); } |
1003 RawObject** to_snapshot(Snapshot::Kind kind) { | 1004 RawObject** to_snapshot(Snapshot::Kind kind) { |
1004 switch (kind) { | 1005 switch (kind) { |
1005 case Snapshot::kAppNoJIT: | 1006 case Snapshot::kAppNoJIT: |
1006 return reinterpret_cast<RawObject**>(&ptr()->url_); | 1007 return reinterpret_cast<RawObject**>(&ptr()->url_); |
1007 case Snapshot::kCore: | 1008 case Snapshot::kCore: |
1008 case Snapshot::kAppWithJIT: | 1009 case Snapshot::kAppWithJIT: |
(...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2420 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2421 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2421 kTypedDataInt8ArrayViewCid + 15); | 2422 kTypedDataInt8ArrayViewCid + 15); |
2422 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2423 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2423 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2424 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2424 return (kNullCid - kTypedDataInt8ArrayCid); | 2425 return (kNullCid - kTypedDataInt8ArrayCid); |
2425 } | 2426 } |
2426 | 2427 |
2427 } // namespace dart | 2428 } // namespace dart |
2428 | 2429 |
2429 #endif // VM_RAW_OBJECT_H_ | 2430 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |