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

Side by Side Diff: src/factory.h

Issue 9227007: Version 3.8.6 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
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/execution.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,
68 PretenureFlag pretenure); 72 PretenureFlag pretenure);
69 Handle<DeoptimizationOutputData> NewDeoptimizationOutputData( 73 Handle<DeoptimizationOutputData> NewDeoptimizationOutputData(
70 int deopt_entry_count, 74 int deopt_entry_count,
71 PretenureFlag pretenure); 75 PretenureFlag pretenure);
76 // Allocates a pre-tenured empty AccessorPair.
77 Handle<AccessorPair> NewAccessorPair();
72 78
73 Handle<String> LookupSymbol(Vector<const char> str); 79 Handle<String> LookupSymbol(Vector<const char> str);
74 Handle<String> LookupSymbol(Handle<String> str); 80 Handle<String> LookupSymbol(Handle<String> str);
75 Handle<String> LookupAsciiSymbol(Vector<const char> str); 81 Handle<String> LookupAsciiSymbol(Vector<const char> str);
76 Handle<String> LookupAsciiSymbol(Handle<SeqAsciiString>, 82 Handle<String> LookupAsciiSymbol(Handle<SeqAsciiString>,
77 int from, 83 int from,
78 int length); 84 int length);
79 Handle<String> LookupTwoByteSymbol(Vector<const uc16> str); 85 Handle<String> LookupTwoByteSymbol(Vector<const uc16> str);
80 Handle<String> LookupAsciiSymbol(const char* str) { 86 Handle<String> LookupAsciiSymbol(const char* str) {
81 return LookupSymbol(CStrVector(str)); 87 return LookupSymbol(CStrVector(str));
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 429
424 Handle<JSMessageObject> NewJSMessageObject( 430 Handle<JSMessageObject> NewJSMessageObject(
425 Handle<String> type, 431 Handle<String> type,
426 Handle<JSArray> arguments, 432 Handle<JSArray> arguments,
427 int start_position, 433 int start_position,
428 int end_position, 434 int end_position,
429 Handle<Object> script, 435 Handle<Object> script,
430 Handle<Object> stack_trace, 436 Handle<Object> stack_trace,
431 Handle<Object> stack_frames); 437 Handle<Object> stack_frames);
432 438
433 Handle<NumberDictionary> DictionaryAtNumberPut( 439 Handle<SeededNumberDictionary> DictionaryAtNumberPut(
434 Handle<NumberDictionary>, 440 Handle<SeededNumberDictionary>,
441 uint32_t key,
442 Handle<Object> value);
443
444 Handle<UnseededNumberDictionary> DictionaryAtNumberPut(
445 Handle<UnseededNumberDictionary>,
435 uint32_t key, 446 uint32_t key,
436 Handle<Object> value); 447 Handle<Object> value);
437 448
438 #ifdef ENABLE_DEBUGGER_SUPPORT 449 #ifdef ENABLE_DEBUGGER_SUPPORT
439 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); 450 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared);
440 #endif 451 #endif
441 452
442 // Return a map using the map cache in the global context. 453 // Return a map using the map cache in the global context.
443 // The key the an ordered set of property names. 454 // The key the an ordered set of property names.
444 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
488 // Update the map cache in the global context with (keys, map) 499 // Update the map cache in the global context with (keys, map)
489 Handle<MapCache> AddToMapCache(Handle<Context> context, 500 Handle<MapCache> AddToMapCache(Handle<Context> context,
490 Handle<FixedArray> keys, 501 Handle<FixedArray> keys,
491 Handle<Map> map); 502 Handle<Map> map);
492 }; 503 };
493 504
494 505
495 } } // namespace v8::internal 506 } } // namespace v8::internal
496 507
497 #endif // V8_FACTORY_H_ 508 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698