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 2512653002: Merge of source position information from kernel-sdk. (Closed)
Patch Set: Changed how GetTokenLocation was called back to original to fix failing failing tests. Created 4 years, 1 month 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,
973 }; 974 };
974 975
975 private: 976 private:
976 RAW_HEAP_OBJECT_IMPLEMENTATION(Script); 977 RAW_HEAP_OBJECT_IMPLEMENTATION(Script);
977 978
978 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); } 979 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->url_); }
979 RawString* url_; 980 RawString* url_;
980 RawString* resolved_url_; 981 RawString* resolved_url_;
981 RawArray* compile_time_constants_; 982 RawArray* compile_time_constants_;
983 RawArray* line_starts_;
982 RawTokenStream* tokens_; 984 RawTokenStream* tokens_;
983 RawString* source_; 985 RawString* source_;
984 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); } 986 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->source_); }
985 RawObject** to_snapshot(Snapshot::Kind kind) { 987 RawObject** to_snapshot(Snapshot::Kind kind) {
986 switch (kind) { 988 switch (kind) {
987 case Snapshot::kAppNoJIT: 989 case Snapshot::kAppNoJIT:
988 return reinterpret_cast<RawObject**>(&ptr()->url_); 990 return reinterpret_cast<RawObject**>(&ptr()->url_);
989 case Snapshot::kCore: 991 case Snapshot::kCore:
990 case Snapshot::kAppWithJIT: 992 case Snapshot::kAppWithJIT:
991 case Snapshot::kScript: 993 case Snapshot::kScript:
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
2392 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2394 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2393 kTypedDataInt8ArrayViewCid + 15); 2395 kTypedDataInt8ArrayViewCid + 15);
2394 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2396 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2395 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2397 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2396 return (kNullCid - kTypedDataInt8ArrayCid); 2398 return (kNullCid - kTypedDataInt8ArrayCid);
2397 } 2399 }
2398 2400
2399 } // namespace dart 2401 } // namespace dart
2400 2402
2401 #endif // RUNTIME_VM_RAW_OBJECT_H_ 2403 #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