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

Side by Side Diff: src/contexts.h

Issue 11359125: Rollback of r12868, r12849 on bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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/compiler.cc ('k') | src/factory.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 V(NORMALIZED_MAP_CACHE_INDEX, NormalizedMapCache, normalized_map_cache) \ 145 V(NORMALIZED_MAP_CACHE_INDEX, NormalizedMapCache, normalized_map_cache) \
146 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ 146 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \
147 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ 147 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \
148 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ 148 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \
149 call_as_constructor_delegate) \ 149 call_as_constructor_delegate) \
150 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ 150 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \
151 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ 151 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \
152 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ 152 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \
153 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \ 153 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \
154 V(MAP_CACHE_INDEX, Object, map_cache) \ 154 V(MAP_CACHE_INDEX, Object, map_cache) \
155 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ 155 V(CONTEXT_DATA_INDEX, Object, data) \
156 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ 156 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \
157 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ 157 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \
158 error_message_for_code_gen_from_strings) \ 158 error_message_for_code_gen_from_strings) \
159 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ 159 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \
160 to_complete_property_descriptor) \ 160 to_complete_property_descriptor) \
161 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ 161 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \
162 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ 162 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \
163 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ 163 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \
164 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ 164 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \
165 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ 165 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 FUNCTION_CACHE_INDEX, 276 FUNCTION_CACHE_INDEX,
277 JSFUNCTION_RESULT_CACHES_INDEX, 277 JSFUNCTION_RESULT_CACHES_INDEX,
278 NORMALIZED_MAP_CACHE_INDEX, 278 NORMALIZED_MAP_CACHE_INDEX,
279 RUNTIME_CONTEXT_INDEX, 279 RUNTIME_CONTEXT_INDEX,
280 CALL_AS_FUNCTION_DELEGATE_INDEX, 280 CALL_AS_FUNCTION_DELEGATE_INDEX,
281 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, 281 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX,
282 SCRIPT_FUNCTION_INDEX, 282 SCRIPT_FUNCTION_INDEX,
283 OPAQUE_REFERENCE_FUNCTION_INDEX, 283 OPAQUE_REFERENCE_FUNCTION_INDEX,
284 CONTEXT_EXTENSION_FUNCTION_INDEX, 284 CONTEXT_EXTENSION_FUNCTION_INDEX,
285 OUT_OF_MEMORY_INDEX, 285 OUT_OF_MEMORY_INDEX,
286 EMBEDDER_DATA_INDEX, 286 CONTEXT_DATA_INDEX,
287 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, 287 ALLOW_CODE_GEN_FROM_STRINGS_INDEX,
288 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, 288 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX,
289 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, 289 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX,
290 DERIVED_HAS_TRAP_INDEX, 290 DERIVED_HAS_TRAP_INDEX,
291 DERIVED_GET_TRAP_INDEX, 291 DERIVED_GET_TRAP_INDEX,
292 DERIVED_SET_TRAP_INDEX, 292 DERIVED_SET_TRAP_INDEX,
293 PROXY_ENUMERATE_INDEX, 293 PROXY_ENUMERATE_INDEX,
294 OBSERVERS_NOTIFY_CHANGE_INDEX, 294 OBSERVERS_NOTIFY_CHANGE_INDEX,
295 OBSERVERS_DELIVER_CHANGES_INDEX, 295 OBSERVERS_DELIVER_CHANGES_INDEX,
296 RANDOM_SEED_INDEX, 296 RANDOM_SEED_INDEX,
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 443
444 private: 444 private:
445 // Unchecked access to the slots. 445 // Unchecked access to the slots.
446 Object* unchecked_previous() { return get(PREVIOUS_INDEX); } 446 Object* unchecked_previous() { return get(PREVIOUS_INDEX); }
447 447
448 #ifdef DEBUG 448 #ifdef DEBUG
449 // Bootstrapping-aware type checks. 449 // Bootstrapping-aware type checks.
450 static bool IsBootstrappingOrValidParentContext(Object* object, Context* kid); 450 static bool IsBootstrappingOrValidParentContext(Object* object, Context* kid);
451 static bool IsBootstrappingOrGlobalObject(Object* object); 451 static bool IsBootstrappingOrGlobalObject(Object* object);
452 #endif 452 #endif
453
454 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize);
455 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
456 }; 453 };
457 454
458 } } // namespace v8::internal 455 } } // namespace v8::internal
459 456
460 #endif // V8_CONTEXTS_H_ 457 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698