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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // Note: Context must have no virtual functions and Context objects | 49 // Note: Context must have no virtual functions and Context objects |
50 // must always be allocated via Heap::AllocateContext() or | 50 // must always be allocated via Heap::AllocateContext() or |
51 // Factory::NewContext. | 51 // Factory::NewContext. |
52 | 52 |
53 #define GLOBAL_CONTEXT_FIELDS(V) \ | 53 #define GLOBAL_CONTEXT_FIELDS(V) \ |
54 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ | 54 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ |
55 V(SECURITY_TOKEN_INDEX, Object, security_token) \ | 55 V(SECURITY_TOKEN_INDEX, Object, security_token) \ |
56 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ | 56 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ |
57 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \ | 57 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \ |
58 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ | 58 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ |
| 59 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \ |
59 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \ | 60 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \ |
60 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ | 61 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ |
61 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \ | 62 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \ |
62 V(JSON_OBJECT_INDEX, JSObject, json_object) \ | 63 V(JSON_OBJECT_INDEX, JSObject, json_object) \ |
63 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ | 64 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ |
64 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ | 65 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ |
65 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ | 66 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ |
66 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ | 67 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ |
67 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ | 68 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ |
68 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ | 69 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 ARGUMENTS_BOILERPLATE_INDEX, | 180 ARGUMENTS_BOILERPLATE_INDEX, |
180 JS_ARRAY_MAP_INDEX, | 181 JS_ARRAY_MAP_INDEX, |
181 REGEXP_RESULT_MAP_INDEX, | 182 REGEXP_RESULT_MAP_INDEX, |
182 FUNCTION_MAP_INDEX, | 183 FUNCTION_MAP_INDEX, |
183 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, | 184 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
184 FUNCTION_INSTANCE_MAP_INDEX, | 185 FUNCTION_INSTANCE_MAP_INDEX, |
185 INITIAL_OBJECT_PROTOTYPE_INDEX, | 186 INITIAL_OBJECT_PROTOTYPE_INDEX, |
186 BOOLEAN_FUNCTION_INDEX, | 187 BOOLEAN_FUNCTION_INDEX, |
187 NUMBER_FUNCTION_INDEX, | 188 NUMBER_FUNCTION_INDEX, |
188 STRING_FUNCTION_INDEX, | 189 STRING_FUNCTION_INDEX, |
| 190 STRING_FUNCTION_PROTOTYPE_MAP_INDEX, |
189 OBJECT_FUNCTION_INDEX, | 191 OBJECT_FUNCTION_INDEX, |
190 ARRAY_FUNCTION_INDEX, | 192 ARRAY_FUNCTION_INDEX, |
191 DATE_FUNCTION_INDEX, | 193 DATE_FUNCTION_INDEX, |
192 JSON_OBJECT_INDEX, | 194 JSON_OBJECT_INDEX, |
193 REGEXP_FUNCTION_INDEX, | 195 REGEXP_FUNCTION_INDEX, |
194 CREATE_DATE_FUN_INDEX, | 196 CREATE_DATE_FUN_INDEX, |
195 TO_NUMBER_FUN_INDEX, | 197 TO_NUMBER_FUN_INDEX, |
196 TO_STRING_FUN_INDEX, | 198 TO_STRING_FUN_INDEX, |
197 TO_DETAIL_STRING_FUN_INDEX, | 199 TO_DETAIL_STRING_FUN_INDEX, |
198 TO_OBJECT_FUN_INDEX, | 200 TO_OBJECT_FUN_INDEX, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 #ifdef DEBUG | 335 #ifdef DEBUG |
334 // Bootstrapping-aware type checks. | 336 // Bootstrapping-aware type checks. |
335 static bool IsBootstrappingOrContext(Object* object); | 337 static bool IsBootstrappingOrContext(Object* object); |
336 static bool IsBootstrappingOrGlobalObject(Object* object); | 338 static bool IsBootstrappingOrGlobalObject(Object* object); |
337 #endif | 339 #endif |
338 }; | 340 }; |
339 | 341 |
340 } } // namespace v8::internal | 342 } } // namespace v8::internal |
341 | 343 |
342 #endif // V8_CONTEXTS_H_ | 344 #endif // V8_CONTEXTS_H_ |
OLD | NEW |