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

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

Issue 2517953002: Revert "Merge of source position information from kernel-sdk." (Closed)
Patch Set: Created 4 years 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.cc ('k') | runtime/vm/symbols.h » ('j') | 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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 963
964 964
965 class RawScript : public RawObject { 965 class RawScript : public RawObject {
966 public: 966 public:
967 enum Kind { 967 enum Kind {
968 kScriptTag = 0, 968 kScriptTag = 0,
969 kLibraryTag, 969 kLibraryTag,
970 kSourceTag, 970 kSourceTag,
971 kPatchTag, 971 kPatchTag,
972 kEvaluateTag, 972 kEvaluateTag,
973 kKernelTag,
974 }; 973 };
975 974
976 private: 975 private:
977 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); 976 RAW_HEAP_OBJECT_IMPLEMENTATION(Script);
978 977
979 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } 978 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); }
980 RawString* url_; 979 RawString* url_;
981 RawString* resolved_url_; 980 RawString* resolved_url_;
982 RawArray* compile_time_constants_; 981 RawArray* compile_time_constants_;
983 RawArray* line_starts_;
984 RawTokenStream* tokens_; 982 RawTokenStream* tokens_;
985 RawString* source_; 983 RawString* source_;
986 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); } 984 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); }
987 RawObject** to_snapshot(Snapshot::Kind kind) { 985 RawObject** to_snapshot(Snapshot::Kind kind) {
988 switch (kind) { 986 switch (kind) {
989 case Snapshot::kAppNoJIT: 987 case Snapshot::kAppNoJIT:
990 return reinterpret_cast<RawObject**>(&ptr()->url_); 988 return reinterpret_cast<RawObject**>(&ptr()->url_);
991 case Snapshot::kCore: 989 case Snapshot::kCore:
992 case Snapshot::kAppWithJIT: 990 case Snapshot::kAppWithJIT:
993 case Snapshot::kScript: 991 case Snapshot::kScript:
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
2394 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2392 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2395 kTypedDataInt8ArrayViewCid + 15); 2393 kTypedDataInt8ArrayViewCid + 15);
2396 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2394 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2397 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2395 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2398 return (kNullCid - kTypedDataInt8ArrayCid); 2396 return (kNullCid - kTypedDataInt8ArrayCid);
2399 } 2397 }
2400 2398
2401 } // namespace dart 2399 } // namespace dart
2402 2400
2403 #endif // RUNTIME_VM_RAW_OBJECT_H_ 2401 #endif // RUNTIME_VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698