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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_INSTANCE_MAP_INDEX, Map, function_instance_map) \ | 77 V(FUNCTION_INSTANCE_MAP_INDEX, Map, function_instance_map) \ |
78 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ | 78 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ |
| 79 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ |
79 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ | 80 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ |
80 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ | 81 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ |
81 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ | 82 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ |
82 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ | 83 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
83 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ | 84 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ |
84 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ | 85 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ |
85 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ | 86 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ |
86 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ | 87 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ |
87 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ | 88 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ |
88 call_as_constructor_delegate) \ | 89 call_as_constructor_delegate) \ |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 PREVIOUS_INDEX, | 169 PREVIOUS_INDEX, |
169 EXTENSION_INDEX, | 170 EXTENSION_INDEX, |
170 GLOBAL_INDEX, | 171 GLOBAL_INDEX, |
171 MIN_CONTEXT_SLOTS, | 172 MIN_CONTEXT_SLOTS, |
172 | 173 |
173 // These slots are only in global contexts. | 174 // These slots are only in global contexts. |
174 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, | 175 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, |
175 SECURITY_TOKEN_INDEX, | 176 SECURITY_TOKEN_INDEX, |
176 ARGUMENTS_BOILERPLATE_INDEX, | 177 ARGUMENTS_BOILERPLATE_INDEX, |
177 JS_ARRAY_MAP_INDEX, | 178 JS_ARRAY_MAP_INDEX, |
| 179 REGEXP_RESULT_MAP_INDEX, |
178 FUNCTION_MAP_INDEX, | 180 FUNCTION_MAP_INDEX, |
179 FUNCTION_INSTANCE_MAP_INDEX, | 181 FUNCTION_INSTANCE_MAP_INDEX, |
180 INITIAL_OBJECT_PROTOTYPE_INDEX, | 182 INITIAL_OBJECT_PROTOTYPE_INDEX, |
181 BOOLEAN_FUNCTION_INDEX, | 183 BOOLEAN_FUNCTION_INDEX, |
182 NUMBER_FUNCTION_INDEX, | 184 NUMBER_FUNCTION_INDEX, |
183 STRING_FUNCTION_INDEX, | 185 STRING_FUNCTION_INDEX, |
184 OBJECT_FUNCTION_INDEX, | 186 OBJECT_FUNCTION_INDEX, |
185 ARRAY_FUNCTION_INDEX, | 187 ARRAY_FUNCTION_INDEX, |
186 DATE_FUNCTION_INDEX, | 188 DATE_FUNCTION_INDEX, |
187 JSON_OBJECT_INDEX, | 189 JSON_OBJECT_INDEX, |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 #ifdef DEBUG | 329 #ifdef DEBUG |
328 // Bootstrapping-aware type checks. | 330 // Bootstrapping-aware type checks. |
329 static bool IsBootstrappingOrContext(Object* object); | 331 static bool IsBootstrappingOrContext(Object* object); |
330 static bool IsBootstrappingOrGlobalObject(Object* object); | 332 static bool IsBootstrappingOrGlobalObject(Object* object); |
331 #endif | 333 #endif |
332 }; | 334 }; |
333 | 335 |
334 } } // namespace v8::internal | 336 } } // namespace v8::internal |
335 | 337 |
336 #endif // V8_CONTEXTS_H_ | 338 #endif // V8_CONTEXTS_H_ |
OLD | NEW |