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

Side by Side Diff: src/serialize.cc

Issue 10176004: Make static API getters inlineable again. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reorder Isolate fields to fix alignment. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/isolate.cc ('k') | test/cctest/test-api.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 stats_ref_table[i].name); 237 stats_ref_table[i].name);
238 } 238 }
239 239
240 // Top addresses 240 // Top addresses
241 241
242 const char* AddressNames[] = { 242 const char* AddressNames[] = {
243 #define BUILD_NAME_LITERAL(CamelName, hacker_name) \ 243 #define BUILD_NAME_LITERAL(CamelName, hacker_name) \
244 "Isolate::" #hacker_name "_address", 244 "Isolate::" #hacker_name "_address",
245 FOR_EACH_ISOLATE_ADDRESS_NAME(BUILD_NAME_LITERAL) 245 FOR_EACH_ISOLATE_ADDRESS_NAME(BUILD_NAME_LITERAL)
246 NULL 246 NULL
247 #undef C 247 #undef BUILD_NAME_LITERAL
248 }; 248 };
249 249
250 for (uint16_t i = 0; i < Isolate::kIsolateAddressCount; ++i) { 250 for (uint16_t i = 0; i < Isolate::kIsolateAddressCount; ++i) {
251 Add(isolate->get_address_from_id((Isolate::AddressId)i), 251 Add(isolate->get_address_from_id((Isolate::AddressId)i),
252 TOP_ADDRESS, i, AddressNames[i]); 252 TOP_ADDRESS, i, AddressNames[i]);
253 } 253 }
254 254
255 // Accessors 255 // Accessors
256 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ 256 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \
257 Add((Address)&Accessors::name, \ 257 Add((Address)&Accessors::name, \
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 int Serializer::SpaceAreaSize(int space) { 1699 int Serializer::SpaceAreaSize(int space) {
1700 if (space == CODE_SPACE) { 1700 if (space == CODE_SPACE) {
1701 return isolate_->memory_allocator()->CodePageAreaSize(); 1701 return isolate_->memory_allocator()->CodePageAreaSize();
1702 } else { 1702 } else {
1703 return Page::kPageSize - Page::kObjectStartOffset; 1703 return Page::kPageSize - Page::kObjectStartOffset;
1704 } 1704 }
1705 } 1705 }
1706 1706
1707 1707
1708 } } // namespace v8::internal 1708 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698