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

Side by Side Diff: src/factory.h

Issue 669156: Removed dangerous Factory::NewUninitializedFixedArray. (Closed)
Patch Set: Created 10 years, 9 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
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/runtime.cc » ('J')
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 27 matching lines...) Expand all
38 38
39 // Interface for handle based allocation. 39 // Interface for handle based allocation.
40 40
41 class Factory : public AllStatic { 41 class Factory : public AllStatic {
42 public: 42 public:
43 // Allocate a new fixed array with undefined entries. 43 // Allocate a new fixed array with undefined entries.
44 static Handle<FixedArray> NewFixedArray( 44 static Handle<FixedArray> NewFixedArray(
45 int size, 45 int size,
46 PretenureFlag pretenure = NOT_TENURED); 46 PretenureFlag pretenure = NOT_TENURED);
47 47
48 // Allocate a new uninitialized fixed array. It must be filled by
49 // the caller.
50 static Handle<FixedArray> NewUninitializedFixedArray(int size);
51
52 // Allocate a new fixed array with non-existing entries (the hole). 48 // Allocate a new fixed array with non-existing entries (the hole).
53 static Handle<FixedArray> NewFixedArrayWithHoles(int size); 49 static Handle<FixedArray> NewFixedArrayWithHoles(int size);
54 50
55 static Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for); 51 static Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for);
56 52
57 static Handle<StringDictionary> NewStringDictionary(int at_least_space_for); 53 static Handle<StringDictionary> NewStringDictionary(int at_least_space_for);
58 54
59 static Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); 55 static Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors);
60 56
61 static Handle<String> LookupSymbol(Vector<const char> str); 57 static Handle<String> LookupSymbol(Vector<const char> str);
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 // Update the map cache in the global context with (keys, map) 385 // Update the map cache in the global context with (keys, map)
390 static Handle<MapCache> AddToMapCache(Handle<Context> context, 386 static Handle<MapCache> AddToMapCache(Handle<Context> context,
391 Handle<FixedArray> keys, 387 Handle<FixedArray> keys,
392 Handle<Map> map); 388 Handle<Map> map);
393 }; 389 };
394 390
395 391
396 } } // namespace v8::internal 392 } } // namespace v8::internal
397 393
398 #endif // V8_FACTORY_H_ 394 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698