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

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

Issue 2628693004: TokenPositions on more nodes when running from Kernel (Closed)
Patch Set: Created 3 years, 11 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 3530 matching lines...) Expand 10 before | Expand all | Expand 10 after
3541 intptr_t col_offset() const { return raw_ptr()->col_offset_; } 3541 intptr_t col_offset() const { return raw_ptr()->col_offset_; }
3542 3542
3543 // The load time in milliseconds since epoch. 3543 // The load time in milliseconds since epoch.
3544 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } 3544 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; }
3545 3545
3546 RawArray* compile_time_constants() const { 3546 RawArray* compile_time_constants() const {
3547 return raw_ptr()->compile_time_constants_; 3547 return raw_ptr()->compile_time_constants_;
3548 } 3548 }
3549 void set_compile_time_constants(const Array& value) const; 3549 void set_compile_time_constants(const Array& value) const;
3550 3550
3551 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } 3551 RawTokenStream* tokens() const {
3552 ASSERT(kind() != RawScript::kKernelTag);
3553 return raw_ptr()->tokens_;
3554 }
3552 3555
3553 void set_line_starts(const Array& value) const; 3556 void set_line_starts(const Array& value) const;
3554 3557
3555 void Tokenize(const String& private_key, bool use_shared_tokens = true) const; 3558 void Tokenize(const String& private_key, bool use_shared_tokens = true) const;
3556 3559
3557 RawLibrary* FindLibrary() const; 3560 RawLibrary* FindLibrary() const;
3558 RawString* GetLine(intptr_t line_number, 3561 RawString* GetLine(intptr_t line_number,
3559 Heap::Space space = Heap::kNew) const; 3562 Heap::Space space = Heap::kNew) const;
3560 RawString* GetSnippet(TokenPosition from, TokenPosition to) const; 3563 RawString* GetSnippet(TokenPosition from, TokenPosition to) const;
3561 RawString* GetSnippet(intptr_t from_line, 3564 RawString* GetSnippet(intptr_t from_line,
(...skipping 5373 matching lines...) Expand 10 before | Expand all | Expand 10 after
8935 8938
8936 inline void TypeArguments::SetHash(intptr_t value) const { 8939 inline void TypeArguments::SetHash(intptr_t value) const {
8937 // This is only safe because we create a new Smi, which does not cause 8940 // This is only safe because we create a new Smi, which does not cause
8938 // heap allocation. 8941 // heap allocation.
8939 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8942 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8940 } 8943 }
8941 8944
8942 } // namespace dart 8945 } // namespace dart
8943 8946
8944 #endif // RUNTIME_VM_OBJECT_H_ 8947 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698