Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: src/contexts.h

Issue 9016041: Ensure that InternalArrays remain InternalArrays regardless of how they are constructed. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix whitespace Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/builtins.h ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Factory::NewContext. 97 // Factory::NewContext.
98 98
99 #define GLOBAL_CONTEXT_FIELDS(V) \ 99 #define GLOBAL_CONTEXT_FIELDS(V) \
100 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \ 100 V(GLOBAL_PROXY_INDEX, JSObject, global_proxy_object) \
101 V(SECURITY_TOKEN_INDEX, Object, security_token) \ 101 V(SECURITY_TOKEN_INDEX, Object, security_token) \
102 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \ 102 V(BOOLEAN_FUNCTION_INDEX, JSFunction, boolean_function) \
103 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \ 103 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \
104 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ 104 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \
105 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \ 105 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \
106 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \ 106 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \
107 V(INTERNAL_ARRAY_FUNCTION_INDEX, JSFunction, internal_array_function) \
107 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \ 108 V(ARRAY_FUNCTION_INDEX, JSFunction, array_function) \
108 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \ 109 V(DATE_FUNCTION_INDEX, JSFunction, date_function) \
109 V(JSON_OBJECT_INDEX, JSObject, json_object) \ 110 V(JSON_OBJECT_INDEX, JSObject, json_object) \
110 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ 111 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \
111 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ 112 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \
112 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \ 113 V(CREATE_DATE_FUN_INDEX, JSFunction, create_date_fun) \
113 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \ 114 V(TO_NUMBER_FUN_INDEX, JSFunction, to_number_fun) \
114 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \ 115 V(TO_STRING_FUN_INDEX, JSFunction, to_string_fun) \
115 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \ 116 V(TO_DETAIL_STRING_FUN_INDEX, JSFunction, to_detail_string_fun) \
116 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \ 117 V(TO_OBJECT_FUN_INDEX, JSFunction, to_object_fun) \
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, 238 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX,
238 STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, 239 STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX,
239 FUNCTION_INSTANCE_MAP_INDEX, 240 FUNCTION_INSTANCE_MAP_INDEX,
240 STRICT_MODE_FUNCTION_INSTANCE_MAP_INDEX, 241 STRICT_MODE_FUNCTION_INSTANCE_MAP_INDEX,
241 INITIAL_OBJECT_PROTOTYPE_INDEX, 242 INITIAL_OBJECT_PROTOTYPE_INDEX,
242 BOOLEAN_FUNCTION_INDEX, 243 BOOLEAN_FUNCTION_INDEX,
243 NUMBER_FUNCTION_INDEX, 244 NUMBER_FUNCTION_INDEX,
244 STRING_FUNCTION_INDEX, 245 STRING_FUNCTION_INDEX,
245 STRING_FUNCTION_PROTOTYPE_MAP_INDEX, 246 STRING_FUNCTION_PROTOTYPE_MAP_INDEX,
246 OBJECT_FUNCTION_INDEX, 247 OBJECT_FUNCTION_INDEX,
248 INTERNAL_ARRAY_FUNCTION_INDEX,
247 ARRAY_FUNCTION_INDEX, 249 ARRAY_FUNCTION_INDEX,
248 DATE_FUNCTION_INDEX, 250 DATE_FUNCTION_INDEX,
249 JSON_OBJECT_INDEX, 251 JSON_OBJECT_INDEX,
250 REGEXP_FUNCTION_INDEX, 252 REGEXP_FUNCTION_INDEX,
251 CREATE_DATE_FUN_INDEX, 253 CREATE_DATE_FUN_INDEX,
252 TO_NUMBER_FUN_INDEX, 254 TO_NUMBER_FUN_INDEX,
253 TO_STRING_FUN_INDEX, 255 TO_STRING_FUN_INDEX,
254 TO_DETAIL_STRING_FUN_INDEX, 256 TO_DETAIL_STRING_FUN_INDEX,
255 TO_OBJECT_FUN_INDEX, 257 TO_OBJECT_FUN_INDEX,
256 TO_INTEGER_FUN_INDEX, 258 TO_INTEGER_FUN_INDEX,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 #ifdef DEBUG 423 #ifdef DEBUG
422 // Bootstrapping-aware type checks. 424 // Bootstrapping-aware type checks.
423 static bool IsBootstrappingOrContext(Object* object); 425 static bool IsBootstrappingOrContext(Object* object);
424 static bool IsBootstrappingOrGlobalObject(Object* object); 426 static bool IsBootstrappingOrGlobalObject(Object* object);
425 #endif 427 #endif
426 }; 428 };
427 429
428 } } // namespace v8::internal 430 } } // namespace v8::internal
429 431
430 #endif // V8_CONTEXTS_H_ 432 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698