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

Side by Side Diff: src/objects.cc

Issue 8692002: Only sweep one page eagerly unless we are running out of space. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « src/mark-compact.cc ('k') | src/spaces.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 String* first = cs->first(); 919 String* first = cs->first();
920 int first_length = first->length(); 920 int first_length = first->length();
921 WriteToFlat(first, dest, 0, first_length); 921 WriteToFlat(first, dest, 0, first_length);
922 String* second = cs->second(); 922 String* second = cs->second();
923 WriteToFlat(second, 923 WriteToFlat(second,
924 dest + first_length, 924 dest + first_length,
925 0, 925 0,
926 len - first_length); 926 len - first_length);
927 } 927 }
928 cs->set_first(result); 928 cs->set_first(result);
929 cs->set_second(heap->empty_string()); 929 cs->set_second(heap->empty_string(), SKIP_WRITE_BARRIER);
930 return result; 930 return result;
931 } 931 }
932 default: 932 default:
933 return this; 933 return this;
934 } 934 }
935 } 935 }
936 936
937 937
938 bool String::MakeExternal(v8::String::ExternalStringResource* resource) { 938 bool String::MakeExternal(v8::String::ExternalStringResource* resource) {
939 // Externalizing twice leaks the external resource, so it's 939 // Externalizing twice leaks the external resource, so it's
(...skipping 11568 matching lines...) Expand 10 before | Expand all | Expand 10 after
12508 if (break_point_objects()->IsUndefined()) return 0; 12508 if (break_point_objects()->IsUndefined()) return 0;
12509 // Single break point. 12509 // Single break point.
12510 if (!break_point_objects()->IsFixedArray()) return 1; 12510 if (!break_point_objects()->IsFixedArray()) return 1;
12511 // Multiple break points. 12511 // Multiple break points.
12512 return FixedArray::cast(break_point_objects())->length(); 12512 return FixedArray::cast(break_point_objects())->length();
12513 } 12513 }
12514 #endif // ENABLE_DEBUGGER_SUPPORT 12514 #endif // ENABLE_DEBUGGER_SUPPORT
12515 12515
12516 12516
12517 } } // namespace v8::internal 12517 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698