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

Side by Side Diff: src/contexts.h

Issue 1094014: Merge the partial_snapshots branch back into bleeding_edge. For... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 9 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
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ 79 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \
80 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ 80 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \
81 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ 81 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \
82 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ 82 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \
83 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ 83 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \
84 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ 84 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \
85 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ 85 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \
86 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ 86 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \
87 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ 87 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \
88 call_as_constructor_delegate) \ 88 call_as_constructor_delegate) \
89 V(EMPTY_SCRIPT_INDEX, Script, empty_script) \
90 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ 89 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \
91 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ 90 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \
92 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ 91 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \
93 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \ 92 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \
94 V(MAP_CACHE_INDEX, Object, map_cache) \ 93 V(MAP_CACHE_INDEX, Object, map_cache) \
95 V(CONTEXT_DATA_INDEX, Object, data) 94 V(CONTEXT_DATA_INDEX, Object, data)
96 95
97 // JSFunctions are pairs (context, function code), sometimes also called 96 // JSFunctions are pairs (context, function code), sometimes also called
98 // closures. A Context object is used to represent function contexts and 97 // closures. A Context object is used to represent function contexts and
99 // dynamically pushed 'with' contexts (or 'scopes' in ECMA-262 speak). 98 // dynamically pushed 'with' contexts (or 'scopes' in ECMA-262 speak).
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 INSTANTIATE_FUN_INDEX, 199 INSTANTIATE_FUN_INDEX,
201 CONFIGURE_INSTANCE_FUN_INDEX, 200 CONFIGURE_INSTANCE_FUN_INDEX,
202 MESSAGE_LISTENERS_INDEX, 201 MESSAGE_LISTENERS_INDEX,
203 MAKE_MESSAGE_FUN_INDEX, 202 MAKE_MESSAGE_FUN_INDEX,
204 GET_STACK_TRACE_LINE_INDEX, 203 GET_STACK_TRACE_LINE_INDEX,
205 CONFIGURE_GLOBAL_INDEX, 204 CONFIGURE_GLOBAL_INDEX,
206 FUNCTION_CACHE_INDEX, 205 FUNCTION_CACHE_INDEX,
207 RUNTIME_CONTEXT_INDEX, 206 RUNTIME_CONTEXT_INDEX,
208 CALL_AS_FUNCTION_DELEGATE_INDEX, 207 CALL_AS_FUNCTION_DELEGATE_INDEX,
209 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, 208 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX,
210 EMPTY_SCRIPT_INDEX,
211 SCRIPT_FUNCTION_INDEX, 209 SCRIPT_FUNCTION_INDEX,
212 OPAQUE_REFERENCE_FUNCTION_INDEX, 210 OPAQUE_REFERENCE_FUNCTION_INDEX,
213 CONTEXT_EXTENSION_FUNCTION_INDEX, 211 CONTEXT_EXTENSION_FUNCTION_INDEX,
214 OUT_OF_MEMORY_INDEX, 212 OUT_OF_MEMORY_INDEX,
215 MAP_CACHE_INDEX, 213 MAP_CACHE_INDEX,
216 CONTEXT_DATA_INDEX, 214 CONTEXT_DATA_INDEX,
217 GLOBAL_CONTEXT_SLOTS 215 GLOBAL_CONTEXT_SLOTS
218 }; 216 };
219 217
220 // Direct slot access. 218 // Direct slot access.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 #ifdef DEBUG 327 #ifdef DEBUG
330 // Bootstrapping-aware type checks. 328 // Bootstrapping-aware type checks.
331 static bool IsBootstrappingOrContext(Object* object); 329 static bool IsBootstrappingOrContext(Object* object);
332 static bool IsBootstrappingOrGlobalObject(Object* object); 330 static bool IsBootstrappingOrGlobalObject(Object* object);
333 #endif 331 #endif
334 }; 332 };
335 333
336 } } // namespace v8::internal 334 } } // namespace v8::internal
337 335
338 #endif // V8_CONTEXTS_H_ 336 #endif // V8_CONTEXTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698