OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 FUNCTION_CACHE_INDEX, | 218 FUNCTION_CACHE_INDEX, |
219 JSFUNCTION_RESULT_CACHES_INDEX, | 219 JSFUNCTION_RESULT_CACHES_INDEX, |
220 NORMALIZED_MAP_CACHE_INDEX, | 220 NORMALIZED_MAP_CACHE_INDEX, |
221 RUNTIME_CONTEXT_INDEX, | 221 RUNTIME_CONTEXT_INDEX, |
222 CALL_AS_FUNCTION_DELEGATE_INDEX, | 222 CALL_AS_FUNCTION_DELEGATE_INDEX, |
223 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, | 223 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, |
224 SCRIPT_FUNCTION_INDEX, | 224 SCRIPT_FUNCTION_INDEX, |
225 OPAQUE_REFERENCE_FUNCTION_INDEX, | 225 OPAQUE_REFERENCE_FUNCTION_INDEX, |
226 CONTEXT_EXTENSION_FUNCTION_INDEX, | 226 CONTEXT_EXTENSION_FUNCTION_INDEX, |
227 OUT_OF_MEMORY_INDEX, | 227 OUT_OF_MEMORY_INDEX, |
228 MAP_CACHE_INDEX, | |
229 CONTEXT_DATA_INDEX, | 228 CONTEXT_DATA_INDEX, |
230 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, | 229 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, |
231 DERIVED_GET_TRAP_INDEX, | 230 DERIVED_GET_TRAP_INDEX, |
232 DERIVED_SET_TRAP_INDEX, | 231 DERIVED_SET_TRAP_INDEX, |
233 | 232 |
234 // Properties from here are treated as weak references by the full GC. | 233 // Properties from here are treated as weak references by the full GC. |
235 // Scavenge treats them as strong references. | 234 // Scavenge treats them as strong references. |
236 OPTIMIZED_FUNCTIONS_LIST, // Weak. | 235 OPTIMIZED_FUNCTIONS_LIST, // Weak. |
| 236 MAP_CACHE_INDEX, // Weak. |
237 NEXT_CONTEXT_LINK, // Weak. | 237 NEXT_CONTEXT_LINK, // Weak. |
238 | 238 |
239 // Total number of slots. | 239 // Total number of slots. |
240 GLOBAL_CONTEXT_SLOTS, | 240 GLOBAL_CONTEXT_SLOTS, |
241 | 241 |
242 FIRST_WEAK_SLOT = OPTIMIZED_FUNCTIONS_LIST | 242 FIRST_WEAK_SLOT = OPTIMIZED_FUNCTIONS_LIST |
243 }; | 243 }; |
244 | 244 |
245 // Direct slot access. | 245 // Direct slot access. |
246 JSFunction* closure() { return JSFunction::cast(get(CLOSURE_INDEX)); } | 246 JSFunction* closure() { return JSFunction::cast(get(CLOSURE_INDEX)); } |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 #ifdef DEBUG | 385 #ifdef DEBUG |
386 // Bootstrapping-aware type checks. | 386 // Bootstrapping-aware type checks. |
387 static bool IsBootstrappingOrContext(Object* object); | 387 static bool IsBootstrappingOrContext(Object* object); |
388 static bool IsBootstrappingOrGlobalObject(Object* object); | 388 static bool IsBootstrappingOrGlobalObject(Object* object); |
389 #endif | 389 #endif |
390 }; | 390 }; |
391 | 391 |
392 } } // namespace v8::internal | 392 } } // namespace v8::internal |
393 | 393 |
394 #endif // V8_CONTEXTS_H_ | 394 #endif // V8_CONTEXTS_H_ |
OLD | NEW |