OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 V(FUNCTION_INSTANCE_MAP_INDEX, Map, function_instance_map) \ | 79 V(FUNCTION_INSTANCE_MAP_INDEX, Map, function_instance_map) \ |
80 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ | 80 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ |
81 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ | 81 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ |
82 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ | 82 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ |
83 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ | 83 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ |
84 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ | 84 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ |
85 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ | 85 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
86 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ | 86 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ |
87 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ | 87 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ |
88 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ | 88 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ |
| 89 V(NORMALIZED_MAP_CACHE_INDEX, NormalizedMapCache, normalized_map_cache) \ |
89 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ | 90 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ |
90 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ | 91 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ |
91 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ | 92 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ |
92 call_as_constructor_delegate) \ | 93 call_as_constructor_delegate) \ |
93 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ | 94 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ |
94 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ | 95 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ |
95 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ | 96 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ |
96 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \ | 97 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \ |
97 V(MAP_CACHE_INDEX, Object, map_cache) \ | 98 V(MAP_CACHE_INDEX, Object, map_cache) \ |
98 V(CONTEXT_DATA_INDEX, Object, data) | 99 V(CONTEXT_DATA_INDEX, Object, data) |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 TO_BOOLEAN_FUN_INDEX, | 205 TO_BOOLEAN_FUN_INDEX, |
205 GLOBAL_EVAL_FUN_INDEX, | 206 GLOBAL_EVAL_FUN_INDEX, |
206 INSTANTIATE_FUN_INDEX, | 207 INSTANTIATE_FUN_INDEX, |
207 CONFIGURE_INSTANCE_FUN_INDEX, | 208 CONFIGURE_INSTANCE_FUN_INDEX, |
208 MESSAGE_LISTENERS_INDEX, | 209 MESSAGE_LISTENERS_INDEX, |
209 MAKE_MESSAGE_FUN_INDEX, | 210 MAKE_MESSAGE_FUN_INDEX, |
210 GET_STACK_TRACE_LINE_INDEX, | 211 GET_STACK_TRACE_LINE_INDEX, |
211 CONFIGURE_GLOBAL_INDEX, | 212 CONFIGURE_GLOBAL_INDEX, |
212 FUNCTION_CACHE_INDEX, | 213 FUNCTION_CACHE_INDEX, |
213 JSFUNCTION_RESULT_CACHES_INDEX, | 214 JSFUNCTION_RESULT_CACHES_INDEX, |
| 215 NORMALIZED_MAP_CACHE_INDEX, |
214 RUNTIME_CONTEXT_INDEX, | 216 RUNTIME_CONTEXT_INDEX, |
215 CALL_AS_FUNCTION_DELEGATE_INDEX, | 217 CALL_AS_FUNCTION_DELEGATE_INDEX, |
216 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, | 218 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, |
217 SCRIPT_FUNCTION_INDEX, | 219 SCRIPT_FUNCTION_INDEX, |
218 OPAQUE_REFERENCE_FUNCTION_INDEX, | 220 OPAQUE_REFERENCE_FUNCTION_INDEX, |
219 CONTEXT_EXTENSION_FUNCTION_INDEX, | 221 CONTEXT_EXTENSION_FUNCTION_INDEX, |
220 OUT_OF_MEMORY_INDEX, | 222 OUT_OF_MEMORY_INDEX, |
221 MAP_CACHE_INDEX, | 223 MAP_CACHE_INDEX, |
222 CONTEXT_DATA_INDEX, | 224 CONTEXT_DATA_INDEX, |
223 GLOBAL_CONTEXT_SLOTS | 225 GLOBAL_CONTEXT_SLOTS |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 #ifdef DEBUG | 338 #ifdef DEBUG |
337 // Bootstrapping-aware type checks. | 339 // Bootstrapping-aware type checks. |
338 static bool IsBootstrappingOrContext(Object* object); | 340 static bool IsBootstrappingOrContext(Object* object); |
339 static bool IsBootstrappingOrGlobalObject(Object* object); | 341 static bool IsBootstrappingOrGlobalObject(Object* object); |
340 #endif | 342 #endif |
341 }; | 343 }; |
342 | 344 |
343 } } // namespace v8::internal | 345 } } // namespace v8::internal |
344 | 346 |
345 #endif // V8_CONTEXTS_H_ | 347 #endif // V8_CONTEXTS_H_ |
OLD | NEW |