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

Side by Side Diff: src/factory.h

Issue 8104: Regexp caching (Closed)
Patch Set: Created 12 years, 1 month 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
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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 Handle<Object> value); 301 Handle<Object> value);
302 302
303 static Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); 303 static Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared);
304 304
305 305
306 // Return a map using the map cache in the global context. 306 // Return a map using the map cache in the global context.
307 // The key the an ordered set of property names. 307 // The key the an ordered set of property names.
308 static Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, 308 static Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context,
309 Handle<FixedArray> keys); 309 Handle<FixedArray> keys);
310 310
311 static void SetRegExpData(Handle<JSRegExp> regexp,
Kasper Lund 2008/10/24 06:42:50 Maybe a comment here? Does it set the type, source
312 JSRegExp::Type type,
313 Handle<String> source,
314 int flags,
315 Handle<Object> data);
316
311 private: 317 private:
312 static Handle<JSFunction> NewFunctionHelper(Handle<String> name, 318 static Handle<JSFunction> NewFunctionHelper(Handle<String> name,
313 Handle<Object> prototype); 319 Handle<Object> prototype);
314 320
315 static Handle<DescriptorArray> CopyAppendCallbackDescriptors( 321 static Handle<DescriptorArray> CopyAppendCallbackDescriptors(
316 Handle<DescriptorArray> array, 322 Handle<DescriptorArray> array,
317 Handle<Object> descriptors); 323 Handle<Object> descriptors);
318 324
319 static Handle<JSFunction> BaseNewFunctionFromBoilerplate( 325 static Handle<JSFunction> BaseNewFunctionFromBoilerplate(
320 Handle<JSFunction> boilerplate, 326 Handle<JSFunction> boilerplate,
321 Handle<Map> function_map); 327 Handle<Map> function_map);
322 328
323 // Create a new map cache. 329 // Create a new map cache.
324 static Handle<MapCache> NewMapCache(int at_least_space_for); 330 static Handle<MapCache> NewMapCache(int at_least_space_for);
325 331
326 // Update the map cache in the global context with (keys, map) 332 // Update the map cache in the global context with (keys, map)
327 static Handle<MapCache> AddToMapCache(Handle<Context> context, 333 static Handle<MapCache> AddToMapCache(Handle<Context> context,
328 Handle<FixedArray> keys, 334 Handle<FixedArray> keys,
329 Handle<Map> map); 335 Handle<Map> map);
330 }; 336 };
331 337
332 338
333 } } // namespace v8::internal 339 } } // namespace v8::internal
334 340
335 #endif // V8_FACTORY_H_ 341 #endif // V8_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698