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

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

Issue 2632183002: Debugging in kernel shaping up. (Closed)
Patch Set: Changed to TokenPosition::kMaxSourcePos Created 3 years, 10 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 | « runtime/vm/object_service.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 RUNTIME_VM_RAW_OBJECT_H_ 5 #ifndef RUNTIME_VM_RAW_OBJECT_H_
6 #define RUNTIME_VM_RAW_OBJECT_H_ 6 #define RUNTIME_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 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 }; 1015 };
1016 1016
1017 private: 1017 private:
1018 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); 1018 RAW_HEAP_OBJECT_IMPLEMENTATION(Script);
1019 1019
1020 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } 1020 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); }
1021 RawString* url_; 1021 RawString* url_;
1022 RawString* resolved_url_; 1022 RawString* resolved_url_;
1023 RawArray* compile_time_constants_; 1023 RawArray* compile_time_constants_;
1024 RawArray* line_starts_; 1024 RawArray* line_starts_;
1025 RawArray* debug_positions_;
1026 RawArray* yield_positions_;
1025 RawTokenStream* tokens_; 1027 RawTokenStream* tokens_;
1026 RawString* source_; 1028 RawString* source_;
1027 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); } 1029 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); }
1028 RawObject** to_snapshot(Snapshot::Kind kind) { 1030 RawObject** to_snapshot(Snapshot::Kind kind) {
1029 switch (kind) { 1031 switch (kind) {
1030 case Snapshot::kAppAOT: 1032 case Snapshot::kAppAOT:
1031 return reinterpret_cast<RawObject**>(&ptr()->url_); 1033 return reinterpret_cast<RawObject**>(&ptr()->url_);
1032 case Snapshot::kCore: 1034 case Snapshot::kCore:
1033 case Snapshot::kAppJIT: 1035 case Snapshot::kAppJIT:
1034 case Snapshot::kScript: 1036 case Snapshot::kScript:
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
2436 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2438 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2437 kTypedDataInt8ArrayViewCid + 15); 2439 kTypedDataInt8ArrayViewCid + 15);
2438 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2440 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2439 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2441 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2440 return (kNullCid - kTypedDataInt8ArrayCid); 2442 return (kNullCid - kTypedDataInt8ArrayCid);
2441 } 2443 }
2442 2444
2443 } // namespace dart 2445 } // namespace dart
2444 2446
2445 #endif // RUNTIME_VM_RAW_OBJECT_H_ 2447 #endif // RUNTIME_VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698