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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ | 67 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ |
68 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ | 68 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ |
69 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ | 69 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ |
70 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ | 70 V(TO_INTEGER_FUN_INDEX, JSFunction, to_integer_fun) \ |
71 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \ | 71 V(TO_UINT32_FUN_INDEX, JSFunction, to_uint32_fun) \ |
72 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \ | 72 V(TO_INT32_FUN_INDEX, JSFunction, to_int32_fun) \ |
73 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ | 73 V(GLOBAL_EVAL_FUN_INDEX, JSFunction, global_eval_fun) \ |
74 V(INSTANTIATE_FUN_INDEX, JSFunction, instantiate_fun) \ | 74 V(INSTANTIATE_FUN_INDEX, JSFunction, instantiate_fun) \ |
75 V(CONFIGURE_INSTANCE_FUN_INDEX, JSFunction, configure_instance_fun) \ | 75 V(CONFIGURE_INSTANCE_FUN_INDEX, JSFunction, configure_instance_fun) \ |
76 V(FUNCTION_MAP_INDEX, Map, function_map) \ | 76 V(FUNCTION_MAP_INDEX, Map, function_map) \ |
| 77 V(FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, function_without_prototype_map) \ |
77 V(FUNCTION_INSTANCE_MAP_INDEX, Map, function_instance_map) \ | 78 V(FUNCTION_INSTANCE_MAP_INDEX, Map, function_instance_map) \ |
78 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ | 79 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ |
79 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ | 80 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ |
80 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ | 81 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ |
81 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ | 82 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ |
82 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ | 83 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ |
83 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ | 84 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
84 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ | 85 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ |
85 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ | 86 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ |
86 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ | 87 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 GLOBAL_INDEX, | 173 GLOBAL_INDEX, |
173 MIN_CONTEXT_SLOTS, | 174 MIN_CONTEXT_SLOTS, |
174 | 175 |
175 // These slots are only in global contexts. | 176 // These slots are only in global contexts. |
176 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, | 177 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, |
177 SECURITY_TOKEN_INDEX, | 178 SECURITY_TOKEN_INDEX, |
178 ARGUMENTS_BOILERPLATE_INDEX, | 179 ARGUMENTS_BOILERPLATE_INDEX, |
179 JS_ARRAY_MAP_INDEX, | 180 JS_ARRAY_MAP_INDEX, |
180 REGEXP_RESULT_MAP_INDEX, | 181 REGEXP_RESULT_MAP_INDEX, |
181 FUNCTION_MAP_INDEX, | 182 FUNCTION_MAP_INDEX, |
| 183 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
182 FUNCTION_INSTANCE_MAP_INDEX, | 184 FUNCTION_INSTANCE_MAP_INDEX, |
183 INITIAL_OBJECT_PROTOTYPE_INDEX, | 185 INITIAL_OBJECT_PROTOTYPE_INDEX, |
184 BOOLEAN_FUNCTION_INDEX, | 186 BOOLEAN_FUNCTION_INDEX, |
185 NUMBER_FUNCTION_INDEX, | 187 NUMBER_FUNCTION_INDEX, |
186 STRING_FUNCTION_INDEX, | 188 STRING_FUNCTION_INDEX, |
187 OBJECT_FUNCTION_INDEX, | 189 OBJECT_FUNCTION_INDEX, |
188 ARRAY_FUNCTION_INDEX, | 190 ARRAY_FUNCTION_INDEX, |
189 DATE_FUNCTION_INDEX, | 191 DATE_FUNCTION_INDEX, |
190 JSON_OBJECT_INDEX, | 192 JSON_OBJECT_INDEX, |
191 REGEXP_FUNCTION_INDEX, | 193 REGEXP_FUNCTION_INDEX, |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 #ifdef DEBUG | 333 #ifdef DEBUG |
332 // Bootstrapping-aware type checks. | 334 // Bootstrapping-aware type checks. |
333 static bool IsBootstrappingOrContext(Object* object); | 335 static bool IsBootstrappingOrContext(Object* object); |
334 static bool IsBootstrappingOrGlobalObject(Object* object); | 336 static bool IsBootstrappingOrGlobalObject(Object* object); |
335 #endif | 337 #endif |
336 }; | 338 }; |
337 | 339 |
338 } } // namespace v8::internal | 340 } } // namespace v8::internal |
339 | 341 |
340 #endif // V8_CONTEXTS_H_ | 342 #endif // V8_CONTEXTS_H_ |
OLD | NEW |