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

Side by Side Diff: src/serialize.cc

Issue 5188006: Push version 2.5.7 to trunk.... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 10 years, 1 month 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/scanner-base.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 int top_format_length = StrLength(top_address_format) - 2; 283 int top_format_length = StrLength(top_address_format) - 2;
284 for (uint16_t i = 0; i < Top::k_top_address_count; ++i) { 284 for (uint16_t i = 0; i < Top::k_top_address_count; ++i) {
285 const char* address_name = AddressNames[i]; 285 const char* address_name = AddressNames[i];
286 Vector<char> name = 286 Vector<char> name =
287 Vector<char>::New(top_format_length + StrLength(address_name) + 1); 287 Vector<char>::New(top_format_length + StrLength(address_name) + 1);
288 const char* chars = name.start(); 288 const char* chars = name.start();
289 OS::SNPrintF(name, top_address_format, address_name); 289 OS::SNPrintF(name, top_address_format, address_name);
290 Add(Top::get_address_from_id((Top::AddressId)i), TOP_ADDRESS, i, chars); 290 Add(Top::get_address_from_id((Top::AddressId)i), TOP_ADDRESS, i, chars);
291 } 291 }
292 292
293 // Extensions
294 Add(FUNCTION_ADDR(GCExtension::GC), EXTENSION, 1,
295 "GCExtension::GC");
296
297 // Accessors 293 // Accessors
298 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ 294 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \
299 Add((Address)&Accessors::name, \ 295 Add((Address)&Accessors::name, \
300 ACCESSOR, \ 296 ACCESSOR, \
301 Accessors::k##name, \ 297 Accessors::k##name, \
302 "Accessors::" #name); 298 "Accessors::" #name);
303 299
304 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) 300 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION)
305 #undef ACCESSOR_DESCRIPTOR_DECLARATION 301 #undef ACCESSOR_DESCRIPTOR_DECLARATION
306 302
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 1483 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
1488 } 1484 }
1489 } 1485 }
1490 int allocation_address = fullness_[space]; 1486 int allocation_address = fullness_[space];
1491 fullness_[space] = allocation_address + size; 1487 fullness_[space] = allocation_address + size;
1492 return allocation_address; 1488 return allocation_address;
1493 } 1489 }
1494 1490
1495 1491
1496 } } // namespace v8::internal 1492 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/scanner-base.cc ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698