| 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 5201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5212 Report::Kind kind, | 5212 Report::Kind kind, |
| 5213 Heap::Space space, | 5213 Heap::Space space, |
| 5214 const char* format, va_list args); | 5214 const char* format, va_list args); |
| 5215 | 5215 |
| 5216 static RawLanguageError* New(const String& formatted_message, | 5216 static RawLanguageError* New(const String& formatted_message, |
| 5217 Report::Kind kind = Report::kError, | 5217 Report::Kind kind = Report::kError, |
| 5218 Heap::Space space = Heap::kNew); | 5218 Heap::Space space = Heap::kNew); |
| 5219 | 5219 |
| 5220 virtual const char* ToErrorCString() const; | 5220 virtual const char* ToErrorCString() const; |
| 5221 | 5221 |
| 5222 TokenPosition token_pos() const { return raw_ptr()->token_pos_; } |
| 5223 |
| 5222 private: | 5224 private: |
| 5223 RawError* previous_error() const { | 5225 RawError* previous_error() const { |
| 5224 return raw_ptr()->previous_error_; | 5226 return raw_ptr()->previous_error_; |
| 5225 } | 5227 } |
| 5226 void set_previous_error(const Error& value) const; | 5228 void set_previous_error(const Error& value) const; |
| 5227 | 5229 |
| 5228 RawScript* script() const { return raw_ptr()->script_; } | 5230 RawScript* script() const { return raw_ptr()->script_; } |
| 5229 void set_script(const Script& value) const; | 5231 void set_script(const Script& value) const; |
| 5230 | 5232 |
| 5231 TokenPosition token_pos() const { return raw_ptr()->token_pos_; } | |
| 5232 void set_token_pos(TokenPosition value) const; | 5233 void set_token_pos(TokenPosition value) const; |
| 5233 | 5234 |
| 5234 bool report_after_token() const { return raw_ptr()->report_after_token_; } | 5235 bool report_after_token() const { return raw_ptr()->report_after_token_; } |
| 5235 void set_report_after_token(bool value); | 5236 void set_report_after_token(bool value); |
| 5236 | 5237 |
| 5237 void set_kind(uint8_t value) const; | 5238 void set_kind(uint8_t value) const; |
| 5238 | 5239 |
| 5239 RawString* message() const { return raw_ptr()->message_; } | 5240 RawString* message() const { return raw_ptr()->message_; } |
| 5240 void set_message(const String& value) const; | 5241 void set_message(const String& value) const; |
| 5241 | 5242 |
| (...skipping 3576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8818 | 8819 |
| 8819 inline void TypeArguments::SetHash(intptr_t value) const { | 8820 inline void TypeArguments::SetHash(intptr_t value) const { |
| 8820 // This is only safe because we create a new Smi, which does not cause | 8821 // This is only safe because we create a new Smi, which does not cause |
| 8821 // heap allocation. | 8822 // heap allocation. |
| 8822 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8823 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 8823 } | 8824 } |
| 8824 | 8825 |
| 8825 } // namespace dart | 8826 } // namespace dart |
| 8826 | 8827 |
| 8827 #endif // VM_OBJECT_H_ | 8828 #endif // VM_OBJECT_H_ |
| OLD | NEW |