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

Side by Side Diff: src/contexts.h

Issue 14829005: Remove separate maps for function instances (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove outdated comment Created 7 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/bootstrapper.cc ('k') | src/runtime.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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ 131 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \
132 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \ 132 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \
133 V(FLOAT_ARRAY_FUN_INDEX, JSFunction, float_array_fun) \ 133 V(FLOAT_ARRAY_FUN_INDEX, JSFunction, float_array_fun) \
134 V(DOUBLE_ARRAY_FUN_INDEX, JSFunction, double_array_fun) \ 134 V(DOUBLE_ARRAY_FUN_INDEX, JSFunction, double_array_fun) \
135 V(UINT8C_ARRAY_FUN_INDEX, JSFunction, uint8c_array_fun) \ 135 V(UINT8C_ARRAY_FUN_INDEX, JSFunction, uint8c_array_fun) \
136 V(FUNCTION_MAP_INDEX, Map, function_map) \ 136 V(FUNCTION_MAP_INDEX, Map, function_map) \
137 V(STRICT_MODE_FUNCTION_MAP_INDEX, Map, strict_mode_function_map) \ 137 V(STRICT_MODE_FUNCTION_MAP_INDEX, Map, strict_mode_function_map) \
138 V(FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, function_without_prototype_map) \ 138 V(FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, function_without_prototype_map) \
139 V(STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ 139 V(STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \
140 strict_mode_function_without_prototype_map) \ 140 strict_mode_function_without_prototype_map) \
141 V(FUNCTION_INSTANCE_MAP_INDEX, Map, function_instance_map) \
142 V(STRICT_MODE_FUNCTION_INSTANCE_MAP_INDEX, Map, \
143 strict_mode_function_instance_map) \
144 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\ 141 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map)\
145 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \ 142 V(ARGUMENTS_BOILERPLATE_INDEX, JSObject, arguments_boilerplate) \
146 V(ALIASED_ARGUMENTS_BOILERPLATE_INDEX, JSObject, \ 143 V(ALIASED_ARGUMENTS_BOILERPLATE_INDEX, JSObject, \
147 aliased_arguments_boilerplate) \ 144 aliased_arguments_boilerplate) \
148 V(STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX, JSObject, \ 145 V(STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX, JSObject, \
149 strict_mode_arguments_boilerplate) \ 146 strict_mode_arguments_boilerplate) \
150 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ 147 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \
151 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ 148 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \
152 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ 149 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \
153 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ 150 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, 250 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS,
254 SECURITY_TOKEN_INDEX, 251 SECURITY_TOKEN_INDEX,
255 ARGUMENTS_BOILERPLATE_INDEX, 252 ARGUMENTS_BOILERPLATE_INDEX,
256 ALIASED_ARGUMENTS_BOILERPLATE_INDEX, 253 ALIASED_ARGUMENTS_BOILERPLATE_INDEX,
257 STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX, 254 STRICT_MODE_ARGUMENTS_BOILERPLATE_INDEX,
258 REGEXP_RESULT_MAP_INDEX, 255 REGEXP_RESULT_MAP_INDEX,
259 FUNCTION_MAP_INDEX, 256 FUNCTION_MAP_INDEX,
260 STRICT_MODE_FUNCTION_MAP_INDEX, 257 STRICT_MODE_FUNCTION_MAP_INDEX,
261 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, 258 FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX,
262 STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, 259 STRICT_MODE_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX,
263 FUNCTION_INSTANCE_MAP_INDEX,
264 STRICT_MODE_FUNCTION_INSTANCE_MAP_INDEX,
265 INITIAL_OBJECT_PROTOTYPE_INDEX, 260 INITIAL_OBJECT_PROTOTYPE_INDEX,
266 BOOLEAN_FUNCTION_INDEX, 261 BOOLEAN_FUNCTION_INDEX,
267 NUMBER_FUNCTION_INDEX, 262 NUMBER_FUNCTION_INDEX,
268 STRING_FUNCTION_INDEX, 263 STRING_FUNCTION_INDEX,
269 STRING_FUNCTION_PROTOTYPE_MAP_INDEX, 264 STRING_FUNCTION_PROTOTYPE_MAP_INDEX,
270 SYMBOL_FUNCTION_INDEX, 265 SYMBOL_FUNCTION_INDEX,
271 OBJECT_FUNCTION_INDEX, 266 OBJECT_FUNCTION_INDEX,
272 INTERNAL_ARRAY_FUNCTION_INDEX, 267 INTERNAL_ARRAY_FUNCTION_INDEX,
273 ARRAY_FUNCTION_INDEX, 268 ARRAY_FUNCTION_INDEX,
274 JS_ARRAY_MAPS_INDEX, 269 JS_ARRAY_MAPS_INDEX,
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 static bool IsBootstrappingOrGlobalObject(Object* object); 495 static bool IsBootstrappingOrGlobalObject(Object* object);
501 #endif 496 #endif
502 497
503 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); 498 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize);
504 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 499 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
505 }; 500 };
506 501
507 } } // namespace v8::internal 502 } } // namespace v8::internal
508 503
509 #endif // V8_CONTEXTS_H_ 504 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698