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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ | 71 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ |
72 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ | 72 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ |
73 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ | 73 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ |
74 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ | 74 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ |
75 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \ | 75 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \ |
76 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \ | 76 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \ |
77 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ | 77 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ |
78 V(INSTANTIATE_FUN_INDEX, JSFunction, instantiate_fun) \ | 78 V(INSTANTIATE_FUN_INDEX, JSFunction, instantiate_fun) \ |
79 V(CONFIGURE_INSTANCE_FUN_INDEX, JSFunction, configure_instance_fun) \ | 79 V(CONFIGURE_INSTANCE_FUN_INDEX, JSFunction, configure_instance_fun) \ |
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_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, \ |
| 84 function_without_prototype_map_strict) \ |
82 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) \ |
83 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ | 87 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ |
84 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ | 88 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ |
85 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ | 89 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ |
86 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ | 90 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ |
87 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ | 91 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ |
88 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ | 92 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
89 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ | 93 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ |
90 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ | 94 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ |
91 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ | 95 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ |
92 V(NORMALIZED_MAP_CACHE_INDEX, NormalizedMapCache, normalized_map_cache) \ | 96 V(NORMALIZED_MAP_CACHE_INDEX, NormalizedMapCache, normalized_map_cache) \ |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 GLOBAL_INDEX, | 182 GLOBAL_INDEX, |
179 MIN_CONTEXT_SLOTS, | 183 MIN_CONTEXT_SLOTS, |
180 | 184 |
181 // These slots are only in global contexts. | 185 // These slots are only in global contexts. |
182 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, | 186 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, |
183 SECURITY_TOKEN_INDEX, | 187 SECURITY_TOKEN_INDEX, |
184 ARGUMENTS_BOILERPLATE_INDEX, | 188 ARGUMENTS_BOILERPLATE_INDEX, |
185 JS_ARRAY_MAP_INDEX, | 189 JS_ARRAY_MAP_INDEX, |
186 REGEXP_RESULT_MAP_INDEX, | 190 REGEXP_RESULT_MAP_INDEX, |
187 FUNCTION_MAP_INDEX, | 191 FUNCTION_MAP_INDEX, |
| 192 FUNCTION_MAP_INDEX_STRICT, |
188 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, | 193 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
| 194 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX_STRICT, |
189 FUNCTION_INSTANCE_MAP_INDEX, | 195 FUNCTION_INSTANCE_MAP_INDEX, |
| 196 FUNCTION_INSTANCE_MAP_INDEX_STRICT, |
190 INITIAL_OBJECT_PROTOTYPE_INDEX, | 197 INITIAL_OBJECT_PROTOTYPE_INDEX, |
191 BOOLEAN_FUNCTION_INDEX, | 198 BOOLEAN_FUNCTION_INDEX, |
192 NUMBER_FUNCTION_INDEX, | 199 NUMBER_FUNCTION_INDEX, |
193 STRING_FUNCTION_INDEX, | 200 STRING_FUNCTION_INDEX, |
194 STRING_FUNCTION_PROTOTYPE_MAP_INDEX, | 201 STRING_FUNCTION_PROTOTYPE_MAP_INDEX, |
195 OBJECT_FUNCTION_INDEX, | 202 OBJECT_FUNCTION_INDEX, |
196 ARRAY_FUNCTION_INDEX, | 203 ARRAY_FUNCTION_INDEX, |
197 DATE_FUNCTION_INDEX, | 204 DATE_FUNCTION_INDEX, |
198 JSON_OBJECT_INDEX, | 205 JSON_OBJECT_INDEX, |
199 REGEXP_FUNCTION_INDEX, | 206 REGEXP_FUNCTION_INDEX, |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 #ifdef DEBUG | 374 #ifdef DEBUG |
368 // Bootstrapping-aware type checks. | 375 // Bootstrapping-aware type checks. |
369 static bool IsBootstrappingOrContext(Object* object); | 376 static bool IsBootstrappingOrContext(Object* object); |
370 static bool IsBootstrappingOrGlobalObject(Object* object); | 377 static bool IsBootstrappingOrGlobalObject(Object* object); |
371 #endif | 378 #endif |
372 }; | 379 }; |
373 | 380 |
374 } } // namespace v8::internal | 381 } } // namespace v8::internal |
375 | 382 |
376 #endif // V8_CONTEXTS_H_ | 383 #endif // V8_CONTEXTS_H_ |
OLD | NEW |