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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 V(FUNCTION_MAP_INDEX, Map, function_map) \ | 80 V(FUNCTION_MAP_INDEX, Map, function_map) \ |
81 V(FUNCTION_MAP_INDEX_STRICT, Map, function_map_strict) \ | 81 V(FUNCTION_MAP_INDEX_STRICT, Map, function_map_strict) \ |
82 V(FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, function_without_prototype_map) \ | 82 V(FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, function_without_prototype_map) \ |
83 V(FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX_STRICT, Map, \ | 83 V(FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX_STRICT, Map, \ |
84 function_without_prototype_map_strict) \ | 84 function_without_prototype_map_strict) \ |
85 V(FUNCTION_INSTANCE_MAP_INDEX, Map, function_instance_map) \ | 85 V(FUNCTION_INSTANCE_MAP_INDEX, Map, function_instance_map) \ |
86 V(FUNCTION_INSTANCE_MAP_INDEX_STRICT, Map, function_instance_map_strict) \ | 86 V(FUNCTION_INSTANCE_MAP_INDEX_STRICT, Map, function_instance_map_strict) \ |
87 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ | 87 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ |
88 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ | 88 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ |
89 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ | 89 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ |
| 90 V(ARGUMENTS_BOILERPLATE_STRICT_INDEX, JSObject, \ |
| 91 arguments_boilerplate_strict) \ |
90 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ | 92 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ |
91 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ | 93 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ |
92 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ | 94 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
93 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ | 95 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ |
94 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ | 96 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ |
95 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ | 97 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ |
96 V(NORMALIZED_MAP_CACHE_INDEX, NormalizedMapCache, normalized_map_cache) \ | 98 V(NORMALIZED_MAP_CACHE_INDEX, NormalizedMapCache, normalized_map_cache) \ |
97 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ | 99 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ |
98 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ | 100 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ |
99 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ | 101 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 FCONTEXT_INDEX, | 181 FCONTEXT_INDEX, |
180 PREVIOUS_INDEX, | 182 PREVIOUS_INDEX, |
181 EXTENSION_INDEX, | 183 EXTENSION_INDEX, |
182 GLOBAL_INDEX, | 184 GLOBAL_INDEX, |
183 MIN_CONTEXT_SLOTS, | 185 MIN_CONTEXT_SLOTS, |
184 | 186 |
185 // These slots are only in global contexts. | 187 // These slots are only in global contexts. |
186 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, | 188 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, |
187 SECURITY_TOKEN_INDEX, | 189 SECURITY_TOKEN_INDEX, |
188 ARGUMENTS_BOILERPLATE_INDEX, | 190 ARGUMENTS_BOILERPLATE_INDEX, |
| 191 ARGUMENTS_BOILERPLATE_STRICT_INDEX, |
189 JS_ARRAY_MAP_INDEX, | 192 JS_ARRAY_MAP_INDEX, |
190 REGEXP_RESULT_MAP_INDEX, | 193 REGEXP_RESULT_MAP_INDEX, |
191 FUNCTION_MAP_INDEX, | 194 FUNCTION_MAP_INDEX, |
192 FUNCTION_MAP_INDEX_STRICT, | 195 FUNCTION_MAP_INDEX_STRICT, |
193 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, | 196 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
194 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX_STRICT, | 197 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX_STRICT, |
195 FUNCTION_INSTANCE_MAP_INDEX, | 198 FUNCTION_INSTANCE_MAP_INDEX, |
196 FUNCTION_INSTANCE_MAP_INDEX_STRICT, | 199 FUNCTION_INSTANCE_MAP_INDEX_STRICT, |
197 INITIAL_OBJECT_PROTOTYPE_INDEX, | 200 INITIAL_OBJECT_PROTOTYPE_INDEX, |
198 BOOLEAN_FUNCTION_INDEX, | 201 BOOLEAN_FUNCTION_INDEX, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 #ifdef DEBUG | 377 #ifdef DEBUG |
375 // Bootstrapping-aware type checks. | 378 // Bootstrapping-aware type checks. |
376 static bool IsBootstrappingOrContext(Object* object); | 379 static bool IsBootstrappingOrContext(Object* object); |
377 static bool IsBootstrappingOrGlobalObject(Object* object); | 380 static bool IsBootstrappingOrGlobalObject(Object* object); |
378 #endif | 381 #endif |
379 }; | 382 }; |
380 | 383 |
381 } } // namespace v8::internal | 384 } } // namespace v8::internal |
382 | 385 |
383 #endif // V8_CONTEXTS_H_ | 386 #endif // V8_CONTEXTS_H_ |
OLD | NEW |