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

Side by Side Diff: src/liveedit.cc

Issue 9139051: Cosmetic changes ("set up" is a verb, "setup" is a noun). (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/lithium-allocator.cc ('k') | src/liveobjectlist.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 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 new_buffer_size = 4 * KB; 1221 new_buffer_size = 4 * KB;
1222 } else { 1222 } else {
1223 new_buffer_size = 2 * buffer_size_; 1223 new_buffer_size = 2 * buffer_size_;
1224 } 1224 }
1225 // Some internal data structures overflow for very large buffers, 1225 // Some internal data structures overflow for very large buffers,
1226 // they must ensure that kMaximalBufferSize is not too large. 1226 // they must ensure that kMaximalBufferSize is not too large.
1227 if (new_buffer_size > kMaximalBufferSize) { 1227 if (new_buffer_size > kMaximalBufferSize) {
1228 V8::FatalProcessOutOfMemory("RelocInfoBuffer::GrowBuffer"); 1228 V8::FatalProcessOutOfMemory("RelocInfoBuffer::GrowBuffer");
1229 } 1229 }
1230 1230
1231 // Setup new buffer. 1231 // Set up new buffer.
1232 byte* new_buffer = NewArray<byte>(new_buffer_size); 1232 byte* new_buffer = NewArray<byte>(new_buffer_size);
1233 1233
1234 // Copy the data. 1234 // Copy the data.
1235 int curently_used_size = 1235 int curently_used_size =
1236 static_cast<int>(buffer_ + buffer_size_ - reloc_info_writer_.pos()); 1236 static_cast<int>(buffer_ + buffer_size_ - reloc_info_writer_.pos());
1237 memmove(new_buffer + new_buffer_size - curently_used_size, 1237 memmove(new_buffer + new_buffer_size - curently_used_size,
1238 reloc_info_writer_.pos(), curently_used_size); 1238 reloc_info_writer_.pos(), curently_used_size);
1239 1239
1240 reloc_info_writer_.Reposition( 1240 reloc_info_writer_.Reposition(
1241 new_buffer + new_buffer_size - curently_used_size, 1241 new_buffer + new_buffer_size - curently_used_size,
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 1765
1766 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { 1766 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) {
1767 return false; 1767 return false;
1768 } 1768 }
1769 1769
1770 #endif // ENABLE_DEBUGGER_SUPPORT 1770 #endif // ENABLE_DEBUGGER_SUPPORT
1771 1771
1772 1772
1773 1773
1774 } } // namespace v8::internal 1774 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lithium-allocator.cc ('k') | src/liveobjectlist.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698