OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 V(STRICT_MODE_FUNCTION_MAP_INDEX, Map, strict_mode_function_map) \ | 81 V(STRICT_MODE_FUNCTION_MAP_INDEX, Map, strict_mode_function_map) \ |
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(STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ | 83 V(STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
84 strict_mode_function_without_prototype_map) \ | 84 strict_mode_function_without_prototype_map) \ |
85 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, \ | 86 V(STRICT_MODE_FUNCTION_INSTANCE_MAP_INDEX, Map, \ |
87 strict_mode_function_instance_map) \ | 87 strict_mode_function_instance_map) \ |
88 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ | 88 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ |
89 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ | 89 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ |
90 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ | 90 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ |
| 91 V(ALIASED_ARGUMENTS_BOILERPLATE_INDEX, JSObject, \ |
| 92 aliased_arguments_boilerplate) \ |
91 V(STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX, JSObject, \ | 93 V(STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX, JSObject, \ |
92 strict_mode_arguments_boilerplate) \ | 94 strict_mode_arguments_boilerplate) \ |
93 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ | 95 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ |
94 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ | 96 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ |
95 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ | 97 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
96 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ | 98 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ |
97 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ | 99 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ |
98 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ | 100 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ |
99 V(NORMALIZED_MAP_CACHE_INDEX, NormalizedMapCache, normalized_map_cache) \ | 101 V(NORMALIZED_MAP_CACHE_INDEX, NormalizedMapCache, normalized_map_cache) \ |
100 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ | 102 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 GLOBAL_INDEX, | 190 GLOBAL_INDEX, |
189 MIN_CONTEXT_SLOTS, | 191 MIN_CONTEXT_SLOTS, |
190 | 192 |
191 // This slot holds the thrown value in catch contexts. | 193 // This slot holds the thrown value in catch contexts. |
192 THROWN_OBJECT_INDEX = MIN_CONTEXT_SLOTS, | 194 THROWN_OBJECT_INDEX = MIN_CONTEXT_SLOTS, |
193 | 195 |
194 // These slots are only in global contexts. | 196 // These slots are only in global contexts. |
195 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, | 197 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, |
196 SECURITY_TOKEN_INDEX, | 198 SECURITY_TOKEN_INDEX, |
197 ARGUMENTS_BOILERPLATE_INDEX, | 199 ARGUMENTS_BOILERPLATE_INDEX, |
| 200 ALIASED_ARGUMENTS_BOILERPLATE_INDEX, |
198 STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX, | 201 STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX, |
199 JS_ARRAY_MAP_INDEX, | 202 JS_ARRAY_MAP_INDEX, |
200 REGEXP_RESULT_MAP_INDEX, | 203 REGEXP_RESULT_MAP_INDEX, |
201 FUNCTION_MAP_INDEX, | 204 FUNCTION_MAP_INDEX, |
202 STRICT_MODE_FUNCTION_MAP_INDEX, | 205 STRICT_MODE_FUNCTION_MAP_INDEX, |
203 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, | 206 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
204 STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, | 207 STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
205 FUNCTION_INSTANCE_MAP_INDEX, | 208 FUNCTION_INSTANCE_MAP_INDEX, |
206 STRICT_MODE_FUNCTION_INSTANCE_MAP_INDEX, | 209 STRICT_MODE_FUNCTION_INSTANCE_MAP_INDEX, |
207 INITIAL_OBJECT_PROTOTYPE_INDEX, | 210 INITIAL_OBJECT_PROTOTYPE_INDEX, |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 #ifdef DEBUG | 402 #ifdef DEBUG |
400 // Bootstrapping-aware type checks. | 403 // Bootstrapping-aware type checks. |
401 static bool IsBootstrappingOrContext(Object* object); | 404 static bool IsBootstrappingOrContext(Object* object); |
402 static bool IsBootstrappingOrGlobalObject(Object* object); | 405 static bool IsBootstrappingOrGlobalObject(Object* object); |
403 #endif | 406 #endif |
404 }; | 407 }; |
405 | 408 |
406 } } // namespace v8::internal | 409 } } // namespace v8::internal |
407 | 410 |
408 #endif // V8_CONTEXTS_H_ | 411 #endif // V8_CONTEXTS_H_ |
OLD | NEW |