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

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

Issue 2820363002: Move Kernel strings into the VM's heap. (Closed)
Patch Set: Incorporate review comments. 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
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/object.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 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 3569 matching lines...) Expand 10 before | Expand all | Expand 10 after
3580 intptr_t col_offset() const { return raw_ptr()->col_offset_; } 3580 intptr_t col_offset() const { return raw_ptr()->col_offset_; }
3581 3581
3582 // The load time in milliseconds since epoch. 3582 // The load time in milliseconds since epoch.
3583 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } 3583 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; }
3584 3584
3585 RawArray* compile_time_constants() const { 3585 RawArray* compile_time_constants() const {
3586 return raw_ptr()->compile_time_constants_; 3586 return raw_ptr()->compile_time_constants_;
3587 } 3587 }
3588 void set_compile_time_constants(const Array& value) const; 3588 void set_compile_time_constants(const Array& value) const;
3589 3589
3590 RawTypedData* kernel_strings() const { return raw_ptr()->kernel_strings_; }
3591 void set_kernel_strings(const TypedData& strings) const;
3592
3590 RawTokenStream* tokens() const { 3593 RawTokenStream* tokens() const {
3591 ASSERT(kind() != RawScript::kKernelTag); 3594 ASSERT(kind() != RawScript::kKernelTag);
3592 return raw_ptr()->tokens_; 3595 return raw_ptr()->tokens_;
3593 } 3596 }
3594 3597
3595 void set_line_starts(const Array& value) const; 3598 void set_line_starts(const Array& value) const;
3596 3599
3597 void set_debug_positions(const Array& value) const; 3600 void set_debug_positions(const Array& value) const;
3598 3601
3599 void set_yield_positions(const Array& value) const; 3602 void set_yield_positions(const Array& value) const;
(...skipping 5399 matching lines...) Expand 10 before | Expand all | Expand 10 after
8999 9002
9000 inline void TypeArguments::SetHash(intptr_t value) const { 9003 inline void TypeArguments::SetHash(intptr_t value) const {
9001 // This is only safe because we create a new Smi, which does not cause 9004 // This is only safe because we create a new Smi, which does not cause
9002 // heap allocation. 9005 // heap allocation.
9003 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 9006 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
9004 } 9007 }
9005 9008
9006 } // namespace dart 9009 } // namespace dart
9007 9010
9008 #endif // RUNTIME_VM_OBJECT_H_ 9011 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698