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

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

Issue 2167683004: Clear token streams before compacting the symbol table. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | runtime/vm/precompiler.h » ('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 VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define 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 3433 matching lines...) Expand 10 before | Expand all | Expand 10 after
3444 void set_url(const String& value) const; 3444 void set_url(const String& value) const;
3445 void set_source(const String& value) const; 3445 void set_source(const String& value) const;
3446 void set_kind(RawScript::Kind value) const; 3446 void set_kind(RawScript::Kind value) const;
3447 void set_load_timestamp(int64_t value) const; 3447 void set_load_timestamp(int64_t value) const;
3448 void set_tokens(const TokenStream& value) const; 3448 void set_tokens(const TokenStream& value) const;
3449 3449
3450 static RawScript* New(); 3450 static RawScript* New();
3451 3451
3452 FINAL_HEAP_OBJECT_IMPLEMENTATION(Script, Object); 3452 FINAL_HEAP_OBJECT_IMPLEMENTATION(Script, Object);
3453 friend class Class; 3453 friend class Class;
3454 friend class Precompiler;
3454 }; 3455 };
3455 3456
3456 3457
3457 class DictionaryIterator : public ValueObject { 3458 class DictionaryIterator : public ValueObject {
3458 public: 3459 public:
3459 explicit DictionaryIterator(const Library& library); 3460 explicit DictionaryIterator(const Library& library);
3460 3461
3461 bool HasNext() const { return next_ix_ < size_; } 3462 bool HasNext() const { return next_ix_ < size_; }
3462 3463
3463 // Returns next non-null raw object. 3464 // Returns next non-null raw object.
(...skipping 5193 matching lines...) Expand 10 before | Expand all | Expand 10 after
8657 8658
8658 inline void TypeArguments::SetHash(intptr_t value) const { 8659 inline void TypeArguments::SetHash(intptr_t value) const {
8659 // This is only safe because we create a new Smi, which does not cause 8660 // This is only safe because we create a new Smi, which does not cause
8660 // heap allocation. 8661 // heap allocation.
8661 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8662 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8662 } 8663 }
8663 8664
8664 } // namespace dart 8665 } // namespace dart
8665 8666
8666 #endif // VM_OBJECT_H_ 8667 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/precompiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698