| 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 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 4730 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  4741  |  4741  | 
|  4742     friend class Code; |  4742     friend class Code; | 
|  4743  |  4743  | 
|  4744     DISALLOW_COPY_AND_ASSIGN(Comments); |  4744     DISALLOW_COPY_AND_ASSIGN(Comments); | 
|  4745   }; |  4745   }; | 
|  4746  |  4746  | 
|  4747  |  4747  | 
|  4748   const Comments& comments() const; |  4748   const Comments& comments() const; | 
|  4749   void set_comments(const Comments& comments) const; |  4749   void set_comments(const Comments& comments) const; | 
|  4750  |  4750  | 
 |  4751   CodeStatistics* stats() const { | 
 |  4752 #ifdef DART_PRECOMPILER | 
 |  4753     return raw_ptr()->function_stats_; | 
 |  4754 #else | 
 |  4755     return NULL; | 
 |  4756 #endif | 
 |  4757   } | 
 |  4758   void set_stats(CodeStatistics* stats) const { | 
 |  4759 #ifdef DART_PRECOMPILER | 
 |  4760     StoreNonPointer(&raw_ptr()->function_stats_, stats); | 
 |  4761 #endif | 
 |  4762   } | 
 |  4763  | 
|  4751   RawObject* return_address_metadata() const { |  4764   RawObject* return_address_metadata() const { | 
|  4752 #if defined(DART_PRECOMPILED_RUNTIME) |  4765 #if defined(DART_PRECOMPILED_RUNTIME) | 
|  4753     UNREACHABLE(); |  4766     UNREACHABLE(); | 
|  4754     return NULL; |  4767     return NULL; | 
|  4755 #else |  4768 #else | 
|  4756     return raw_ptr()->return_address_metadata_; |  4769     return raw_ptr()->return_address_metadata_; | 
|  4757 #endif |  4770 #endif | 
|  4758   } |  4771   } | 
|  4759   // Sets |return_address_metadata|. |  4772   // Sets |return_address_metadata|. | 
|  4760   void SetPrologueOffset(intptr_t offset) const; |  4773   void SetPrologueOffset(intptr_t offset) const; | 
| (...skipping 4105 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  8866  |  8879  | 
|  8867 inline void TypeArguments::SetHash(intptr_t value) const { |  8880 inline void TypeArguments::SetHash(intptr_t value) const { | 
|  8868   // This is only safe because we create a new Smi, which does not cause |  8881   // This is only safe because we create a new Smi, which does not cause | 
|  8869   // heap allocation. |  8882   // heap allocation. | 
|  8870   StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |  8883   StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 
|  8871 } |  8884 } | 
|  8872  |  8885  | 
|  8873 }  // namespace dart |  8886 }  // namespace dart | 
|  8874  |  8887  | 
|  8875 #endif  // RUNTIME_VM_OBJECT_H_ |  8888 #endif  // RUNTIME_VM_OBJECT_H_ | 
| OLD | NEW |