OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 LineEndsWrapper line_ends2_; | 575 LineEndsWrapper line_ends2_; |
576 Handle<String> s1_; | 576 Handle<String> s1_; |
577 Handle<String> s2_; | 577 Handle<String> s2_; |
578 int subrange_offset1_; | 578 int subrange_offset1_; |
579 int subrange_offset2_; | 579 int subrange_offset2_; |
580 }; | 580 }; |
581 | 581 |
582 | 582 |
583 Handle<JSArray> LiveEdit::CompareStrings(Handle<String> s1, | 583 Handle<JSArray> LiveEdit::CompareStrings(Handle<String> s1, |
584 Handle<String> s2) { | 584 Handle<String> s2) { |
585 s1 = FlattenGetString(s1); | 585 s1 = String::Flatten(s1); |
586 s2 = FlattenGetString(s2); | 586 s2 = String::Flatten(s2); |
587 | 587 |
588 LineEndsWrapper line_ends1(s1); | 588 LineEndsWrapper line_ends1(s1); |
589 LineEndsWrapper line_ends2(s2); | 589 LineEndsWrapper line_ends2(s2); |
590 | 590 |
591 LineArrayCompareInput input(s1, s2, line_ends1, line_ends2); | 591 LineArrayCompareInput input(s1, s2, line_ends1, line_ends2); |
592 TokenizingLineArrayCompareOutput output(line_ends1, line_ends2, s1, s2); | 592 TokenizingLineArrayCompareOutput output(line_ends1, line_ends2, s1, s2); |
593 | 593 |
594 NarrowDownInput(&input, &output); | 594 NarrowDownInput(&input, &output); |
595 | 595 |
596 Comparator::CalculateDifference(&input, &output); | 596 Comparator::CalculateDifference(&input, &output); |
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2002 | 2002 |
2003 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { | 2003 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { |
2004 return false; | 2004 return false; |
2005 } | 2005 } |
2006 | 2006 |
2007 #endif // ENABLE_DEBUGGER_SUPPORT | 2007 #endif // ENABLE_DEBUGGER_SUPPORT |
2008 | 2008 |
2009 | 2009 |
2010 | 2010 |
2011 } } // namespace v8::internal | 2011 } } // namespace v8::internal |
OLD | NEW |