| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "accessors.h" | 7 #include "accessors.h" |
| 8 #include "api.h" | 8 #include "api.h" |
| 9 #include "bootstrapper.h" | 9 #include "bootstrapper.h" |
| 10 #include "deoptimizer.h" | 10 #include "deoptimizer.h" |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 Add(ExternalReference::old_data_space_allocation_top_address( | 480 Add(ExternalReference::old_data_space_allocation_top_address( |
| 481 isolate).address(), | 481 isolate).address(), |
| 482 UNCLASSIFIED, | 482 UNCLASSIFIED, |
| 483 57, | 483 57, |
| 484 "Heap::OldDataSpaceAllocationTopAddress"); | 484 "Heap::OldDataSpaceAllocationTopAddress"); |
| 485 Add(ExternalReference::old_data_space_allocation_limit_address( | 485 Add(ExternalReference::old_data_space_allocation_limit_address( |
| 486 isolate).address(), | 486 isolate).address(), |
| 487 UNCLASSIFIED, | 487 UNCLASSIFIED, |
| 488 58, | 488 58, |
| 489 "Heap::OldDataSpaceAllocationLimitAddress"); | 489 "Heap::OldDataSpaceAllocationLimitAddress"); |
| 490 Add(ExternalReference::new_space_high_promotion_mode_active_address(isolate). | 490 Add(ExternalReference::allocation_sites_list_address(isolate).address(), |
| 491 address(), | |
| 492 UNCLASSIFIED, | 491 UNCLASSIFIED, |
| 493 59, | 492 59, |
| 494 "Heap::NewSpaceAllocationLimitAddress"); | |
| 495 Add(ExternalReference::allocation_sites_list_address(isolate).address(), | |
| 496 UNCLASSIFIED, | |
| 497 60, | |
| 498 "Heap::allocation_sites_list_address()"); | 493 "Heap::allocation_sites_list_address()"); |
| 499 Add(ExternalReference::address_of_uint32_bias().address(), | 494 Add(ExternalReference::address_of_uint32_bias().address(), |
| 500 UNCLASSIFIED, | 495 UNCLASSIFIED, |
| 501 61, | 496 60, |
| 502 "uint32_bias"); | 497 "uint32_bias"); |
| 503 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(), | 498 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(), |
| 504 UNCLASSIFIED, | 499 UNCLASSIFIED, |
| 505 62, | 500 61, |
| 506 "Code::MarkCodeAsExecuted"); | 501 "Code::MarkCodeAsExecuted"); |
| 507 | 502 |
| 508 Add(ExternalReference::is_profiling_address(isolate).address(), | 503 Add(ExternalReference::is_profiling_address(isolate).address(), |
| 509 UNCLASSIFIED, | 504 UNCLASSIFIED, |
| 510 63, | 505 62, |
| 511 "CpuProfiler::is_profiling"); | 506 "CpuProfiler::is_profiling"); |
| 512 | 507 |
| 513 Add(ExternalReference::scheduled_exception_address(isolate).address(), | 508 Add(ExternalReference::scheduled_exception_address(isolate).address(), |
| 514 UNCLASSIFIED, | 509 UNCLASSIFIED, |
| 515 64, | 510 63, |
| 516 "Isolate::scheduled_exception"); | 511 "Isolate::scheduled_exception"); |
| 517 | 512 |
| 518 Add(ExternalReference::invoke_function_callback(isolate).address(), | 513 Add(ExternalReference::invoke_function_callback(isolate).address(), |
| 519 UNCLASSIFIED, | 514 UNCLASSIFIED, |
| 520 65, | 515 64, |
| 521 "InvokeFunctionCallback"); | 516 "InvokeFunctionCallback"); |
| 522 | 517 |
| 523 Add(ExternalReference::invoke_accessor_getter_callback(isolate).address(), | 518 Add(ExternalReference::invoke_accessor_getter_callback(isolate).address(), |
| 524 UNCLASSIFIED, | 519 UNCLASSIFIED, |
| 525 66, | 520 65, |
| 526 "InvokeAccessorGetterCallback"); | 521 "InvokeAccessorGetterCallback"); |
| 527 | 522 |
| 528 // Debug addresses | 523 // Debug addresses |
| 529 Add(ExternalReference::debug_after_break_target_address(isolate).address(), | 524 Add(ExternalReference::debug_after_break_target_address(isolate).address(), |
| 530 UNCLASSIFIED, | 525 UNCLASSIFIED, |
| 531 67, | 526 66, |
| 532 "Debug::after_break_target_address()"); | 527 "Debug::after_break_target_address()"); |
| 533 | 528 |
| 534 Add(ExternalReference::debug_restarter_frame_function_pointer_address( | 529 Add(ExternalReference::debug_restarter_frame_function_pointer_address( |
| 535 isolate).address(), | 530 isolate).address(), |
| 536 UNCLASSIFIED, | 531 UNCLASSIFIED, |
| 537 68, | 532 67, |
| 538 "Debug::restarter_frame_function_pointer_address()"); | 533 "Debug::restarter_frame_function_pointer_address()"); |
| 539 | 534 |
| 540 // Add a small set of deopt entry addresses to encoder without generating the | 535 // Add a small set of deopt entry addresses to encoder without generating the |
| 541 // deopt table code, which isn't possible at deserialization time. | 536 // deopt table code, which isn't possible at deserialization time. |
| 542 HandleScope scope(isolate); | 537 HandleScope scope(isolate); |
| 543 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { | 538 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { |
| 544 Address address = Deoptimizer::GetDeoptimizationEntry( | 539 Address address = Deoptimizer::GetDeoptimizationEntry( |
| 545 isolate, | 540 isolate, |
| 546 entry, | 541 entry, |
| 547 Deoptimizer::LAZY, | 542 Deoptimizer::LAZY, |
| (...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1837 | 1832 |
| 1838 bool SnapshotByteSource::AtEOF() { | 1833 bool SnapshotByteSource::AtEOF() { |
| 1839 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; | 1834 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; |
| 1840 for (int x = position_; x < length_; x++) { | 1835 for (int x = position_; x < length_; x++) { |
| 1841 if (data_[x] != SerializerDeserializer::nop()) return false; | 1836 if (data_[x] != SerializerDeserializer::nop()) return false; |
| 1842 } | 1837 } |
| 1843 return true; | 1838 return true; |
| 1844 } | 1839 } |
| 1845 | 1840 |
| 1846 } } // namespace v8::internal | 1841 } } // namespace v8::internal |
| OLD | NEW |