| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/assert-scope.h" | 10 #include "src/assert-scope.h" |
| (...skipping 4176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4187 VariableMode ContextLocalMode(int var); | 4187 VariableMode ContextLocalMode(int var); |
| 4188 | 4188 |
| 4189 // Return the initialization flag of the given context local. | 4189 // Return the initialization flag of the given context local. |
| 4190 InitializationFlag ContextLocalInitFlag(int var); | 4190 InitializationFlag ContextLocalInitFlag(int var); |
| 4191 | 4191 |
| 4192 // Return the initialization flag of the given context local. | 4192 // Return the initialization flag of the given context local. |
| 4193 MaybeAssignedFlag ContextLocalMaybeAssignedFlag(int var); | 4193 MaybeAssignedFlag ContextLocalMaybeAssignedFlag(int var); |
| 4194 | 4194 |
| 4195 // Return true if this local was introduced by the compiler, and should not be | 4195 // Return true if this local was introduced by the compiler, and should not be |
| 4196 // exposed to the user in a debugger. | 4196 // exposed to the user in a debugger. |
| 4197 bool LocalIsSynthetic(int var); | 4197 static bool VariableIsSynthetic(String* name); |
| 4198 | 4198 |
| 4199 // Lookup support for serialized scope info. Returns the | 4199 // Lookup support for serialized scope info. Returns the |
| 4200 // the stack slot index for a given slot name if the slot is | 4200 // the stack slot index for a given slot name if the slot is |
| 4201 // present; otherwise returns a value < 0. The name must be an internalized | 4201 // present; otherwise returns a value < 0. The name must be an internalized |
| 4202 // string. | 4202 // string. |
| 4203 int StackSlotIndex(String* name); | 4203 int StackSlotIndex(String* name); |
| 4204 | 4204 |
| 4205 // Lookup support for serialized scope info. Returns the local context slot | 4205 // Lookup support for serialized scope info. Returns the local context slot |
| 4206 // index for a given slot name if the slot is present; otherwise | 4206 // index for a given slot name if the slot is present; otherwise |
| 4207 // returns a value < 0. The name must be an internalized string. | 4207 // returns a value < 0. The name must be an internalized string. |
| (...skipping 6581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10789 } | 10789 } |
| 10790 return value; | 10790 return value; |
| 10791 } | 10791 } |
| 10792 }; | 10792 }; |
| 10793 | 10793 |
| 10794 | 10794 |
| 10795 } // NOLINT, false-positive due to second-order macros. | 10795 } // NOLINT, false-positive due to second-order macros. |
| 10796 } // NOLINT, false-positive due to second-order macros. | 10796 } // NOLINT, false-positive due to second-order macros. |
| 10797 | 10797 |
| 10798 #endif // V8_OBJECTS_H_ | 10798 #endif // V8_OBJECTS_H_ |
| OLD | NEW |