Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/runtime.cc

Issue 1672006: Support multi-chunk differences (Closed)
Patch Set: merge Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/liveedit-debugger.js ('k') | test/mjsunit/debug-liveedit-newsource.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 9748 matching lines...) Expand 10 before | Expand all | Expand 10 after
9759 static Object* Runtime_LiveEditCheckAndDropActivations(Arguments args) { 9759 static Object* Runtime_LiveEditCheckAndDropActivations(Arguments args) {
9760 ASSERT(args.length() == 2); 9760 ASSERT(args.length() == 2);
9761 HandleScope scope; 9761 HandleScope scope;
9762 CONVERT_ARG_CHECKED(JSArray, shared_array, 0); 9762 CONVERT_ARG_CHECKED(JSArray, shared_array, 0);
9763 CONVERT_BOOLEAN_CHECKED(do_drop, args[1]); 9763 CONVERT_BOOLEAN_CHECKED(do_drop, args[1]);
9764 9764
9765 return *LiveEdit::CheckAndDropActivations(shared_array, do_drop); 9765 return *LiveEdit::CheckAndDropActivations(shared_array, do_drop);
9766 } 9766 }
9767 9767
9768 // Compares 2 strings line-by-line and returns diff in form of JSArray of 9768 // Compares 2 strings line-by-line and returns diff in form of JSArray of
9769 // triplets (pos1, len1, len2) describing list of diff chunks. 9769 // triplets (pos1, pos1_end, pos2_end) describing list of diff chunks.
9770 static Object* Runtime_LiveEditCompareStringsLinewise(Arguments args) { 9770 static Object* Runtime_LiveEditCompareStringsLinewise(Arguments args) {
9771 ASSERT(args.length() == 2); 9771 ASSERT(args.length() == 2);
9772 HandleScope scope; 9772 HandleScope scope;
9773 CONVERT_ARG_CHECKED(String, s1, 0); 9773 CONVERT_ARG_CHECKED(String, s1, 0);
9774 CONVERT_ARG_CHECKED(String, s2, 1); 9774 CONVERT_ARG_CHECKED(String, s2, 1);
9775 9775
9776 return *LiveEdit::CompareStringsLinewise(s1, s2); 9776 return *LiveEdit::CompareStringsLinewise(s1, s2);
9777 } 9777 }
9778 9778
9779 9779
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
10201 } else { 10201 } else {
10202 // Handle last resort GC and make sure to allow future allocations 10202 // Handle last resort GC and make sure to allow future allocations
10203 // to grow the heap without causing GCs (if possible). 10203 // to grow the heap without causing GCs (if possible).
10204 Counters::gc_last_resort_from_js.Increment(); 10204 Counters::gc_last_resort_from_js.Increment();
10205 Heap::CollectAllGarbage(false); 10205 Heap::CollectAllGarbage(false);
10206 } 10206 }
10207 } 10207 }
10208 10208
10209 10209
10210 } } // namespace v8::internal 10210 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/liveedit-debugger.js ('k') | test/mjsunit/debug-liveedit-newsource.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698