libraries/v8/runtime.cc
// Compares 2 strings line-by-line, then token-wise and returns diff in form
// of JSArray of triplets (pos1, pos1_end, pos2_end) describing list
// of diff chunks.
Compares 2 strings line-by-line, then token-wise and returns diff in form
of JSArray of triplets (pos1, pos1_end, pos2_end) describing list
of diff chunks.
Compares 2 strings line - by - line then token - wise and returns diff in form of JSArray of triplets ( pos1 pos1_end pos2_end ) describing list of diff chunks .
RUNTIME_FUNCTION(MaybeObject*, Runtime_LiveEditCompareStrings) {
  HandleScope scope(isolate);
  CHECK(isolate->debugger()->live_edit_enabled());
  ASSERT(args.length() == 2);
  CONVERT_ARG_HANDLE_CHECKED(String, s1, 0);
  CONVERT_ARG_HANDLE_CHECKED(String, s2, 1);
  return *LiveEdit::CompareStrings(s1, s2);
}
RUNTIME_FUNCTION ( MaybeObject * , Runtime_LiveEditCompareStrings ) { HandleScope scope ( isolate ) ; CHECK ( isolate -> debugger ( ) -> live_edit_enabled ( ) ) ; ASSERT ( args . length ( ) == 2 ) ; CONVERT_ARG_HANDLE_CHECKED ( String , s1 , 0 ) ; CONVERT_ARG_HANDLE_CHECKED ( String , s2 , 1 ) ; return * LiveEdit :: CompareStrings ( s1 , s2 ) ; }
Compares 2 strings line-by-line, then token-wise and returns diff in form
of JSArray of triplets (pos1, pos1_end, pos2_end) describing list
of diff chunks.
Compares 2 strings line - by - line then token - wise and returns diff in form of JSArray of triplets ( pos1 pos1_end pos2_end ) describing list of diff chunks .