OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 3993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4004 // no contexts are allocated for this scope ContextLength returns 0. | 4004 // no contexts are allocated for this scope ContextLength returns 0. |
4005 int ContextLength(); | 4005 int ContextLength(); |
4006 | 4006 |
4007 // Does this scope declare a "this" binding? | 4007 // Does this scope declare a "this" binding? |
4008 bool HasReceiver(); | 4008 bool HasReceiver(); |
4009 | 4009 |
4010 // Does this scope declare a "this" binding, and the "this" binding is stack- | 4010 // Does this scope declare a "this" binding, and the "this" binding is stack- |
4011 // or context-allocated? | 4011 // or context-allocated? |
4012 bool HasAllocatedReceiver(); | 4012 bool HasAllocatedReceiver(); |
4013 | 4013 |
| 4014 // Does this scope declare a context-allocated "this" binding? |
| 4015 bool HasContextAllocatedReceiver(); |
| 4016 |
4014 // Does this scope declare a "new.target" binding? | 4017 // Does this scope declare a "new.target" binding? |
4015 bool HasNewTarget(); | 4018 bool HasNewTarget(); |
4016 | 4019 |
4017 // Is this scope the scope of a named function expression? | 4020 // Is this scope the scope of a named function expression? |
4018 bool HasFunctionName(); | 4021 bool HasFunctionName(); |
4019 | 4022 |
4020 // Return if this has context allocated locals. | 4023 // Return if this has context allocated locals. |
4021 bool HasHeapAllocatedLocals(); | 4024 bool HasHeapAllocatedLocals(); |
4022 | 4025 |
4023 // Return if contexts are allocated for this scope. | 4026 // Return if contexts are allocated for this scope. |
(...skipping 6693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10717 } | 10720 } |
10718 return value; | 10721 return value; |
10719 } | 10722 } |
10720 }; | 10723 }; |
10721 | 10724 |
10722 | 10725 |
10723 } // NOLINT, false-positive due to second-order macros. | 10726 } // NOLINT, false-positive due to second-order macros. |
10724 } // NOLINT, false-positive due to second-order macros. | 10727 } // NOLINT, false-positive due to second-order macros. |
10725 | 10728 |
10726 #endif // V8_OBJECTS_H_ | 10729 #endif // V8_OBJECTS_H_ |
OLD | NEW |