Chromium Code Reviews| Index: src/factory.cc |
| =================================================================== |
| --- src/factory.cc (revision 8350) |
| +++ src/factory.cc (working copy) |
| @@ -214,6 +214,15 @@ |
| } |
| +Handle<String> Factory::NewStrictSubString(Handle<String> str, |
| + int begin, |
| + int end) { |
| + CALL_HEAP_FUNCTION(isolate(), |
|
Vitaly Repeshko
2011/06/22 12:45:41
Assert it's a strict substring?
sandholm
2011/06/22 14:05:41
Done.
|
| + isolate()->heap()->AllocateSubString(*str, begin, end), |
| + String); |
| +} |
| + |
| + |
| Handle<String> Factory::NewExternalStringFromAscii( |
| ExternalAsciiString::Resource* resource) { |
| CALL_HEAP_FUNCTION( |