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 43075: * Reapply revisions 1383, 1384, 1391, 1398, 1401, 1402,... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/jsregexp.h » ('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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 static Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); 311 static Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared);
312 312
313 313
314 // Return a map using the map cache in the global context. 314 // Return a map using the map cache in the global context.
315 // The key the an ordered set of property names. 315 // The key the an ordered set of property names.
316 static Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, 316 static Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context,
317 Handle<FixedArray> keys); 317 Handle<FixedArray> keys);
318 318
319 // Creates a new FixedArray that holds the data associated with the 319 // Creates a new FixedArray that holds the data associated with the
320 // regexp and stores it in the regexp. 320 // atom regexp and stores it in the regexp.
321 static void SetRegExpData(Handle<JSRegExp> regexp, 321 static void SetRegExpAtomData(Handle<JSRegExp> regexp,
322 JSRegExp::Type type, 322 JSRegExp::Type type,
323 Handle<String> source, 323 Handle<String> source,
324 JSRegExp::Flags flags, 324 JSRegExp::Flags flags,
325 Handle<Object> data); 325 Handle<Object> match_pattern);
326
327 // Creates a new FixedArray that holds the data associated with the
328 // irregexp regexp and stores it in the regexp.
329 static void SetRegExpIrregexpData(Handle<JSRegExp> regexp,
330 JSRegExp::Type type,
331 Handle<String> source,
332 JSRegExp::Flags flags,
333 int capture_count);
326 334
327 private: 335 private:
328 static Handle<JSFunction> NewFunctionHelper(Handle<String> name, 336 static Handle<JSFunction> NewFunctionHelper(Handle<String> name,
329 Handle<Object> prototype); 337 Handle<Object> prototype);
330 338
331 static Handle<DescriptorArray> CopyAppendCallbackDescriptors( 339 static Handle<DescriptorArray> CopyAppendCallbackDescriptors(
332 Handle<DescriptorArray> array, 340 Handle<DescriptorArray> array,
333 Handle<Object> descriptors); 341 Handle<Object> descriptors);
334 342
335 static Handle<JSFunction> BaseNewFunctionFromBoilerplate( 343 static Handle<JSFunction> BaseNewFunctionFromBoilerplate(
336 Handle<JSFunction> boilerplate, 344 Handle<JSFunction> boilerplate,
337 Handle<Map> function_map); 345 Handle<Map> function_map);
338 346
339 // Create a new map cache. 347 // Create a new map cache.
340 static Handle<MapCache> NewMapCache(int at_least_space_for); 348 static Handle<MapCache> NewMapCache(int at_least_space_for);
341 349
342 // Update the map cache in the global context with (keys, map) 350 // Update the map cache in the global context with (keys, map)
343 static Handle<MapCache> AddToMapCache(Handle<Context> context, 351 static Handle<MapCache> AddToMapCache(Handle<Context> context,
344 Handle<FixedArray> keys, 352 Handle<FixedArray> keys,
345 Handle<Map> map); 353 Handle<Map> map);
346 }; 354 };
347 355
348 356
349 } } // namespace v8::internal 357 } } // namespace v8::internal
350 358
351 #endif // V8_FACTORY_H_ 359 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/jsregexp.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698