| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 Add(ExternalReference::store_buffer_overflow_function(isolate).address(), | 313 Add(ExternalReference::store_buffer_overflow_function(isolate).address(), |
| 314 RUNTIME_ENTRY, | 314 RUNTIME_ENTRY, |
| 315 6, | 315 6, |
| 316 "StoreBuffer::StoreBufferOverflow"); | 316 "StoreBuffer::StoreBufferOverflow"); |
| 317 Add(ExternalReference:: | 317 Add(ExternalReference:: |
| 318 incremental_evacuation_record_write_function(isolate).address(), | 318 incremental_evacuation_record_write_function(isolate).address(), |
| 319 RUNTIME_ENTRY, | 319 RUNTIME_ENTRY, |
| 320 7, | 320 7, |
| 321 "IncrementalMarking::RecordWrite"); | 321 "IncrementalMarking::RecordWrite"); |
| 322 | 322 |
| 323 | |
| 324 | |
| 325 // Miscellaneous | 323 // Miscellaneous |
| 326 Add(ExternalReference::roots_array_start(isolate).address(), | 324 Add(ExternalReference::roots_array_start(isolate).address(), |
| 327 UNCLASSIFIED, | 325 UNCLASSIFIED, |
| 328 3, | 326 3, |
| 329 "Heap::roots_array_start()"); | 327 "Heap::roots_array_start()"); |
| 330 Add(ExternalReference::address_of_stack_limit(isolate).address(), | 328 Add(ExternalReference::address_of_stack_limit(isolate).address(), |
| 331 UNCLASSIFIED, | 329 UNCLASSIFIED, |
| 332 4, | 330 4, |
| 333 "StackGuard::address_of_jslimit()"); | 331 "StackGuard::address_of_jslimit()"); |
| 334 Add(ExternalReference::address_of_real_stack_limit(isolate).address(), | 332 Add(ExternalReference::address_of_real_stack_limit(isolate).address(), |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 51, | 522 51, |
| 525 "Code::MakeCodeYoung"); | 523 "Code::MakeCodeYoung"); |
| 526 Add(ExternalReference::cpu_features().address(), | 524 Add(ExternalReference::cpu_features().address(), |
| 527 UNCLASSIFIED, | 525 UNCLASSIFIED, |
| 528 52, | 526 52, |
| 529 "cpu_features"); | 527 "cpu_features"); |
| 530 Add(ExternalReference(Runtime::kAllocateInNewSpace, isolate).address(), | 528 Add(ExternalReference(Runtime::kAllocateInNewSpace, isolate).address(), |
| 531 UNCLASSIFIED, | 529 UNCLASSIFIED, |
| 532 53, | 530 53, |
| 533 "Runtime::AllocateInNewSpace"); | 531 "Runtime::AllocateInNewSpace"); |
| 532 Add(ExternalReference(Runtime::kAllocateInTargetSpace, isolate).address(), |
| 533 UNCLASSIFIED, |
| 534 54, |
| 535 "Runtime::AllocateInTargetSpace"); |
| 534 Add(ExternalReference::old_pointer_space_allocation_top_address( | 536 Add(ExternalReference::old_pointer_space_allocation_top_address( |
| 535 isolate).address(), | 537 isolate).address(), |
| 536 UNCLASSIFIED, | 538 UNCLASSIFIED, |
| 537 54, | 539 55, |
| 538 "Heap::OldPointerSpaceAllocationTopAddress"); | 540 "Heap::OldPointerSpaceAllocationTopAddress"); |
| 539 Add(ExternalReference::old_pointer_space_allocation_limit_address( | 541 Add(ExternalReference::old_pointer_space_allocation_limit_address( |
| 540 isolate).address(), | 542 isolate).address(), |
| 541 UNCLASSIFIED, | 543 UNCLASSIFIED, |
| 542 55, | 544 56, |
| 543 "Heap::OldPointerSpaceAllocationLimitAddress"); | 545 "Heap::OldPointerSpaceAllocationLimitAddress"); |
| 544 Add(ExternalReference(Runtime::kAllocateInOldPointerSpace, isolate).address(), | |
| 545 UNCLASSIFIED, | |
| 546 56, | |
| 547 "Runtime::AllocateInOldPointerSpace"); | |
| 548 Add(ExternalReference::old_data_space_allocation_top_address( | 546 Add(ExternalReference::old_data_space_allocation_top_address( |
| 549 isolate).address(), | 547 isolate).address(), |
| 550 UNCLASSIFIED, | 548 UNCLASSIFIED, |
| 551 57, | 549 57, |
| 552 "Heap::OldDataSpaceAllocationTopAddress"); | 550 "Heap::OldDataSpaceAllocationTopAddress"); |
| 553 Add(ExternalReference::old_data_space_allocation_limit_address( | 551 Add(ExternalReference::old_data_space_allocation_limit_address( |
| 554 isolate).address(), | 552 isolate).address(), |
| 555 UNCLASSIFIED, | 553 UNCLASSIFIED, |
| 556 58, | 554 58, |
| 557 "Heap::OldDataSpaceAllocationLimitAddress"); | 555 "Heap::OldDataSpaceAllocationLimitAddress"); |
| 558 Add(ExternalReference(Runtime::kAllocateInOldDataSpace, isolate).address(), | |
| 559 UNCLASSIFIED, | |
| 560 59, | |
| 561 "Runtime::AllocateInOldDataSpace"); | |
| 562 Add(ExternalReference::new_space_high_promotion_mode_active_address(isolate). | 556 Add(ExternalReference::new_space_high_promotion_mode_active_address(isolate). |
| 563 address(), | 557 address(), |
| 564 UNCLASSIFIED, | 558 UNCLASSIFIED, |
| 565 60, | 559 59, |
| 566 "Heap::NewSpaceAllocationLimitAddress"); | 560 "Heap::NewSpaceAllocationLimitAddress"); |
| 567 Add(ExternalReference::allocation_sites_list_address(isolate).address(), | 561 Add(ExternalReference::allocation_sites_list_address(isolate).address(), |
| 568 UNCLASSIFIED, | 562 UNCLASSIFIED, |
| 569 61, | 563 60, |
| 570 "Heap::allocation_sites_list_address()"); | 564 "Heap::allocation_sites_list_address()"); |
| 571 Add(ExternalReference::address_of_uint32_bias().address(), | 565 Add(ExternalReference::address_of_uint32_bias().address(), |
| 572 UNCLASSIFIED, | 566 UNCLASSIFIED, |
| 573 62, | 567 61, |
| 574 "uint32_bias"); | 568 "uint32_bias"); |
| 575 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(), | 569 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(), |
| 576 UNCLASSIFIED, | 570 UNCLASSIFIED, |
| 577 63, | 571 62, |
| 578 "Code::MarkCodeAsExecuted"); | 572 "Code::MarkCodeAsExecuted"); |
| 579 | 573 |
| 580 // Add a small set of deopt entry addresses to encoder without generating the | 574 // Add a small set of deopt entry addresses to encoder without generating the |
| 581 // deopt table code, which isn't possible at deserialization time. | 575 // deopt table code, which isn't possible at deserialization time. |
| 582 HandleScope scope(isolate); | 576 HandleScope scope(isolate); |
| 583 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { | 577 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { |
| 584 Address address = Deoptimizer::GetDeoptimizationEntry( | 578 Address address = Deoptimizer::GetDeoptimizationEntry( |
| 585 isolate, | 579 isolate, |
| 586 entry, | 580 entry, |
| 587 Deoptimizer::LAZY, | 581 Deoptimizer::LAZY, |
| 588 Deoptimizer::CALCULATE_ENTRY_ADDRESS); | 582 Deoptimizer::CALCULATE_ENTRY_ADDRESS); |
| 589 Add(address, LAZY_DEOPTIMIZATION, 64 + entry, "lazy_deopt"); | 583 Add(address, LAZY_DEOPTIMIZATION, entry, "lazy_deopt"); |
| 590 } | 584 } |
| 591 } | 585 } |
| 592 | 586 |
| 593 | 587 |
| 594 ExternalReferenceEncoder::ExternalReferenceEncoder(Isolate* isolate) | 588 ExternalReferenceEncoder::ExternalReferenceEncoder(Isolate* isolate) |
| 595 : encodings_(Match), | 589 : encodings_(Match), |
| 596 isolate_(isolate) { | 590 isolate_(isolate) { |
| 597 ExternalReferenceTable* external_references = | 591 ExternalReferenceTable* external_references = |
| 598 ExternalReferenceTable::instance(isolate_); | 592 ExternalReferenceTable::instance(isolate_); |
| 599 for (int i = 0; i < external_references->size(); ++i) { | 593 for (int i = 0; i < external_references->size(); ++i) { |
| (...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1871 | 1865 |
| 1872 bool SnapshotByteSource::AtEOF() { | 1866 bool SnapshotByteSource::AtEOF() { |
| 1873 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; | 1867 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; |
| 1874 for (int x = position_; x < length_; x++) { | 1868 for (int x = position_; x < length_; x++) { |
| 1875 if (data_[x] != SerializerDeserializer::nop()) return false; | 1869 if (data_[x] != SerializerDeserializer::nop()) return false; |
| 1876 } | 1870 } |
| 1877 return true; | 1871 return true; |
| 1878 } | 1872 } |
| 1879 | 1873 |
| 1880 } } // namespace v8::internal | 1874 } } // namespace v8::internal |
| OLD | NEW |