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

Side by Side Diff: src/factory.h

Issue 1563005: Introduce fast native caches and use it in String.search. (Closed)
Patch Set: Last round :) Created 10 years, 8 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 | « src/contexts.h ('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 // 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 // Allocate a new fixed array with undefined entries. 44 // Allocate a new fixed array with undefined entries.
45 static Handle<FixedArray> NewFixedArray( 45 static Handle<FixedArray> NewFixedArray(
46 int size, 46 int size,
47 PretenureFlag pretenure = NOT_TENURED); 47 PretenureFlag pretenure = NOT_TENURED);
48 48
49 // Allocate a new fixed array with non-existing entries (the hole). 49 // Allocate a new fixed array with non-existing entries (the hole).
50 static Handle<FixedArray> NewFixedArrayWithHoles(int size); 50 static Handle<FixedArray> NewFixedArrayWithHoles(
51 int size,
52 PretenureFlag pretenure = NOT_TENURED);
51 53
52 static Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for); 54 static Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for);
53 55
54 static Handle<StringDictionary> NewStringDictionary(int at_least_space_for); 56 static Handle<StringDictionary> NewStringDictionary(int at_least_space_for);
55 57
56 static Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); 58 static Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors);
57 59
58 static Handle<String> LookupSymbol(Vector<const char> str); 60 static Handle<String> LookupSymbol(Vector<const char> str);
59 static Handle<String> LookupAsciiSymbol(const char* str) { 61 static Handle<String> LookupAsciiSymbol(const char* str) {
60 return LookupSymbol(CStrVector(str)); 62 return LookupSymbol(CStrVector(str));
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 // Update the map cache in the global context with (keys, map) 386 // Update the map cache in the global context with (keys, map)
385 static Handle<MapCache> AddToMapCache(Handle<Context> context, 387 static Handle<MapCache> AddToMapCache(Handle<Context> context,
386 Handle<FixedArray> keys, 388 Handle<FixedArray> keys,
387 Handle<Map> map); 389 Handle<Map> map);
388 }; 390 };
389 391
390 392
391 } } // namespace v8::internal 393 } } // namespace v8::internal
392 394
393 #endif // V8_FACTORY_H_ 395 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698