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

Side by Side Diff: src/factory.h

Issue 9174023: Split NumberDictionary into a randomly seeded and an unseeded (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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/elements.cc ('k') | src/factory.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Allocate a new fixed array with non-existing entries (the hole). 47 // Allocate a new fixed array with non-existing entries (the hole).
48 Handle<FixedArray> NewFixedArrayWithHoles( 48 Handle<FixedArray> NewFixedArrayWithHoles(
49 int size, 49 int size,
50 PretenureFlag pretenure = NOT_TENURED); 50 PretenureFlag pretenure = NOT_TENURED);
51 51
52 // Allocate a new uninitialized fixed double array. 52 // Allocate a new uninitialized fixed double array.
53 Handle<FixedDoubleArray> NewFixedDoubleArray( 53 Handle<FixedDoubleArray> NewFixedDoubleArray(
54 int size, 54 int size,
55 PretenureFlag pretenure = NOT_TENURED); 55 PretenureFlag pretenure = NOT_TENURED);
56 56
57 Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for); 57 Handle<SeededNumberDictionary> NewSeededNumberDictionary(
58 int at_least_space_for);
59
60 Handle<UnseededNumberDictionary> NewUnseededNumberDictionary(
61 int at_least_space_for);
58 62
59 Handle<StringDictionary> NewStringDictionary(int at_least_space_for); 63 Handle<StringDictionary> NewStringDictionary(int at_least_space_for);
60 64
61 Handle<ObjectHashSet> NewObjectHashSet(int at_least_space_for); 65 Handle<ObjectHashSet> NewObjectHashSet(int at_least_space_for);
62 66
63 Handle<ObjectHashTable> NewObjectHashTable(int at_least_space_for); 67 Handle<ObjectHashTable> NewObjectHashTable(int at_least_space_for);
64 68
65 Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); 69 Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors);
66 Handle<DeoptimizationInputData> NewDeoptimizationInputData( 70 Handle<DeoptimizationInputData> NewDeoptimizationInputData(
67 int deopt_entry_count, 71 int deopt_entry_count,
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 429
426 Handle<JSMessageObject> NewJSMessageObject( 430 Handle<JSMessageObject> NewJSMessageObject(
427 Handle<String> type, 431 Handle<String> type,
428 Handle<JSArray> arguments, 432 Handle<JSArray> arguments,
429 int start_position, 433 int start_position,
430 int end_position, 434 int end_position,
431 Handle<Object> script, 435 Handle<Object> script,
432 Handle<Object> stack_trace, 436 Handle<Object> stack_trace,
433 Handle<Object> stack_frames); 437 Handle<Object> stack_frames);
434 438
435 Handle<NumberDictionary> DictionaryAtNumberPut( 439 Handle<SeededNumberDictionary> DictionaryAtNumberPut(
436 Handle<NumberDictionary>, 440 Handle<SeededNumberDictionary>,
441 uint32_t key,
442 Handle<Object> value);
443
444 Handle<UnseededNumberDictionary> DictionaryAtNumberPut(
445 Handle<UnseededNumberDictionary>,
437 uint32_t key, 446 uint32_t key,
438 Handle<Object> value); 447 Handle<Object> value);
439 448
440 #ifdef ENABLE_DEBUGGER_SUPPORT 449 #ifdef ENABLE_DEBUGGER_SUPPORT
441 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); 450 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared);
442 #endif 451 #endif
443 452
444 // Return a map using the map cache in the global context. 453 // Return a map using the map cache in the global context.
445 // The key the an ordered set of property names. 454 // The key the an ordered set of property names.
446 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, 455 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 // Update the map cache in the global context with (keys, map) 499 // Update the map cache in the global context with (keys, map)
491 Handle<MapCache> AddToMapCache(Handle<Context> context, 500 Handle<MapCache> AddToMapCache(Handle<Context> context,
492 Handle<FixedArray> keys, 501 Handle<FixedArray> keys,
493 Handle<Map> map); 502 Handle<Map> map);
494 }; 503 };
495 504
496 505
497 } } // namespace v8::internal 506 } } // namespace v8::internal
498 507
499 #endif // V8_FACTORY_H_ 508 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698