OLD | NEW |
---|---|
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 Loading... | |
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 like 'undefined' or | |
448 // a null handle when the given name is unknown. | |
Steven
2011/09/22 13:57:23
Add a comment that those properties of the global
Sven Panne
2011/09/23 07:59:49
Done.
| |
449 Handle<Object> GlobalConstantFor(Handle<String> name); | |
450 | |
447 private: | 451 private: |
448 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); } | 452 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); } |
449 | 453 |
450 Handle<JSFunction> NewFunctionHelper(Handle<String> name, | 454 Handle<JSFunction> NewFunctionHelper(Handle<String> name, |
451 Handle<Object> prototype); | 455 Handle<Object> prototype); |
452 | 456 |
453 Handle<JSFunction> NewFunctionWithoutPrototypeHelper( | 457 Handle<JSFunction> NewFunctionWithoutPrototypeHelper( |
454 Handle<String> name, | 458 Handle<String> name, |
455 StrictModeFlag strict_mode); | 459 StrictModeFlag strict_mode); |
456 | 460 |
457 Handle<DescriptorArray> CopyAppendCallbackDescriptors( | 461 Handle<DescriptorArray> CopyAppendCallbackDescriptors( |
458 Handle<DescriptorArray> array, | 462 Handle<DescriptorArray> array, |
459 Handle<Object> descriptors); | 463 Handle<Object> descriptors); |
460 | 464 |
461 // Create a new map cache. | 465 // Create a new map cache. |
462 Handle<MapCache> NewMapCache(int at_least_space_for); | 466 Handle<MapCache> NewMapCache(int at_least_space_for); |
463 | 467 |
464 // Update the map cache in the global context with (keys, map) | 468 // Update the map cache in the global context with (keys, map) |
465 Handle<MapCache> AddToMapCache(Handle<Context> context, | 469 Handle<MapCache> AddToMapCache(Handle<Context> context, |
466 Handle<FixedArray> keys, | 470 Handle<FixedArray> keys, |
467 Handle<Map> map); | 471 Handle<Map> map); |
468 }; | 472 }; |
469 | 473 |
470 | 474 |
471 } } // namespace v8::internal | 475 } } // namespace v8::internal |
472 | 476 |
473 #endif // V8_FACTORY_H_ | 477 #endif // V8_FACTORY_H_ |
OLD | NEW |