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

Side by Side Diff: bleeding_edge/src/factory.h

Issue 506037: Improve performance of allocating closures for nested... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 Handle<FixedArray> elements, 212 Handle<FixedArray> elements,
213 PretenureFlag pretenure = NOT_TENURED); 213 PretenureFlag pretenure = NOT_TENURED);
214 214
215 static Handle<JSFunction> NewFunction(Handle<String> name, 215 static Handle<JSFunction> NewFunction(Handle<String> name,
216 Handle<Object> prototype); 216 Handle<Object> prototype);
217 217
218 static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); 218 static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global);
219 219
220 static Handle<JSFunction> NewFunctionFromBoilerplate( 220 static Handle<JSFunction> NewFunctionFromBoilerplate(
221 Handle<JSFunction> boilerplate, 221 Handle<JSFunction> boilerplate,
222 Handle<Context> context); 222 Handle<Context> context,
223 PretenureFlag pretenure = TENURED);
223 224
224 static Handle<Code> NewCode(const CodeDesc& desc, 225 static Handle<Code> NewCode(const CodeDesc& desc,
225 ZoneScopeInfo* sinfo, 226 ZoneScopeInfo* sinfo,
226 Code::Flags flags, 227 Code::Flags flags,
227 Handle<Object> self_reference); 228 Handle<Object> self_reference);
228 229
229 static Handle<Code> CopyCode(Handle<Code> code); 230 static Handle<Code> CopyCode(Handle<Code> code);
230 231
231 static Handle<Object> ToObject(Handle<Object> object, 232 static Handle<Object> ToObject(Handle<Object> object,
232 Handle<Context> global_context); 233 Handle<Context> global_context);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 private: 368 private:
368 static Handle<JSFunction> NewFunctionHelper(Handle<String> name, 369 static Handle<JSFunction> NewFunctionHelper(Handle<String> name,
369 Handle<Object> prototype); 370 Handle<Object> prototype);
370 371
371 static Handle<DescriptorArray> CopyAppendCallbackDescriptors( 372 static Handle<DescriptorArray> CopyAppendCallbackDescriptors(
372 Handle<DescriptorArray> array, 373 Handle<DescriptorArray> array,
373 Handle<Object> descriptors); 374 Handle<Object> descriptors);
374 375
375 static Handle<JSFunction> BaseNewFunctionFromBoilerplate( 376 static Handle<JSFunction> BaseNewFunctionFromBoilerplate(
376 Handle<JSFunction> boilerplate, 377 Handle<JSFunction> boilerplate,
377 Handle<Map> function_map); 378 Handle<Map> function_map,
379 PretenureFlag pretenure);
378 380
379 // Create a new map cache. 381 // Create a new map cache.
380 static Handle<MapCache> NewMapCache(int at_least_space_for); 382 static Handle<MapCache> NewMapCache(int at_least_space_for);
381 383
382 // Update the map cache in the global context with (keys, map) 384 // Update the map cache in the global context with (keys, map)
383 static Handle<MapCache> AddToMapCache(Handle<Context> context, 385 static Handle<MapCache> AddToMapCache(Handle<Context> context,
384 Handle<FixedArray> keys, 386 Handle<FixedArray> keys,
385 Handle<Map> map); 387 Handle<Map> map);
386 }; 388 };
387 389
388 390
389 } } // namespace v8::internal 391 } } // namespace v8::internal
390 392
391 #endif // V8_FACTORY_H_ 393 #endif // V8_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698