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

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

Issue 2632183002: Debugging in kernel shaping up. (Closed)
Patch Set: Created 3 years, 11 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
« runtime/vm/object.cc ('K') | « 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 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 }; 1002 };
1003 1003
1004 private: 1004 private:
1005 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); 1005 RAW_HEAP_OBJECT_IMPLEMENTATION(Script);
1006 1006
1007 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } 1007 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); }
1008 RawString* url_; 1008 RawString* url_;
1009 RawString* resolved_url_; 1009 RawString* resolved_url_;
1010 RawArray* compile_time_constants_; 1010 RawArray* compile_time_constants_;
1011 RawArray* line_starts_; 1011 RawArray* line_starts_;
1012 RawArray* tokens_seen_;
1013 RawArray* yields_seen_;
1012 RawTokenStream* tokens_; 1014 RawTokenStream* tokens_;
1013 RawString* source_; 1015 RawString* source_;
1014 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); } 1016 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); }
1015 RawObject** to_snapshot(Snapshot::Kind kind) { 1017 RawObject** to_snapshot(Snapshot::Kind kind) {
1016 switch (kind) { 1018 switch (kind) {
1017 case Snapshot::kAppAOT: 1019 case Snapshot::kAppAOT:
1018 return reinterpret_cast<RawObject**>(&ptr()->url_); 1020 return reinterpret_cast<RawObject**>(&ptr()->url_);
1019 case Snapshot::kCore: 1021 case Snapshot::kCore:
1020 case Snapshot::kAppJIT: 1022 case Snapshot::kAppJIT:
1021 case Snapshot::kScript: 1023 case Snapshot::kScript:
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
2424 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2426 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2425 kTypedDataInt8ArrayViewCid + 15); 2427 kTypedDataInt8ArrayViewCid + 15);
2426 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2428 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2427 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2429 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2428 return (kNullCid - kTypedDataInt8ArrayCid); 2430 return (kNullCid - kTypedDataInt8ArrayCid);
2429 } 2431 }
2430 2432
2431 } // namespace dart 2433 } // namespace dart
2432 2434
2433 #endif // RUNTIME_VM_RAW_OBJECT_H_ 2435 #endif // RUNTIME_VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/object_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698