| 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 2507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2518 // Returns true if this function represents a non implicit closure function. | 2518 // Returns true if this function represents a non implicit closure function. |
| 2519 bool IsNonImplicitClosureFunction() const { | 2519 bool IsNonImplicitClosureFunction() const { |
| 2520 return IsClosureFunction() && !IsImplicitClosureFunction(); | 2520 return IsClosureFunction() && !IsImplicitClosureFunction(); |
| 2521 } | 2521 } |
| 2522 | 2522 |
| 2523 // Returns true if this function represents an implicit static closure | 2523 // Returns true if this function represents an implicit static closure |
| 2524 // function. | 2524 // function. |
| 2525 bool IsImplicitStaticClosureFunction() const { | 2525 bool IsImplicitStaticClosureFunction() const { |
| 2526 return is_static() && IsImplicitClosureFunction(); | 2526 return is_static() && IsImplicitClosureFunction(); |
| 2527 } | 2527 } |
| 2528 bool static IsImplicitStaticClosureFunction(RawFunction* func); | 2528 static bool IsImplicitStaticClosureFunction(RawFunction* func); |
| 2529 | 2529 |
| 2530 // Returns true if this function represents an implicit instance closure | 2530 // Returns true if this function represents an implicit instance closure |
| 2531 // function. | 2531 // function. |
| 2532 bool IsImplicitInstanceClosureFunction() const { | 2532 bool IsImplicitInstanceClosureFunction() const { |
| 2533 return !is_static() && IsImplicitClosureFunction(); | 2533 return !is_static() && IsImplicitClosureFunction(); |
| 2534 } | 2534 } |
| 2535 | 2535 |
| 2536 bool IsConstructorClosureFunction() const; | 2536 bool IsConstructorClosureFunction() const; |
| 2537 | 2537 |
| 2538 // Returns true if this function represents a local function. | 2538 // Returns true if this function represents a local function. |
| (...skipping 5756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8295 | 8295 |
| 8296 | 8296 |
| 8297 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8297 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8298 intptr_t index) { | 8298 intptr_t index) { |
| 8299 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8299 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8300 } | 8300 } |
| 8301 | 8301 |
| 8302 } // namespace dart | 8302 } // namespace dart |
| 8303 | 8303 |
| 8304 #endif // VM_OBJECT_H_ | 8304 #endif // VM_OBJECT_H_ |
| OLD | NEW |