| 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 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1800 return raw_ptr()->instructions_->ptr()->code_; | 1800 return raw_ptr()->instructions_->ptr()->code_; |
| 1801 } | 1801 } |
| 1802 | 1802 |
| 1803 RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; } | 1803 RawCode* unoptimized_code() const { return raw_ptr()->unoptimized_code_; } |
| 1804 void set_unoptimized_code(const Code& value) const; | 1804 void set_unoptimized_code(const Code& value) const; |
| 1805 static intptr_t unoptimized_code_offset() { | 1805 static intptr_t unoptimized_code_offset() { |
| 1806 return OFFSET_OF(RawFunction, unoptimized_code_); | 1806 return OFFSET_OF(RawFunction, unoptimized_code_); |
| 1807 } | 1807 } |
| 1808 bool HasCode() const; | 1808 bool HasCode() const; |
| 1809 | 1809 |
| 1810 RawGrowableObjectArray* CollectICsWithSourcePositions() const; |
| 1811 |
| 1810 static intptr_t instructions_offset() { | 1812 static intptr_t instructions_offset() { |
| 1811 return OFFSET_OF(RawFunction, instructions_); | 1813 return OFFSET_OF(RawFunction, instructions_); |
| 1812 } | 1814 } |
| 1813 | 1815 |
| 1814 // Returns true if there is at least one debugger breakpoint | 1816 // Returns true if there is at least one debugger breakpoint |
| 1815 // set in this function. | 1817 // set in this function. |
| 1816 bool HasBreakpoint() const; | 1818 bool HasBreakpoint() const; |
| 1817 | 1819 |
| 1818 RawContextScope* context_scope() const; | 1820 RawContextScope* context_scope() const; |
| 1819 void set_context_scope(const ContextScope& value) const; | 1821 void set_context_scope(const ContextScope& value) const; |
| (...skipping 2045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3865 UNREACHABLE(); | 3867 UNREACHABLE(); |
| 3866 return "?"; | 3868 return "?"; |
| 3867 } | 3869 } |
| 3868 } | 3870 } |
| 3869 | 3871 |
| 3870 // It is only meaningful to interptret range feedback stored in the ICData | 3872 // It is only meaningful to interptret range feedback stored in the ICData |
| 3871 // when all checks are Mint or Smi. | 3873 // when all checks are Mint or Smi. |
| 3872 bool HasRangeFeedback() const; | 3874 bool HasRangeFeedback() const; |
| 3873 RangeFeedback DecodeRangeFeedbackAt(intptr_t idx) const; | 3875 RangeFeedback DecodeRangeFeedbackAt(intptr_t idx) const; |
| 3874 | 3876 |
| 3877 void PrintToJSONArray(JSONArray* jsarray, |
| 3878 intptr_t line, |
| 3879 intptr_t column) const; |
| 3880 |
| 3875 private: | 3881 private: |
| 3876 RawArray* ic_data() const { | 3882 RawArray* ic_data() const { |
| 3877 return raw_ptr()->ic_data_; | 3883 return raw_ptr()->ic_data_; |
| 3878 } | 3884 } |
| 3879 | 3885 |
| 3880 void set_owner(const Function& value) const; | 3886 void set_owner(const Function& value) const; |
| 3881 void set_target_name(const String& value) const; | 3887 void set_target_name(const String& value) const; |
| 3882 void set_arguments_descriptor(const Array& value) const; | 3888 void set_arguments_descriptor(const Array& value) const; |
| 3883 void set_deopt_id(intptr_t value) const; | 3889 void set_deopt_id(intptr_t value) const; |
| 3884 void SetNumArgsTested(intptr_t value) const; | 3890 void SetNumArgsTested(intptr_t value) const; |
| (...skipping 3915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7800 | 7806 |
| 7801 | 7807 |
| 7802 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7808 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7803 intptr_t index) { | 7809 intptr_t index) { |
| 7804 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7810 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7805 } | 7811 } |
| 7806 | 7812 |
| 7807 } // namespace dart | 7813 } // namespace dart |
| 7808 | 7814 |
| 7809 #endif // VM_OBJECT_H_ | 7815 #endif // VM_OBJECT_H_ |
| OLD | NEW |