| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api.h" | 8 #include "src/api.h" |
| 9 #include "src/base/platform/platform.h" | 9 #include "src/base/platform/platform.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 NULL | 358 NULL |
| 359 #undef BUILD_NAME_LITERAL | 359 #undef BUILD_NAME_LITERAL |
| 360 }; | 360 }; |
| 361 | 361 |
| 362 for (uint16_t i = 0; i < Isolate::kIsolateAddressCount; ++i) { | 362 for (uint16_t i = 0; i < Isolate::kIsolateAddressCount; ++i) { |
| 363 Add(isolate->get_address_from_id((Isolate::AddressId)i), | 363 Add(isolate->get_address_from_id((Isolate::AddressId)i), |
| 364 TOP_ADDRESS, i, AddressNames[i]); | 364 TOP_ADDRESS, i, AddressNames[i]); |
| 365 } | 365 } |
| 366 | 366 |
| 367 // Accessors | 367 // Accessors |
| 368 #define ACCESSOR_INFO_DECLARATION(name) \ | 368 #define ACCESSOR_INFO_DECLARATION(name) \ |
| 369 Add(FUNCTION_ADDR(&Accessors::name##Getter), \ | 369 Add(FUNCTION_ADDR(&Accessors::name##Getter), ACCESSOR_CODE, \ |
| 370 ACCESSOR, \ | 370 Accessors::k##name##Getter, "Accessors::" #name "Getter"); \ |
| 371 Accessors::k##name##Getter, \ | 371 Add(FUNCTION_ADDR(&Accessors::name##Setter), ACCESSOR_CODE, \ |
| 372 "Accessors::" #name "Getter"); \ | 372 Accessors::k##name##Setter, "Accessors::" #name "Setter"); |
| 373 Add(FUNCTION_ADDR(&Accessors::name##Setter), \ | |
| 374 ACCESSOR, \ | |
| 375 Accessors::k##name##Setter, \ | |
| 376 "Accessors::" #name "Setter"); | |
| 377 ACCESSOR_INFO_LIST(ACCESSOR_INFO_DECLARATION) | 373 ACCESSOR_INFO_LIST(ACCESSOR_INFO_DECLARATION) |
| 378 #undef ACCESSOR_INFO_DECLARATION | 374 #undef ACCESSOR_INFO_DECLARATION |
| 379 | 375 |
| 380 StubCache* stub_cache = isolate->stub_cache(); | 376 StubCache* stub_cache = isolate->stub_cache(); |
| 381 | 377 |
| 382 // Stub cache tables | 378 // Stub cache tables |
| 383 Add(stub_cache->key_reference(StubCache::kPrimary).address(), | 379 Add(stub_cache->key_reference(StubCache::kPrimary).address(), |
| 384 STUB_CACHE_TABLE, 1, "StubCache::primary_->key"); | 380 STUB_CACHE_TABLE, 1, "StubCache::primary_->key"); |
| 385 Add(stub_cache->value_reference(StubCache::kPrimary).address(), | 381 Add(stub_cache->value_reference(StubCache::kPrimary).address(), |
| 386 STUB_CACHE_TABLE, 2, "StubCache::primary_->value"); | 382 STUB_CACHE_TABLE, 2, "StubCache::primary_->value"); |
| (...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2481 return GetHeaderValue(kNumInternalizedStringsOffset); | 2477 return GetHeaderValue(kNumInternalizedStringsOffset); |
| 2482 } | 2478 } |
| 2483 | 2479 |
| 2484 Vector<const uint32_t> SerializedCodeData::CodeStubKeys() const { | 2480 Vector<const uint32_t> SerializedCodeData::CodeStubKeys() const { |
| 2485 int reservations_size = GetHeaderValue(kReservationsOffset) * kInt32Size; | 2481 int reservations_size = GetHeaderValue(kReservationsOffset) * kInt32Size; |
| 2486 const byte* start = data_ + kHeaderSize + reservations_size; | 2482 const byte* start = data_ + kHeaderSize + reservations_size; |
| 2487 return Vector<const uint32_t>(reinterpret_cast<const uint32_t*>(start), | 2483 return Vector<const uint32_t>(reinterpret_cast<const uint32_t*>(start), |
| 2488 GetHeaderValue(kNumCodeStubKeysOffset)); | 2484 GetHeaderValue(kNumCodeStubKeysOffset)); |
| 2489 } | 2485 } |
| 2490 } } // namespace v8::internal | 2486 } } // namespace v8::internal |
| OLD | NEW |