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

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

Issue 2186423002: Only reload libraries when they may have been modified. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review Created 4 years, 4 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.cc ('k') | runtime/vm/service.cc » ('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 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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698