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

Side by Side Diff: src/contexts.h

Issue 11347037: Object.observe: generate change records for named properties. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing comments. 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/bootstrapper.cc ('k') | src/flag-definitions.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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 V(MAP_CACHE_INDEX, Object, map_cache) \ 154 V(MAP_CACHE_INDEX, Object, map_cache) \
155 V(CONTEXT_DATA_INDEX, Object, 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, JSFunction, proxy_enumerate) \ 164 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \
165 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \
165 V(RANDOM_SEED_INDEX, ByteArray, random_seed) 166 V(RANDOM_SEED_INDEX, ByteArray, random_seed)
166 167
167 // JSFunctions are pairs (context, function code), sometimes also called 168 // JSFunctions are pairs (context, function code), sometimes also called
168 // closures. A Context object is used to represent function contexts and 169 // closures. A Context object is used to represent function contexts and
169 // dynamically pushed 'with' contexts (or 'scopes' in ECMA-262 speak). 170 // dynamically pushed 'with' contexts (or 'scopes' in ECMA-262 speak).
170 // 171 //
171 // At runtime, the contexts build a stack in parallel to the execution 172 // At runtime, the contexts build a stack in parallel to the execution
172 // stack, with the top-most context being the current context. All contexts 173 // stack, with the top-most context being the current context. All contexts
173 // have the following slots: 174 // have the following slots:
174 // 175 //
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 OPAQUE_REFERENCE_FUNCTION_INDEX, 282 OPAQUE_REFERENCE_FUNCTION_INDEX,
282 CONTEXT_EXTENSION_FUNCTION_INDEX, 283 CONTEXT_EXTENSION_FUNCTION_INDEX,
283 OUT_OF_MEMORY_INDEX, 284 OUT_OF_MEMORY_INDEX,
284 CONTEXT_DATA_INDEX, 285 CONTEXT_DATA_INDEX,
285 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, 286 ALLOW_CODE_GEN_FROM_STRINGS_INDEX,
286 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, 287 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX,
287 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, 288 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX,
288 DERIVED_HAS_TRAP_INDEX, 289 DERIVED_HAS_TRAP_INDEX,
289 DERIVED_GET_TRAP_INDEX, 290 DERIVED_GET_TRAP_INDEX,
290 DERIVED_SET_TRAP_INDEX, 291 DERIVED_SET_TRAP_INDEX,
291 PROXY_ENUMERATE, 292 PROXY_ENUMERATE_INDEX,
293 OBSERVERS_NOTIFY_CHANGE_INDEX,
292 RANDOM_SEED_INDEX, 294 RANDOM_SEED_INDEX,
293 295
294 // Properties from here are treated as weak references by the full GC. 296 // Properties from here are treated as weak references by the full GC.
295 // Scavenge treats them as strong references. 297 // Scavenge treats them as strong references.
296 OPTIMIZED_FUNCTIONS_LIST, // Weak. 298 OPTIMIZED_FUNCTIONS_LIST, // Weak.
297 MAP_CACHE_INDEX, // Weak. 299 MAP_CACHE_INDEX, // Weak.
298 NEXT_CONTEXT_LINK, // Weak. 300 NEXT_CONTEXT_LINK, // Weak.
299 301
300 // Total number of slots. 302 // Total number of slots.
301 NATIVE_CONTEXT_SLOTS, 303 NATIVE_CONTEXT_SLOTS,
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 #ifdef DEBUG 446 #ifdef DEBUG
445 // Bootstrapping-aware type checks. 447 // Bootstrapping-aware type checks.
446 static bool IsBootstrappingOrValidParentContext(Object* object, Context* kid); 448 static bool IsBootstrappingOrValidParentContext(Object* object, Context* kid);
447 static bool IsBootstrappingOrGlobalObject(Object* object); 449 static bool IsBootstrappingOrGlobalObject(Object* object);
448 #endif 450 #endif
449 }; 451 };
450 452
451 } } // namespace v8::internal 453 } } // namespace v8::internal
452 454
453 #endif // V8_CONTEXTS_H_ 455 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698