| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |