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

Side by Side Diff: runtime/vm/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 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 3485 matching lines...) Expand 10 before | Expand all | Expand 10 after
3496 // The load time in milliseconds since epoch. 3496 // The load time in milliseconds since epoch.
3497 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } 3497 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; }
3498 3498
3499 RawArray* compile_time_constants() const { 3499 RawArray* compile_time_constants() const {
3500 return raw_ptr()->compile_time_constants_; 3500 return raw_ptr()->compile_time_constants_;
3501 } 3501 }
3502 void set_compile_time_constants(const Array& value) const; 3502 void set_compile_time_constants(const Array& value) const;
3503 3503
3504 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } 3504 RawTokenStream* tokens() const { return raw_ptr()->tokens_; }
3505 3505
3506 RawArray* line_starts() const { return raw_ptr()->line_starts_; }
3507
3508 void set_line_starts(const Array& value) const;
3509
3506 void Tokenize(const String& private_key, bool use_shared_tokens = true) const; 3510 void Tokenize(const String& private_key, bool use_shared_tokens = true) const;
3507 3511
3508 RawLibrary* FindLibrary() const; 3512 RawLibrary* FindLibrary() const;
3509 RawString* GetLine(intptr_t line_number, 3513 RawString* GetLine(intptr_t line_number,
3510 Heap::Space space = Heap::kNew) const; 3514 Heap::Space space = Heap::kNew) const;
3511 RawString* GetSnippet(TokenPosition from, TokenPosition to) const; 3515 RawString* GetSnippet(TokenPosition from, TokenPosition to) const;
3512 RawString* GetSnippet(intptr_t from_line, 3516 RawString* GetSnippet(intptr_t from_line,
3513 intptr_t from_column, 3517 intptr_t from_column,
3514 intptr_t to_line, 3518 intptr_t to_line,
3515 intptr_t to_column) const; 3519 intptr_t to_column) const;
(...skipping 5344 matching lines...) Expand 10 before | Expand all | Expand 10 after
8860 8864
8861 inline void TypeArguments::SetHash(intptr_t value) const { 8865 inline void TypeArguments::SetHash(intptr_t value) const {
8862 // This is only safe because we create a new Smi, which does not cause 8866 // This is only safe because we create a new Smi, which does not cause
8863 // heap allocation. 8867 // heap allocation.
8864 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8868 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8865 } 8869 }
8866 8870
8867 } // namespace dart 8871 } // namespace dart
8868 8872
8869 #endif // RUNTIME_VM_OBJECT_H_ 8873 #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