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

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

Issue 2820363002: Move Kernel strings into the VM's heap. (Closed)
Patch Set: Created 3 years, 8 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
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_OBJECT_H_ 5 #ifndef RUNTIME_VM_OBJECT_H_
6 #define RUNTIME_VM_OBJECT_H_ 6 #define RUNTIME_VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 3557 matching lines...) Expand 10 before | Expand all | Expand 10 after
3568 intptr_t col_offset() const { return raw_ptr()->col_offset_; } 3568 intptr_t col_offset() const { return raw_ptr()->col_offset_; }
3569 3569
3570 // The load time in milliseconds since epoch. 3570 // The load time in milliseconds since epoch.
3571 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } 3571 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; }
3572 3572
3573 RawArray* compile_time_constants() const { 3573 RawArray* compile_time_constants() const {
3574 return raw_ptr()->compile_time_constants_; 3574 return raw_ptr()->compile_time_constants_;
3575 } 3575 }
3576 void set_compile_time_constants(const Array& value) const; 3576 void set_compile_time_constants(const Array& value) const;
3577 3577
3578 RawTypedData* kernel_strings() const { return raw_ptr()->kernel_strings_; }
3579 void set_kernel_strings(const TypedData& strings) const;
3580
3578 RawTokenStream* tokens() const { 3581 RawTokenStream* tokens() const {
3579 ASSERT(kind() != RawScript::kKernelTag); 3582 ASSERT(kind() != RawScript::kKernelTag);
3580 return raw_ptr()->tokens_; 3583 return raw_ptr()->tokens_;
3581 } 3584 }
3582 3585
3583 void set_line_starts(const Array& value) const; 3586 void set_line_starts(const Array& value) const;
3584 3587
3585 void set_debug_positions(const Array& value) const; 3588 void set_debug_positions(const Array& value) const;
3586 3589
3587 void set_yield_positions(const Array& value) const; 3590 void set_yield_positions(const Array& value) const;
(...skipping 5396 matching lines...) Expand 10 before | Expand all | Expand 10 after
8984 8987
8985 inline void TypeArguments::SetHash(intptr_t value) const { 8988 inline void TypeArguments::SetHash(intptr_t value) const {
8986 // This is only safe because we create a new Smi, which does not cause 8989 // This is only safe because we create a new Smi, which does not cause
8987 // heap allocation. 8990 // heap allocation.
8988 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8991 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8989 } 8992 }
8990 8993
8991 } // namespace dart 8994 } // namespace dart
8992 8995
8993 #endif // RUNTIME_VM_OBJECT_H_ 8996 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698