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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 50, | 525 50, |
526 "pending_message_script"); | 526 "pending_message_script"); |
527 Add(ExternalReference::get_make_code_young_function(isolate).address(), | 527 Add(ExternalReference::get_make_code_young_function(isolate).address(), |
528 UNCLASSIFIED, | 528 UNCLASSIFIED, |
529 51, | 529 51, |
530 "Code::MakeCodeYoung"); | 530 "Code::MakeCodeYoung"); |
531 Add(ExternalReference::cpu_features().address(), | 531 Add(ExternalReference::cpu_features().address(), |
532 UNCLASSIFIED, | 532 UNCLASSIFIED, |
533 52, | 533 52, |
534 "cpu_features"); | 534 "cpu_features"); |
| 535 Add(ExternalReference::new_space_allocation_top_address(isolate).address(), |
| 536 UNCLASSIFIED, |
| 537 53, |
| 538 "Heap::NewSpaceAllocationTopAddress"); |
| 539 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(), |
| 540 UNCLASSIFIED, |
| 541 54, |
| 542 "Heap::NewSpaceAllocationLimitAddress"); |
| 543 Add(ExternalReference(Runtime::kAllocateInNewSpace, isolate).address(), |
| 544 UNCLASSIFIED, |
| 545 55, |
| 546 "Runtime::AllocateInNewSpace"); |
535 | 547 |
536 // Add a small set of deopt entry addresses to encoder without generating the | 548 // Add a small set of deopt entry addresses to encoder without generating the |
537 // deopt table code, which isn't possible at deserialization time. | 549 // deopt table code, which isn't possible at deserialization time. |
538 HandleScope scope(Isolate::Current()); | 550 HandleScope scope(Isolate::Current()); |
539 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { | 551 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { |
540 Address address = Deoptimizer::GetDeoptimizationEntry( | 552 Address address = Deoptimizer::GetDeoptimizationEntry( |
541 entry, | 553 entry, |
542 Deoptimizer::LAZY, | 554 Deoptimizer::LAZY, |
543 Deoptimizer::CALCULATE_ENTRY_ADDRESS); | 555 Deoptimizer::CALCULATE_ENTRY_ADDRESS); |
544 Add(address, LAZY_DEOPTIMIZATION, 53 + entry, "lazy_deopt"); | 556 Add(address, LAZY_DEOPTIMIZATION, 56 + entry, "lazy_deopt"); |
545 } | 557 } |
546 } | 558 } |
547 | 559 |
548 | 560 |
549 ExternalReferenceEncoder::ExternalReferenceEncoder() | 561 ExternalReferenceEncoder::ExternalReferenceEncoder() |
550 : encodings_(Match), | 562 : encodings_(Match), |
551 isolate_(Isolate::Current()) { | 563 isolate_(Isolate::Current()) { |
552 ExternalReferenceTable* external_references = | 564 ExternalReferenceTable* external_references = |
553 ExternalReferenceTable::instance(isolate_); | 565 ExternalReferenceTable::instance(isolate_); |
554 for (int i = 0; i < external_references->size(); ++i) { | 566 for (int i = 0; i < external_references->size(); ++i) { |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1639 | 1651 |
1640 bool SnapshotByteSource::AtEOF() { | 1652 bool SnapshotByteSource::AtEOF() { |
1641 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; | 1653 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; |
1642 for (int x = position_; x < length_; x++) { | 1654 for (int x = position_; x < length_; x++) { |
1643 if (data_[x] != SerializerDeserializer::nop()) return false; | 1655 if (data_[x] != SerializerDeserializer::nop()) return false; |
1644 } | 1656 } |
1645 return true; | 1657 return true; |
1646 } | 1658 } |
1647 | 1659 |
1648 } } // namespace v8::internal | 1660 } } // namespace v8::internal |
OLD | NEW |