| 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 "Runtime::AllocateInOldDataSpace"); | 561 "Runtime::AllocateInOldDataSpace"); |
| 562 Add(ExternalReference::new_space_high_promotion_mode_active_address(isolate). | 562 Add(ExternalReference::new_space_high_promotion_mode_active_address(isolate). |
| 563 address(), | 563 address(), |
| 564 UNCLASSIFIED, | 564 UNCLASSIFIED, |
| 565 60, | 565 60, |
| 566 "Heap::NewSpaceAllocationLimitAddress"); | 566 "Heap::NewSpaceAllocationLimitAddress"); |
| 567 Add(ExternalReference::allocation_sites_list_address(isolate).address(), | 567 Add(ExternalReference::allocation_sites_list_address(isolate).address(), |
| 568 UNCLASSIFIED, | 568 UNCLASSIFIED, |
| 569 61, | 569 61, |
| 570 "Heap::allocation_sites_list_address()"); | 570 "Heap::allocation_sites_list_address()"); |
| 571 Add(ExternalReference::record_object_allocation_function(isolate).address(), | 571 Add(ExternalReference::address_of_uint32_bias().address(), |
| 572 UNCLASSIFIED, | 572 UNCLASSIFIED, |
| 573 62, | 573 62, |
| 574 "HeapProfiler::RecordObjectAllocationFromMasm"); | |
| 575 Add(ExternalReference::address_of_uint32_bias().address(), | |
| 576 UNCLASSIFIED, | |
| 577 63, | |
| 578 "uint32_bias"); | 574 "uint32_bias"); |
| 579 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(), | 575 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(), |
| 580 UNCLASSIFIED, | 576 UNCLASSIFIED, |
| 581 64, | 577 63, |
| 582 "Code::MarkCodeAsExecuted"); | 578 "Code::MarkCodeAsExecuted"); |
| 583 | 579 |
| 584 // Add a small set of deopt entry addresses to encoder without generating the | 580 // Add a small set of deopt entry addresses to encoder without generating the |
| 585 // deopt table code, which isn't possible at deserialization time. | 581 // deopt table code, which isn't possible at deserialization time. |
| 586 HandleScope scope(isolate); | 582 HandleScope scope(isolate); |
| 587 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { | 583 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { |
| 588 Address address = Deoptimizer::GetDeoptimizationEntry( | 584 Address address = Deoptimizer::GetDeoptimizationEntry( |
| 589 isolate, | 585 isolate, |
| 590 entry, | 586 entry, |
| 591 Deoptimizer::LAZY, | 587 Deoptimizer::LAZY, |
| (...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1875 | 1871 |
| 1876 bool SnapshotByteSource::AtEOF() { | 1872 bool SnapshotByteSource::AtEOF() { |
| 1877 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; | 1873 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; |
| 1878 for (int x = position_; x < length_; x++) { | 1874 for (int x = position_; x < length_; x++) { |
| 1879 if (data_[x] != SerializerDeserializer::nop()) return false; | 1875 if (data_[x] != SerializerDeserializer::nop()) return false; |
| 1880 } | 1876 } |
| 1881 return true; | 1877 return true; |
| 1882 } | 1878 } |
| 1883 | 1879 |
| 1884 } } // namespace v8::internal | 1880 } } // namespace v8::internal |
| OLD | NEW |