| 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 7359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7370 | 7370 |
| 7371 private: | 7371 private: |
| 7372 FINAL_HEAP_OBJECT_IMPLEMENTATION(SendPort, Instance); | 7372 FINAL_HEAP_OBJECT_IMPLEMENTATION(SendPort, Instance); |
| 7373 friend class Class; | 7373 friend class Class; |
| 7374 }; | 7374 }; |
| 7375 | 7375 |
| 7376 | 7376 |
| 7377 // Internal stacktrace object used in exceptions for printing stack traces. | 7377 // Internal stacktrace object used in exceptions for printing stack traces. |
| 7378 class Stacktrace : public Instance { | 7378 class Stacktrace : public Instance { |
| 7379 public: | 7379 public: |
| 7380 static const int kPreallocatedStackdepth = 10; | 7380 static const int kPreallocatedStackdepth = 30; |
| 7381 | 7381 |
| 7382 intptr_t Length() const; | 7382 intptr_t Length() const; |
| 7383 | 7383 |
| 7384 RawFunction* FunctionAtFrame(intptr_t frame_index) const; | 7384 RawFunction* FunctionAtFrame(intptr_t frame_index) const; |
| 7385 | 7385 |
| 7386 RawCode* CodeAtFrame(intptr_t frame_index) const; | 7386 RawCode* CodeAtFrame(intptr_t frame_index) const; |
| 7387 void SetCodeAtFrame(intptr_t frame_index, const Code& code) const; | 7387 void SetCodeAtFrame(intptr_t frame_index, const Code& code) const; |
| 7388 | 7388 |
| 7389 RawSmi* PcOffsetAtFrame(intptr_t frame_index) const; | 7389 RawSmi* PcOffsetAtFrame(intptr_t frame_index) const; |
| 7390 void SetPcOffsetAtFrame(intptr_t frame_index, const Smi& pc_offset) const; | 7390 void SetPcOffsetAtFrame(intptr_t frame_index, const Smi& pc_offset) const; |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7806 | 7806 |
| 7807 | 7807 |
| 7808 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7808 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7809 intptr_t index) { | 7809 intptr_t index) { |
| 7810 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7810 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7811 } | 7811 } |
| 7812 | 7812 |
| 7813 } // namespace dart | 7813 } // namespace dart |
| 7814 | 7814 |
| 7815 #endif // VM_OBJECT_H_ | 7815 #endif // VM_OBJECT_H_ |
| OLD | NEW |