OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |