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

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

Issue 2512653002: Merge of source position information from kernel-sdk. (Closed)
Patch Set: 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
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 3483 matching lines...) Expand 10 before | Expand all | Expand 10 after
3494 // The load time in milliseconds since epoch. 3494 // The load time in milliseconds since epoch.
3495 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } 3495 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; }
3496 3496
3497 RawArray* compile_time_constants() const { 3497 RawArray* compile_time_constants() const {
3498 return raw_ptr()->compile_time_constants_; 3498 return raw_ptr()->compile_time_constants_;
3499 } 3499 }
3500 void set_compile_time_constants(const Array& value) const; 3500 void set_compile_time_constants(const Array& value) const;
3501 3501
3502 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } 3502 RawTokenStream* tokens() const { return raw_ptr()->tokens_; }
3503 3503
3504 RawArray* line_starts() const { return raw_ptr()->line_starts_; }
3505
3506 void set_line_starts(const Array& value) const;
3507
3504 void Tokenize(const String& private_key, bool use_shared_tokens = true) const; 3508 void Tokenize(const String& private_key, bool use_shared_tokens = true) const;
3505 3509
3506 RawLibrary* FindLibrary() const; 3510 RawLibrary* FindLibrary() const;
3507 RawString* GetLine(intptr_t line_number, 3511 RawString* GetLine(intptr_t line_number,
3508 Heap::Space space = Heap::kNew) const; 3512 Heap::Space space = Heap::kNew) const;
3509 RawString* GetSnippet(TokenPosition from, TokenPosition to) const; 3513 RawString* GetSnippet(TokenPosition from, TokenPosition to) const;
3510 RawString* GetSnippet(intptr_t from_line, 3514 RawString* GetSnippet(intptr_t from_line,
3511 intptr_t from_column, 3515 intptr_t from_column,
3512 intptr_t to_line, 3516 intptr_t to_line,
3513 intptr_t to_column) const; 3517 intptr_t to_column) const;
(...skipping 5322 matching lines...) Expand 10 before | Expand all | Expand 10 after
8836 8840
8837 inline void TypeArguments::SetHash(intptr_t value) const { 8841 inline void TypeArguments::SetHash(intptr_t value) const {
8838 // This is only safe because we create a new Smi, which does not cause 8842 // This is only safe because we create a new Smi, which does not cause
8839 // heap allocation. 8843 // heap allocation.
8840 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8844 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8841 } 8845 }
8842 8846
8843 } // namespace dart 8847 } // namespace dart
8844 8848
8845 #endif // RUNTIME_VM_OBJECT_H_ 8849 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698