OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ | 156 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ |
157 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ | 157 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ |
158 error_message_for_code_gen_from_strings) \ | 158 error_message_for_code_gen_from_strings) \ |
159 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ | 159 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ |
160 to_complete_property_descriptor) \ | 160 to_complete_property_descriptor) \ |
161 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ | 161 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ |
162 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ | 162 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ |
163 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ | 163 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ |
164 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ | 164 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ |
165 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ | 165 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ |
166 V(OBSERVERS_DELIVER_CHANGES_INDEX, JSFunction, observers_deliver_changes) \ | |
166 V(RANDOM_SEED_INDEX, ByteArray, random_seed) | 167 V(RANDOM_SEED_INDEX, ByteArray, random_seed) |
167 | 168 |
168 // JSFunctions are pairs (context, function code), sometimes also called | 169 // JSFunctions are pairs (context, function code), sometimes also called |
169 // closures. A Context object is used to represent function contexts and | 170 // closures. A Context object is used to represent function contexts and |
170 // dynamically pushed 'with' contexts (or 'scopes' in ECMA-262 speak). | 171 // dynamically pushed 'with' contexts (or 'scopes' in ECMA-262 speak). |
171 // | 172 // |
172 // At runtime, the contexts build a stack in parallel to the execution | 173 // At runtime, the contexts build a stack in parallel to the execution |
173 // stack, with the top-most context being the current context. All contexts | 174 // stack, with the top-most context being the current context. All contexts |
174 // have the following slots: | 175 // have the following slots: |
175 // | 176 // |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
284 OUT_OF_MEMORY_INDEX, | 285 OUT_OF_MEMORY_INDEX, |
285 EMBEDDER_DATA_INDEX, | 286 EMBEDDER_DATA_INDEX, |
286 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, | 287 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, |
287 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, | 288 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, |
288 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, | 289 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, |
289 DERIVED_HAS_TRAP_INDEX, | 290 DERIVED_HAS_TRAP_INDEX, |
290 DERIVED_GET_TRAP_INDEX, | 291 DERIVED_GET_TRAP_INDEX, |
291 DERIVED_SET_TRAP_INDEX, | 292 DERIVED_SET_TRAP_INDEX, |
292 PROXY_ENUMERATE_INDEX, | 293 PROXY_ENUMERATE_INDEX, |
293 OBSERVERS_NOTIFY_CHANGE_INDEX, | 294 OBSERVERS_NOTIFY_CHANGE_INDEX, |
295 OBSERVERS_DELIVER_CHANGES_INDEX, | |
294 RANDOM_SEED_INDEX, | 296 RANDOM_SEED_INDEX, |
297 DELIVER_CHANGE_RECORDS_INDEX, | |
rossberg
2012/11/06 16:45:57
Is this perhaps some orphan duplicate of the above
adamk
2012/11/06 17:00:09
Yeah, merge fail. Removed.
rafaelw
2012/11/06 17:04:41
don't need this any more, right?
| |
295 | 298 |
296 // Properties from here are treated as weak references by the full GC. | 299 // Properties from here are treated as weak references by the full GC. |
297 // Scavenge treats them as strong references. | 300 // Scavenge treats them as strong references. |
298 OPTIMIZED_FUNCTIONS_LIST, // Weak. | 301 OPTIMIZED_FUNCTIONS_LIST, // Weak. |
299 MAP_CACHE_INDEX, // Weak. | 302 MAP_CACHE_INDEX, // Weak. |
300 NEXT_CONTEXT_LINK, // Weak. | 303 NEXT_CONTEXT_LINK, // Weak. |
301 | 304 |
302 // Total number of slots. | 305 // Total number of slots. |
303 NATIVE_CONTEXT_SLOTS, | 306 NATIVE_CONTEXT_SLOTS, |
304 | 307 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
449 static bool IsBootstrappingOrGlobalObject(Object* object); | 452 static bool IsBootstrappingOrGlobalObject(Object* object); |
450 #endif | 453 #endif |
451 | 454 |
452 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); | 455 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); |
453 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 456 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
454 }; | 457 }; |
455 | 458 |
456 } } // namespace v8::internal | 459 } } // namespace v8::internal |
457 | 460 |
458 #endif // V8_CONTEXTS_H_ | 461 #endif // V8_CONTEXTS_H_ |
OLD | NEW |