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 6135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6146 | 6146 |
6147 private: | 6147 private: |
6148 void set_code_array(const Array& code_array) const; | 6148 void set_code_array(const Array& code_array) const; |
6149 void set_pc_offset_array(const Array& pc_offset_array) const; | 6149 void set_pc_offset_array(const Array& pc_offset_array) const; |
6150 void set_catch_code_array(const Array& code_array) const; | 6150 void set_catch_code_array(const Array& code_array) const; |
6151 void set_catch_pc_offset_array(const Array& pc_offset_array) const; | 6151 void set_catch_pc_offset_array(const Array& pc_offset_array) const; |
6152 bool expand_inlined() const; | 6152 bool expand_inlined() const; |
6153 | 6153 |
6154 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); | 6154 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); |
6155 friend class Class; | 6155 friend class Class; |
| 6156 friend class Debugger; |
6156 }; | 6157 }; |
6157 | 6158 |
6158 | 6159 |
6159 // Internal JavaScript regular expression object. | 6160 // Internal JavaScript regular expression object. |
6160 class JSRegExp : public Instance { | 6161 class JSRegExp : public Instance { |
6161 public: | 6162 public: |
6162 // Meaning of RegExType: | 6163 // Meaning of RegExType: |
6163 // kUninitialized: the type of th regexp has not been initialized yet. | 6164 // kUninitialized: the type of th regexp has not been initialized yet. |
6164 // kSimple: A simple pattern to match against, using string indexOf operation. | 6165 // kSimple: A simple pattern to match against, using string indexOf operation. |
6165 // kComplex: A complex pattern to match. | 6166 // kComplex: A complex pattern to match. |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6423 | 6424 |
6424 | 6425 |
6425 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6426 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
6426 intptr_t index) { | 6427 intptr_t index) { |
6427 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6428 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
6428 } | 6429 } |
6429 | 6430 |
6430 } // namespace dart | 6431 } // namespace dart |
6431 | 6432 |
6432 #endif // VM_OBJECT_H_ | 6433 #endif // VM_OBJECT_H_ |
OLD | NEW |