| 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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 63, | 582 63, |
| 583 "Heap::allocation_sites_list_address()"); | 583 "Heap::allocation_sites_list_address()"); |
| 584 Add(ExternalReference::record_object_allocation_function(isolate).address(), | 584 Add(ExternalReference::record_object_allocation_function(isolate).address(), |
| 585 UNCLASSIFIED, | 585 UNCLASSIFIED, |
| 586 64, | 586 64, |
| 587 "HeapProfiler::RecordObjectAllocationFromMasm"); | 587 "HeapProfiler::RecordObjectAllocationFromMasm"); |
| 588 Add(ExternalReference::address_of_uint32_bias().address(), | 588 Add(ExternalReference::address_of_uint32_bias().address(), |
| 589 UNCLASSIFIED, | 589 UNCLASSIFIED, |
| 590 65, | 590 65, |
| 591 "uint32_bias"); | 591 "uint32_bias"); |
| 592 Add(ExternalReference::get_mark_code_as_executed_function(isolate).address(), |
| 593 UNCLASSIFIED, |
| 594 66, |
| 595 "Code::MarkCodeAsExecuted"); |
| 592 | 596 |
| 593 // Add a small set of deopt entry addresses to encoder without generating the | 597 // Add a small set of deopt entry addresses to encoder without generating the |
| 594 // deopt table code, which isn't possible at deserialization time. | 598 // deopt table code, which isn't possible at deserialization time. |
| 595 HandleScope scope(isolate); | 599 HandleScope scope(isolate); |
| 596 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { | 600 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { |
| 597 Address address = Deoptimizer::GetDeoptimizationEntry( | 601 Address address = Deoptimizer::GetDeoptimizationEntry( |
| 598 isolate, | 602 isolate, |
| 599 entry, | 603 entry, |
| 600 Deoptimizer::LAZY, | 604 Deoptimizer::LAZY, |
| 601 Deoptimizer::CALCULATE_ENTRY_ADDRESS); | 605 Deoptimizer::CALCULATE_ENTRY_ADDRESS); |
| (...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1872 | 1876 |
| 1873 bool SnapshotByteSource::AtEOF() { | 1877 bool SnapshotByteSource::AtEOF() { |
| 1874 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; | 1878 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; |
| 1875 for (int x = position_; x < length_; x++) { | 1879 for (int x = position_; x < length_; x++) { |
| 1876 if (data_[x] != SerializerDeserializer::nop()) return false; | 1880 if (data_[x] != SerializerDeserializer::nop()) return false; |
| 1877 } | 1881 } |
| 1878 return true; | 1882 return true; |
| 1879 } | 1883 } |
| 1880 | 1884 |
| 1881 } } // namespace v8::internal | 1885 } } // namespace v8::internal |
| OLD | NEW |