OLD | NEW |
---|---|
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 23 matching lines...) Expand all Loading... | |
34 namespace v8 { | 34 namespace v8 { |
35 namespace internal { | 35 namespace internal { |
36 | 36 |
37 // Forward declarations. | 37 // Forward declarations. |
38 class ZoneScopeInfo; | 38 class ZoneScopeInfo; |
39 | 39 |
40 // Interface for handle based allocation. | 40 // Interface for handle based allocation. |
41 | 41 |
42 class Factory : public AllStatic { | 42 class Factory : public AllStatic { |
43 public: | 43 public: |
44 | |
Erik Corry
2010/03/26 13:51:34
Inadvertent edit?
Lasse Reichstein
2010/03/26 14:19:09
Yes, removed.
| |
44 // Allocate a new fixed array with undefined entries. | 45 // Allocate a new fixed array with undefined entries. |
45 static Handle<FixedArray> NewFixedArray( | 46 static Handle<FixedArray> NewFixedArray( |
46 int size, | 47 int size, |
47 PretenureFlag pretenure = NOT_TENURED); | 48 PretenureFlag pretenure = NOT_TENURED); |
48 | 49 |
49 // Allocate a new fixed array with non-existing entries (the hole). | 50 // Allocate a new fixed array with non-existing entries (the hole). |
50 static Handle<FixedArray> NewFixedArrayWithHoles(int size); | 51 static Handle<FixedArray> NewFixedArrayWithHoles(int size); |
51 | 52 |
52 static Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for); | 53 static Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for); |
53 | 54 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
384 // Update the map cache in the global context with (keys, map) | 385 // Update the map cache in the global context with (keys, map) |
385 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 386 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
386 Handle<FixedArray> keys, | 387 Handle<FixedArray> keys, |
387 Handle<Map> map); | 388 Handle<Map> map); |
388 }; | 389 }; |
389 | 390 |
390 | 391 |
391 } } // namespace v8::internal | 392 } } // namespace v8::internal |
392 | 393 |
393 #endif // V8_FACTORY_H_ | 394 #endif // V8_FACTORY_H_ |
OLD | NEW |