| 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(STRICT_MODE_FUNCTION_MAP_INDEX, Map, strict_mode_function_map) \ |
| 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(STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
| 84 strict_mode_function_without_prototype_map) \ |
| 82 V(FUNCTION_INSTANCE_MAP_INDEX, Map, function_instance_map) \ | 85 V(FUNCTION_INSTANCE_MAP_INDEX, Map, function_instance_map) \ |
| 86 V(STRICT_MODE_FUNCTION_INSTANCE_MAP_INDEX, Map, \ |
| 87 strict_mode_function_instance_map) \ |
| 83 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ | 88 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ |
| 84 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ | 89 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ |
| 85 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ | 90 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ |
| 86 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ | 91 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ |
| 87 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ | 92 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ |
| 88 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ | 93 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
| 89 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ | 94 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ |
| 90 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ | 95 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ |
| 91 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ | 96 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ |
| 92 V(NORMALIZED_MAP_CACHE_INDEX, NormalizedMapCache, normalized_map_cache) \ | 97 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, | 183 GLOBAL_INDEX, |
| 179 MIN_CONTEXT_SLOTS, | 184 MIN_CONTEXT_SLOTS, |
| 180 | 185 |
| 181 // These slots are only in global contexts. | 186 // These slots are only in global contexts. |
| 182 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, | 187 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, |
| 183 SECURITY_TOKEN_INDEX, | 188 SECURITY_TOKEN_INDEX, |
| 184 ARGUMENTS_BOILERPLATE_INDEX, | 189 ARGUMENTS_BOILERPLATE_INDEX, |
| 185 JS_ARRAY_MAP_INDEX, | 190 JS_ARRAY_MAP_INDEX, |
| 186 REGEXP_RESULT_MAP_INDEX, | 191 REGEXP_RESULT_MAP_INDEX, |
| 187 FUNCTION_MAP_INDEX, | 192 FUNCTION_MAP_INDEX, |
| 193 STRICT_MODE_FUNCTION_MAP_INDEX, |
| 188 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, | 194 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
| 195 STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
| 189 FUNCTION_INSTANCE_MAP_INDEX, | 196 FUNCTION_INSTANCE_MAP_INDEX, |
| 197 STRICT_MODE_FUNCTION_INSTANCE_MAP_INDEX, |
| 190 INITIAL_OBJECT_PROTOTYPE_INDEX, | 198 INITIAL_OBJECT_PROTOTYPE_INDEX, |
| 191 BOOLEAN_FUNCTION_INDEX, | 199 BOOLEAN_FUNCTION_INDEX, |
| 192 NUMBER_FUNCTION_INDEX, | 200 NUMBER_FUNCTION_INDEX, |
| 193 STRING_FUNCTION_INDEX, | 201 STRING_FUNCTION_INDEX, |
| 194 STRING_FUNCTION_PROTOTYPE_MAP_INDEX, | 202 STRING_FUNCTION_PROTOTYPE_MAP_INDEX, |
| 195 OBJECT_FUNCTION_INDEX, | 203 OBJECT_FUNCTION_INDEX, |
| 196 ARRAY_FUNCTION_INDEX, | 204 ARRAY_FUNCTION_INDEX, |
| 197 DATE_FUNCTION_INDEX, | 205 DATE_FUNCTION_INDEX, |
| 198 JSON_OBJECT_INDEX, | 206 JSON_OBJECT_INDEX, |
| 199 REGEXP_FUNCTION_INDEX, | 207 REGEXP_FUNCTION_INDEX, |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 #ifdef DEBUG | 375 #ifdef DEBUG |
| 368 // Bootstrapping-aware type checks. | 376 // Bootstrapping-aware type checks. |
| 369 static bool IsBootstrappingOrContext(Object* object); | 377 static bool IsBootstrappingOrContext(Object* object); |
| 370 static bool IsBootstrappingOrGlobalObject(Object* object); | 378 static bool IsBootstrappingOrGlobalObject(Object* object); |
| 371 #endif | 379 #endif |
| 372 }; | 380 }; |
| 373 | 381 |
| 374 } } // namespace v8::internal | 382 } } // namespace v8::internal |
| 375 | 383 |
| 376 #endif // V8_CONTEXTS_H_ | 384 #endif // V8_CONTEXTS_H_ |
| OLD | NEW |