| 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 2231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2242 bool HasCode() const; | 2242 bool HasCode() const; |
| 2243 | 2243 |
| 2244 static intptr_t code_offset() { | 2244 static intptr_t code_offset() { |
| 2245 return OFFSET_OF(RawFunction, code_); | 2245 return OFFSET_OF(RawFunction, code_); |
| 2246 } | 2246 } |
| 2247 | 2247 |
| 2248 static intptr_t entry_point_offset() { | 2248 static intptr_t entry_point_offset() { |
| 2249 return OFFSET_OF(RawFunction, entry_point_); | 2249 return OFFSET_OF(RawFunction, entry_point_); |
| 2250 } | 2250 } |
| 2251 | 2251 |
| 2252 virtual intptr_t Hash() const; |
| 2253 |
| 2252 // Returns true if there is at least one debugger breakpoint | 2254 // Returns true if there is at least one debugger breakpoint |
| 2253 // set in this function. | 2255 // set in this function. |
| 2254 bool HasBreakpoint() const; | 2256 bool HasBreakpoint() const; |
| 2255 | 2257 |
| 2256 RawContextScope* context_scope() const; | 2258 RawContextScope* context_scope() const; |
| 2257 void set_context_scope(const ContextScope& value) const; | 2259 void set_context_scope(const ContextScope& value) const; |
| 2258 | 2260 |
| 2259 RawField* LookupImplicitGetterSetterField() const; | 2261 RawField* LookupImplicitGetterSetterField() const; |
| 2260 | 2262 |
| 2261 // Enclosing function of this local function. | 2263 // Enclosing function of this local function. |
| (...skipping 6153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8415 | 8417 |
| 8416 | 8418 |
| 8417 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8419 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8418 intptr_t index) { | 8420 intptr_t index) { |
| 8419 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8421 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8420 } | 8422 } |
| 8421 | 8423 |
| 8422 } // namespace dart | 8424 } // namespace dart |
| 8423 | 8425 |
| 8424 #endif // VM_OBJECT_H_ | 8426 #endif // VM_OBJECT_H_ |
| OLD | NEW |