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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 447 // Returns the value for a known global constant (a property of the global |
448 // object which is neither configurable nor writable) like 'undefined'. | 448 // object which is neither configurable nor writable) like 'undefined'. |
449 // Returns a null handle when the given name is unknown. | 449 // Returns a null handle when the given name is unknown. |
450 Handle<Object> GlobalConstantFor(Handle<String> name); | 450 Handle<Object> GlobalConstantFor(Handle<String> name); |
451 | 451 |
| 452 // Converts the given boolean condition to JavaScript boolean value. |
| 453 Handle<Object> ToBoolean(bool value); |
| 454 |
452 private: | 455 private: |
453 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); } | 456 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); } |
454 | 457 |
455 Handle<JSFunction> NewFunctionHelper(Handle<String> name, | 458 Handle<JSFunction> NewFunctionHelper(Handle<String> name, |
456 Handle<Object> prototype); | 459 Handle<Object> prototype); |
457 | 460 |
458 Handle<JSFunction> NewFunctionWithoutPrototypeHelper( | 461 Handle<JSFunction> NewFunctionWithoutPrototypeHelper( |
459 Handle<String> name, | 462 Handle<String> name, |
460 StrictModeFlag strict_mode); | 463 StrictModeFlag strict_mode); |
461 | 464 |
462 Handle<DescriptorArray> CopyAppendCallbackDescriptors( | 465 Handle<DescriptorArray> CopyAppendCallbackDescriptors( |
463 Handle<DescriptorArray> array, | 466 Handle<DescriptorArray> array, |
464 Handle<Object> descriptors); | 467 Handle<Object> descriptors); |
465 | 468 |
466 // Create a new map cache. | 469 // Create a new map cache. |
467 Handle<MapCache> NewMapCache(int at_least_space_for); | 470 Handle<MapCache> NewMapCache(int at_least_space_for); |
468 | 471 |
469 // Update the map cache in the global context with (keys, map) | 472 // Update the map cache in the global context with (keys, map) |
470 Handle<MapCache> AddToMapCache(Handle<Context> context, | 473 Handle<MapCache> AddToMapCache(Handle<Context> context, |
471 Handle<FixedArray> keys, | 474 Handle<FixedArray> keys, |
472 Handle<Map> map); | 475 Handle<Map> map); |
473 }; | 476 }; |
474 | 477 |
475 | 478 |
476 } } // namespace v8::internal | 479 } } // namespace v8::internal |
477 | 480 |
478 #endif // V8_FACTORY_H_ | 481 #endif // V8_FACTORY_H_ |
OLD | NEW |