| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 414636609f1495b1a45c6833bbb595e5e5b8b6f3..67d60e15693227d25f818fd0cf45403a05d97207 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -9756,10 +9756,21 @@ static Object* Runtime_LiveEditCheckAndDropActivations(Arguments args) {
|
| CONVERT_ARG_CHECKED(JSArray, shared_array, 0);
|
| CONVERT_BOOLEAN_CHECKED(do_drop, args[1]);
|
|
|
| -
|
| return *LiveEdit::CheckAndDropActivations(shared_array, do_drop);
|
| }
|
|
|
| +// Compares 2 strings line-by-line and returns diff in form of JSArray of
|
| +// triplets (pos1, len1, len2) describing list of diff chunks.
|
| +static Object* Runtime_LiveEditCompareStringsLinewise(Arguments args) {
|
| + ASSERT(args.length() == 2);
|
| + HandleScope scope;
|
| + CONVERT_ARG_CHECKED(String, s1, 0);
|
| + CONVERT_ARG_CHECKED(String, s2, 1);
|
| +
|
| + return *LiveEdit::CompareStringsLinewise(s1, s2);
|
| +}
|
| +
|
| +
|
|
|
| // A testing entry. Returns statement position which is the closest to
|
| // source_position.
|
|
|