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

Side by Side Diff: src/serialize.cc

Issue 7350014: Remove the ability to compile without logging and profiling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 9 years, 5 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/runtime-profiler.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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 STATS_COUNTER, 277 STATS_COUNTER,
278 stats_ref_table[i].id, 278 stats_ref_table[i].id,
279 stats_ref_table[i].name); 279 stats_ref_table[i].name);
280 } 280 }
281 281
282 // Top addresses 282 // Top addresses
283 283
284 const char* AddressNames[] = { 284 const char* AddressNames[] = {
285 #define C(name) "Isolate::" #name, 285 #define C(name) "Isolate::" #name,
286 ISOLATE_ADDRESS_LIST(C) 286 ISOLATE_ADDRESS_LIST(C)
287 ISOLATE_ADDRESS_LIST_PROF(C)
288 NULL 287 NULL
289 #undef C 288 #undef C
290 }; 289 };
291 290
292 for (uint16_t i = 0; i < Isolate::k_isolate_address_count; ++i) { 291 for (uint16_t i = 0; i < Isolate::k_isolate_address_count; ++i) {
293 Add(isolate->get_address_from_id((Isolate::AddressId)i), 292 Add(isolate->get_address_from_id((Isolate::AddressId)i),
294 TOP_ADDRESS, i, AddressNames[i]); 293 TOP_ADDRESS, i, AddressNames[i]);
295 } 294 }
296 295
297 // Accessors 296 // Accessors
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 1565 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
1567 } 1566 }
1568 } 1567 }
1569 int allocation_address = fullness_[space]; 1568 int allocation_address = fullness_[space];
1570 fullness_[space] = allocation_address + size; 1569 fullness_[space] = allocation_address + size;
1571 return allocation_address; 1570 return allocation_address;
1572 } 1571 }
1573 1572
1574 1573
1575 } } // namespace v8::internal 1574 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime-profiler.cc ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698