| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 call_as_constructor_delegate) \ | 159 call_as_constructor_delegate) \ |
| 160 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ | 160 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ |
| 161 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ | 161 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ |
| 162 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ | 162 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ |
| 163 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \ | 163 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \ |
| 164 V(MAP_CACHE_INDEX, Object, map_cache) \ | 164 V(MAP_CACHE_INDEX, Object, map_cache) \ |
| 165 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ | 165 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ |
| 166 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ | 166 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ |
| 167 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ | 167 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ |
| 168 error_message_for_code_gen_from_strings) \ | 168 error_message_for_code_gen_from_strings) \ |
| 169 V(RUN_MICROTASKS_INDEX, JSFunction, run_microtasks) \ |
| 169 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ | 170 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ |
| 170 to_complete_property_descriptor) \ | 171 to_complete_property_descriptor) \ |
| 171 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ | 172 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ |
| 172 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ | 173 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ |
| 173 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ | 174 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ |
| 174 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ | 175 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ |
| 175 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ | 176 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ |
| 176 V(OBSERVERS_ENQUEUE_SPLICE_INDEX, JSFunction, observers_enqueue_splice) \ | 177 V(OBSERVERS_ENQUEUE_SPLICE_INDEX, JSFunction, observers_enqueue_splice) \ |
| 177 V(OBSERVERS_BEGIN_SPLICE_INDEX, JSFunction, \ | 178 V(OBSERVERS_BEGIN_SPLICE_INDEX, JSFunction, \ |
| 178 observers_begin_perform_splice) \ | 179 observers_begin_perform_splice) \ |
| 179 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, \ | 180 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, \ |
| 180 observers_end_perform_splice) \ | 181 observers_end_perform_splice) \ |
| 181 V(OBSERVERS_DELIVER_CHANGES_INDEX, JSFunction, observers_deliver_changes) \ | |
| 182 V(GENERATOR_FUNCTION_MAP_INDEX, Map, generator_function_map) \ | 182 V(GENERATOR_FUNCTION_MAP_INDEX, Map, generator_function_map) \ |
| 183 V(STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX, Map, \ | 183 V(STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX, Map, \ |
| 184 strict_mode_generator_function_map) \ | 184 strict_mode_generator_function_map) \ |
| 185 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, \ | 185 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, \ |
| 186 generator_object_prototype_map) \ | 186 generator_object_prototype_map) \ |
| 187 V(GENERATOR_RESULT_MAP_INDEX, Map, generator_result_map) | 187 V(GENERATOR_RESULT_MAP_INDEX, Map, generator_result_map) |
| 188 | 188 |
| 189 // JSFunctions are pairs (context, function code), sometimes also called | 189 // JSFunctions are pairs (context, function code), sometimes also called |
| 190 // closures. A Context object is used to represent function contexts and | 190 // closures. A Context object is used to represent function contexts and |
| 191 // dynamically pushed 'with' contexts (or 'scopes' in ECMA-262 speak). | 191 // dynamically pushed 'with' contexts (or 'scopes' in ECMA-262 speak). |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 RUNTIME_CONTEXT_INDEX, | 310 RUNTIME_CONTEXT_INDEX, |
| 311 CALL_AS_FUNCTION_DELEGATE_INDEX, | 311 CALL_AS_FUNCTION_DELEGATE_INDEX, |
| 312 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, | 312 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, |
| 313 SCRIPT_FUNCTION_INDEX, | 313 SCRIPT_FUNCTION_INDEX, |
| 314 OPAQUE_REFERENCE_FUNCTION_INDEX, | 314 OPAQUE_REFERENCE_FUNCTION_INDEX, |
| 315 CONTEXT_EXTENSION_FUNCTION_INDEX, | 315 CONTEXT_EXTENSION_FUNCTION_INDEX, |
| 316 OUT_OF_MEMORY_INDEX, | 316 OUT_OF_MEMORY_INDEX, |
| 317 EMBEDDER_DATA_INDEX, | 317 EMBEDDER_DATA_INDEX, |
| 318 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, | 318 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, |
| 319 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, | 319 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, |
| 320 RUN_MICROTASKS_INDEX, |
| 320 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, | 321 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, |
| 321 DERIVED_HAS_TRAP_INDEX, | 322 DERIVED_HAS_TRAP_INDEX, |
| 322 DERIVED_GET_TRAP_INDEX, | 323 DERIVED_GET_TRAP_INDEX, |
| 323 DERIVED_SET_TRAP_INDEX, | 324 DERIVED_SET_TRAP_INDEX, |
| 324 PROXY_ENUMERATE_INDEX, | 325 PROXY_ENUMERATE_INDEX, |
| 325 OBSERVERS_NOTIFY_CHANGE_INDEX, | 326 OBSERVERS_NOTIFY_CHANGE_INDEX, |
| 326 OBSERVERS_ENQUEUE_SPLICE_INDEX, | 327 OBSERVERS_ENQUEUE_SPLICE_INDEX, |
| 327 OBSERVERS_BEGIN_SPLICE_INDEX, | 328 OBSERVERS_BEGIN_SPLICE_INDEX, |
| 328 OBSERVERS_END_SPLICE_INDEX, | 329 OBSERVERS_END_SPLICE_INDEX, |
| 329 OBSERVERS_DELIVER_CHANGES_INDEX, | |
| 330 GENERATOR_FUNCTION_MAP_INDEX, | 330 GENERATOR_FUNCTION_MAP_INDEX, |
| 331 STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX, | 331 STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX, |
| 332 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, | 332 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, |
| 333 GENERATOR_RESULT_MAP_INDEX, | 333 GENERATOR_RESULT_MAP_INDEX, |
| 334 | 334 |
| 335 // Properties from here are treated as weak references by the full GC. | 335 // Properties from here are treated as weak references by the full GC. |
| 336 // Scavenge treats them as strong references. | 336 // Scavenge treats them as strong references. |
| 337 OPTIMIZED_FUNCTIONS_LIST, // Weak. | 337 OPTIMIZED_FUNCTIONS_LIST, // Weak. |
| 338 OPTIMIZED_CODE_LIST, // Weak. | 338 OPTIMIZED_CODE_LIST, // Weak. |
| 339 DEOPTIMIZED_CODE_LIST, // Weak. | 339 DEOPTIMIZED_CODE_LIST, // Weak. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 519 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
| 520 #endif | 520 #endif |
| 521 | 521 |
| 522 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); | 522 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); |
| 523 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 523 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
| 524 }; | 524 }; |
| 525 | 525 |
| 526 } } // namespace v8::internal | 526 } } // namespace v8::internal |
| 527 | 527 |
| 528 #endif // V8_CONTEXTS_H_ | 528 #endif // V8_CONTEXTS_H_ |
| OLD | NEW |