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

Side by Side Diff: src/contexts.h

Issue 114036: Push bleeding_edge revision 2020 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years, 7 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.cc ('k') | src/execution.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 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\ 83 V(JS_ARRAY_MAP_INDEX, Map, js_array_map)\
84 V(SPECIAL_FUNCTION_TABLE_INDEX, FixedArray, special_function_table) \ 84 V(SPECIAL_FUNCTION_TABLE_INDEX, FixedArray, special_function_table) \
85 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ 85 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \
86 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ 86 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \
87 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ 87 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \
88 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ 88 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \
89 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ 89 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \
90 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ 90 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \
91 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ 91 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \
92 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ 92 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \
93 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \
94 call_as_constructor_delegate) \
93 V(EMPTY_SCRIPT_INDEX, Script, empty_script) \ 95 V(EMPTY_SCRIPT_INDEX, Script, empty_script) \
94 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ 96 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \
95 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ 97 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \
96 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \ 98 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \
97 V(MAP_CACHE_INDEX, Object, map_cache) \ 99 V(MAP_CACHE_INDEX, Object, map_cache) \
98 V(CONTEXT_DATA_INDEX, Object, data) 100 V(CONTEXT_DATA_INDEX, Object, data)
99 101
100 // JSFunctions are pairs (context, function code), sometimes also called 102 // JSFunctions are pairs (context, function code), sometimes also called
101 // closures. A Context object is used to represent function contexts and 103 // closures. A Context object is used to represent function contexts and
102 // dynamically pushed 'with' contexts (or 'scopes' in ECMA-262 speak). 104 // dynamically pushed 'with' contexts (or 'scopes' in ECMA-262 speak).
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 INSTANTIATE_FUN_INDEX, 204 INSTANTIATE_FUN_INDEX,
203 CONFIGURE_INSTANCE_FUN_INDEX, 205 CONFIGURE_INSTANCE_FUN_INDEX,
204 SPECIAL_FUNCTION_TABLE_INDEX, 206 SPECIAL_FUNCTION_TABLE_INDEX,
205 MESSAGE_LISTENERS_INDEX, 207 MESSAGE_LISTENERS_INDEX,
206 MAKE_MESSAGE_FUN_INDEX, 208 MAKE_MESSAGE_FUN_INDEX,
207 GET_STACK_TRACE_LINE_INDEX, 209 GET_STACK_TRACE_LINE_INDEX,
208 CONFIGURE_GLOBAL_INDEX, 210 CONFIGURE_GLOBAL_INDEX,
209 FUNCTION_CACHE_INDEX, 211 FUNCTION_CACHE_INDEX,
210 RUNTIME_CONTEXT_INDEX, 212 RUNTIME_CONTEXT_INDEX,
211 CALL_AS_FUNCTION_DELEGATE_INDEX, 213 CALL_AS_FUNCTION_DELEGATE_INDEX,
214 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX,
212 EMPTY_SCRIPT_INDEX, 215 EMPTY_SCRIPT_INDEX,
213 SCRIPT_FUNCTION_INDEX, 216 SCRIPT_FUNCTION_INDEX,
214 CONTEXT_EXTENSION_FUNCTION_INDEX, 217 CONTEXT_EXTENSION_FUNCTION_INDEX,
215 OUT_OF_MEMORY_INDEX, 218 OUT_OF_MEMORY_INDEX,
216 MAP_CACHE_INDEX, 219 MAP_CACHE_INDEX,
217 CONTEXT_DATA_INDEX, 220 CONTEXT_DATA_INDEX,
218 GLOBAL_CONTEXT_SLOTS 221 GLOBAL_CONTEXT_SLOTS
219 }; 222 };
220 223
221 // Direct slot access. 224 // Direct slot access.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 #ifdef DEBUG 333 #ifdef DEBUG
331 // Bootstrapping-aware type checks. 334 // Bootstrapping-aware type checks.
332 static bool IsBootstrappingOrContext(Object* object); 335 static bool IsBootstrappingOrContext(Object* object);
333 static bool IsBootstrappingOrGlobalObject(Object* object); 336 static bool IsBootstrappingOrGlobalObject(Object* object);
334 #endif 337 #endif
335 }; 338 };
336 339
337 } } // namespace v8::internal 340 } } // namespace v8::internal
338 341
339 #endif // V8_CONTEXTS_H_ 342 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/execution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698