libraries/v8/runtime.cc
// This will not allocate (flatten the string), but it may run
// very slowly for very deeply nested ConsStrings.  For debugging use only.
This will not allocate (flatten the string), but it may run
very slowly for very deeply nested ConsStrings.  For debugging use only.
This will not allocate ( flatten the string ) but it may run very slowly for very deeply nested ConsStrings . For debugging use only .
RUNTIME_FUNCTION(MaybeObject*, Runtime_GlobalPrint) {
  SealHandleScope shs(isolate);
  ASSERT(args.length() == 1);
  CONVERT_ARG_CHECKED(String, string, 0);
  ConsStringIteratorOp op;
  StringCharacterStream stream(string, &op);
  while (stream.HasMore()) {
    uint16_t character = stream.GetNext();
    PrintF("%c", character);
  }
  return string;
}
RUNTIME_FUNCTION ( MaybeObject * , Runtime_GlobalPrint ) { SealHandleScope shs ( isolate ) ; ASSERT ( args . length ( ) == 1 ) ; CONVERT_ARG_CHECKED ( String , string , 0 ) ; ConsStringIteratorOp op ; StringCharacterStream stream ( string , & op ) ; while ( stream . HasMore ( ) ) { uint16_t character = stream . GetNext ( ) ; PrintF ( " " , character ) ; } return string ; }
This will not allocate (flatten the string), but it may run
very slowly for very deeply nested ConsStrings.
This will not allocate ( flatten the string ) but it may run very slowly for very deeply nested ConsStrings .