| 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_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
| 6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 | 936 |
| 937 // A slot in the local section on the stack. index() is the variable | 937 // A slot in the local section on the stack. index() is the variable |
| 938 // index in the stack frame, starting at 0. | 938 // index in the stack frame, starting at 0. |
| 939 LOCAL, | 939 LOCAL, |
| 940 | 940 |
| 941 // An indexed slot in a heap context. index() is the variable index in | 941 // An indexed slot in a heap context. index() is the variable index in |
| 942 // the context object on the heap, starting at 0. scope() is the | 942 // the context object on the heap, starting at 0. scope() is the |
| 943 // corresponding scope. | 943 // corresponding scope. |
| 944 CONTEXT, | 944 CONTEXT, |
| 945 | 945 |
| 946 // An indexed slot in a script context that contains a respective global | |
| 947 // property cell. name() is the variable name, index() is the variable | |
| 948 // index in the context object on the heap, starting at 0. scope() is the | |
| 949 // corresponding script scope. | |
| 950 GLOBAL, | |
| 951 | |
| 952 // A named slot in a heap context. name() is the variable name in the | 946 // A named slot in a heap context. name() is the variable name in the |
| 953 // context object on the heap, with lookup starting at the current | 947 // context object on the heap, with lookup starting at the current |
| 954 // context. index() is invalid. | 948 // context. index() is invalid. |
| 955 LOOKUP, | 949 LOOKUP, |
| 956 | 950 |
| 957 // A named slot in a module's export table. | 951 // A named slot in a module's export table. |
| 958 MODULE, | 952 MODULE, |
| 959 | 953 |
| 960 kLastVariableLocation = MODULE | 954 kLastVariableLocation = MODULE |
| 961 }; | 955 }; |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1157 public: | 1151 public: |
| 1158 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 }; | 1152 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 }; |
| 1159 }; | 1153 }; |
| 1160 | 1154 |
| 1161 } // namespace internal | 1155 } // namespace internal |
| 1162 } // namespace v8 | 1156 } // namespace v8 |
| 1163 | 1157 |
| 1164 namespace i = v8::internal; | 1158 namespace i = v8::internal; |
| 1165 | 1159 |
| 1166 #endif // V8_GLOBALS_H_ | 1160 #endif // V8_GLOBALS_H_ |
| OLD | NEW |