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

Side by Side Diff: src/factory.h

Issue 7992002: Improve Hydrogen code for accessing undefined/null/Infinity. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 3 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') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 Handle<Object> match_pattern); 437 Handle<Object> match_pattern);
438 438
439 // Creates a new FixedArray that holds the data associated with the 439 // Creates a new FixedArray that holds the data associated with the
440 // irregexp regexp and stores it in the regexp. 440 // irregexp regexp and stores it in the regexp.
441 void SetRegExpIrregexpData(Handle<JSRegExp> regexp, 441 void SetRegExpIrregexpData(Handle<JSRegExp> regexp,
442 JSRegExp::Type type, 442 JSRegExp::Type type,
443 Handle<String> source, 443 Handle<String> source,
444 JSRegExp::Flags flags, 444 JSRegExp::Flags flags,
445 int capture_count); 445 int capture_count);
446 446
447 // Returns the value for a known global constant (a property of the global
448 // object which is neither configurable nor writable) like 'undefined'.
449 // Returns a null handle when the given name is unknown.
450 Handle<Object> GlobalConstantFor(Handle<String> name);
451
447 private: 452 private:
448 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); } 453 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); }
449 454
450 Handle<JSFunction> NewFunctionHelper(Handle<String> name, 455 Handle<JSFunction> NewFunctionHelper(Handle<String> name,
451 Handle<Object> prototype); 456 Handle<Object> prototype);
452 457
453 Handle<JSFunction> NewFunctionWithoutPrototypeHelper( 458 Handle<JSFunction> NewFunctionWithoutPrototypeHelper(
454 Handle<String> name, 459 Handle<String> name,
455 StrictModeFlag strict_mode); 460 StrictModeFlag strict_mode);
456 461
457 Handle<DescriptorArray> CopyAppendCallbackDescriptors( 462 Handle<DescriptorArray> CopyAppendCallbackDescriptors(
458 Handle<DescriptorArray> array, 463 Handle<DescriptorArray> array,
459 Handle<Object> descriptors); 464 Handle<Object> descriptors);
460 465
461 // Create a new map cache. 466 // Create a new map cache.
462 Handle<MapCache> NewMapCache(int at_least_space_for); 467 Handle<MapCache> NewMapCache(int at_least_space_for);
463 468
464 // Update the map cache in the global context with (keys, map) 469 // Update the map cache in the global context with (keys, map)
465 Handle<MapCache> AddToMapCache(Handle<Context> context, 470 Handle<MapCache> AddToMapCache(Handle<Context> context,
466 Handle<FixedArray> keys, 471 Handle<FixedArray> keys,
467 Handle<Map> map); 472 Handle<Map> map);
468 }; 473 };
469 474
470 475
471 } } // namespace v8::internal 476 } } // namespace v8::internal
472 477
473 #endif // V8_FACTORY_H_ 478 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698