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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 "Heap::OldPointerSpaceAllocationTopAddress"); | 551 "Heap::OldPointerSpaceAllocationTopAddress"); |
552 Add(ExternalReference::old_pointer_space_allocation_limit_address( | 552 Add(ExternalReference::old_pointer_space_allocation_limit_address( |
553 isolate).address(), | 553 isolate).address(), |
554 UNCLASSIFIED, | 554 UNCLASSIFIED, |
555 57, | 555 57, |
556 "Heap::OldPointerSpaceAllocationLimitAddress"); | 556 "Heap::OldPointerSpaceAllocationLimitAddress"); |
557 Add(ExternalReference(Runtime::kAllocateInOldPointerSpace, isolate).address(), | 557 Add(ExternalReference(Runtime::kAllocateInOldPointerSpace, isolate).address(), |
558 UNCLASSIFIED, | 558 UNCLASSIFIED, |
559 58, | 559 58, |
560 "Runtime::AllocateInOldPointerSpace"); | 560 "Runtime::AllocateInOldPointerSpace"); |
| 561 Add(ExternalReference::new_space_high_promotion_mode_active_address(isolate). |
| 562 address(), |
| 563 UNCLASSIFIED, |
| 564 59, |
| 565 "Heap::NewSpaceAllocationLimitAddress"); |
561 | 566 |
562 // Add a small set of deopt entry addresses to encoder without generating the | 567 // Add a small set of deopt entry addresses to encoder without generating the |
563 // deopt table code, which isn't possible at deserialization time. | 568 // deopt table code, which isn't possible at deserialization time. |
564 HandleScope scope(isolate); | 569 HandleScope scope(isolate); |
565 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { | 570 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { |
566 Address address = Deoptimizer::GetDeoptimizationEntry( | 571 Address address = Deoptimizer::GetDeoptimizationEntry( |
567 isolate, | 572 isolate, |
568 entry, | 573 entry, |
569 Deoptimizer::LAZY, | 574 Deoptimizer::LAZY, |
570 Deoptimizer::CALCULATE_ENTRY_ADDRESS); | 575 Deoptimizer::CALCULATE_ENTRY_ADDRESS); |
571 Add(address, LAZY_DEOPTIMIZATION, 59 + entry, "lazy_deopt"); | 576 Add(address, LAZY_DEOPTIMIZATION, 60 + entry, "lazy_deopt"); |
572 } | 577 } |
573 } | 578 } |
574 | 579 |
575 | 580 |
576 ExternalReferenceEncoder::ExternalReferenceEncoder() | 581 ExternalReferenceEncoder::ExternalReferenceEncoder() |
577 : encodings_(Match), | 582 : encodings_(Match), |
578 isolate_(Isolate::Current()) { | 583 isolate_(Isolate::Current()) { |
579 ExternalReferenceTable* external_references = | 584 ExternalReferenceTable* external_references = |
580 ExternalReferenceTable::instance(isolate_); | 585 ExternalReferenceTable::instance(isolate_); |
581 for (int i = 0; i < external_references->size(); ++i) { | 586 for (int i = 0; i < external_references->size(); ++i) { |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1666 | 1671 |
1667 bool SnapshotByteSource::AtEOF() { | 1672 bool SnapshotByteSource::AtEOF() { |
1668 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; | 1673 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; |
1669 for (int x = position_; x < length_; x++) { | 1674 for (int x = position_; x < length_; x++) { |
1670 if (data_[x] != SerializerDeserializer::nop()) return false; | 1675 if (data_[x] != SerializerDeserializer::nop()) return false; |
1671 } | 1676 } |
1672 return true; | 1677 return true; |
1673 } | 1678 } |
1674 | 1679 |
1675 } } // namespace v8::internal | 1680 } } // namespace v8::internal |
OLD | NEW |