| 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 6093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6104 | 6104 |
| 6105 private: | 6105 private: |
| 6106 void set_code_array(const Array& code_array) const; | 6106 void set_code_array(const Array& code_array) const; |
| 6107 void set_pc_offset_array(const Array& pc_offset_array) const; | 6107 void set_pc_offset_array(const Array& pc_offset_array) const; |
| 6108 void set_catch_code_array(const Array& code_array) const; | 6108 void set_catch_code_array(const Array& code_array) const; |
| 6109 void set_catch_pc_offset_array(const Array& pc_offset_array) const; | 6109 void set_catch_pc_offset_array(const Array& pc_offset_array) const; |
| 6110 bool expand_inlined() const; | 6110 bool expand_inlined() const; |
| 6111 | 6111 |
| 6112 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); | 6112 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); |
| 6113 friend class Class; | 6113 friend class Class; |
| 6114 friend class Debugger; |
| 6114 }; | 6115 }; |
| 6115 | 6116 |
| 6116 | 6117 |
| 6117 // Internal JavaScript regular expression object. | 6118 // Internal JavaScript regular expression object. |
| 6118 class JSRegExp : public Instance { | 6119 class JSRegExp : public Instance { |
| 6119 public: | 6120 public: |
| 6120 // Meaning of RegExType: | 6121 // Meaning of RegExType: |
| 6121 // kUninitialized: the type of th regexp has not been initialized yet. | 6122 // kUninitialized: the type of th regexp has not been initialized yet. |
| 6122 // kSimple: A simple pattern to match against, using string indexOf operation. | 6123 // kSimple: A simple pattern to match against, using string indexOf operation. |
| 6123 // kComplex: A complex pattern to match. | 6124 // kComplex: A complex pattern to match. |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6381 | 6382 |
| 6382 | 6383 |
| 6383 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6384 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6384 intptr_t index) { | 6385 intptr_t index) { |
| 6385 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6386 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6386 } | 6387 } |
| 6387 | 6388 |
| 6388 } // namespace dart | 6389 } // namespace dart |
| 6389 | 6390 |
| 6390 #endif // VM_OBJECT_H_ | 6391 #endif // VM_OBJECT_H_ |
| OLD | NEW |