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

Side by Side Diff: src/factory.h

Issue 151155: Revert 2324 until we can fix build and test errors. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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/code-stubs.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 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 29 matching lines...) Expand all
40 class Factory : public AllStatic { 40 class Factory : public AllStatic {
41 public: 41 public:
42 // Allocate a new fixed array with undefined entries. 42 // Allocate a new fixed array with undefined entries.
43 static Handle<FixedArray> NewFixedArray( 43 static Handle<FixedArray> NewFixedArray(
44 int size, 44 int size,
45 PretenureFlag pretenure = NOT_TENURED); 45 PretenureFlag pretenure = NOT_TENURED);
46 46
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 static Handle<FixedArray> NewFixedArrayWithHoles(int size); 48 static Handle<FixedArray> NewFixedArrayWithHoles(int size);
49 49
50 static Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for); 50 static Handle<Dictionary> NewDictionary(int at_least_space_for);
51
52 static Handle<StringDictionary> NewStringDictionary(int at_least_space_for);
53 51
54 static Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); 52 static Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors);
55 53
56 static Handle<String> LookupSymbol(Vector<const char> str); 54 static Handle<String> LookupSymbol(Vector<const char> str);
57 static Handle<String> LookupAsciiSymbol(const char* str) { 55 static Handle<String> LookupAsciiSymbol(const char* str) {
58 return LookupSymbol(CStrVector(str)); 56 return LookupSymbol(CStrVector(str));
59 } 57 }
60 58
61 59
62 // String creation functions. Most of the string creation functions take 60 // String creation functions. Most of the string creation functions take
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 static Handle<String> name() { return Handle<String>(&Heap::name##_); } 306 static Handle<String> name() { return Handle<String>(&Heap::name##_); }
309 SYMBOL_LIST(SYMBOL_ACCESSOR) 307 SYMBOL_LIST(SYMBOL_ACCESSOR)
310 #undef SYMBOL_ACCESSOR 308 #undef SYMBOL_ACCESSOR
311 309
312 static Handle<String> hidden_symbol() { 310 static Handle<String> hidden_symbol() {
313 return Handle<String>(&Heap::hidden_symbol_); 311 return Handle<String>(&Heap::hidden_symbol_);
314 } 312 }
315 313
316 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); 314 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name);
317 315
318 static Handle<NumberDictionary> DictionaryAtNumberPut( 316 static Handle<Dictionary> DictionaryAtNumberPut(Handle<Dictionary>,
319 Handle<NumberDictionary>, 317 uint32_t key,
320 uint32_t key, 318 Handle<Object> value);
321 Handle<Object> value);
322 319
323 #ifdef ENABLE_DEBUGGER_SUPPORT 320 #ifdef ENABLE_DEBUGGER_SUPPORT
324 static Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); 321 static Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared);
325 #endif 322 #endif
326 323
327 // Return a map using the map cache in the global context. 324 // Return a map using the map cache in the global context.
328 // The key the an ordered set of property names. 325 // The key the an ordered set of property names.
329 static Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, 326 static Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context,
330 Handle<FixedArray> keys); 327 Handle<FixedArray> keys);
331 328
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 // Update the map cache in the global context with (keys, map) 360 // Update the map cache in the global context with (keys, map)
364 static Handle<MapCache> AddToMapCache(Handle<Context> context, 361 static Handle<MapCache> AddToMapCache(Handle<Context> context,
365 Handle<FixedArray> keys, 362 Handle<FixedArray> keys,
366 Handle<Map> map); 363 Handle<Map> map);
367 }; 364 };
368 365
369 366
370 } } // namespace v8::internal 367 } } // namespace v8::internal
371 368
372 #endif // V8_FACTORY_H_ 369 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698