Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/serialize.cc

Issue 16099004: Added old data space allocation infrastructure for pretenuring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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::old_data_space_allocation_top_address(
562 isolate).address(),
563 UNCLASSIFIED,
564 59,
565 "Heap::OldDataSpaceAllocationTopAddress");
566 Add(ExternalReference::old_data_space_allocation_limit_address(
567 isolate).address(),
568 UNCLASSIFIED,
569 60,
570 "Heap::OldDataSpaceAllocationLimitAddress");
571 Add(ExternalReference(Runtime::kAllocateInOldDataSpace, isolate).address(),
572 UNCLASSIFIED,
573 61,
574 "Runtime::AllocateInOldDataSpace");
561 Add(ExternalReference::new_space_high_promotion_mode_active_address(isolate). 575 Add(ExternalReference::new_space_high_promotion_mode_active_address(isolate).
562 address(), 576 address(),
563 UNCLASSIFIED, 577 UNCLASSIFIED,
564 59, 578 62,
565 "Heap::NewSpaceAllocationLimitAddress"); 579 "Heap::NewSpaceAllocationLimitAddress");
566 580
567 // Add a small set of deopt entry addresses to encoder without generating the 581 // Add a small set of deopt entry addresses to encoder without generating the
568 // deopt table code, which isn't possible at deserialization time. 582 // deopt table code, which isn't possible at deserialization time.
569 HandleScope scope(isolate); 583 HandleScope scope(isolate);
570 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { 584 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) {
571 Address address = Deoptimizer::GetDeoptimizationEntry( 585 Address address = Deoptimizer::GetDeoptimizationEntry(
572 isolate, 586 isolate,
573 entry, 587 entry,
574 Deoptimizer::LAZY, 588 Deoptimizer::LAZY,
575 Deoptimizer::CALCULATE_ENTRY_ADDRESS); 589 Deoptimizer::CALCULATE_ENTRY_ADDRESS);
576 Add(address, LAZY_DEOPTIMIZATION, 60 + entry, "lazy_deopt"); 590 Add(address, LAZY_DEOPTIMIZATION, 63 + entry, "lazy_deopt");
577 } 591 }
578 } 592 }
579 593
580 594
581 ExternalReferenceEncoder::ExternalReferenceEncoder() 595 ExternalReferenceEncoder::ExternalReferenceEncoder()
582 : encodings_(Match), 596 : encodings_(Match),
583 isolate_(Isolate::Current()) { 597 isolate_(Isolate::Current()) {
584 ExternalReferenceTable* external_references = 598 ExternalReferenceTable* external_references =
585 ExternalReferenceTable::instance(isolate_); 599 ExternalReferenceTable::instance(isolate_);
586 for (int i = 0; i < external_references->size(); ++i) { 600 for (int i = 0; i < external_references->size(); ++i) {
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1671 1685
1672 bool SnapshotByteSource::AtEOF() { 1686 bool SnapshotByteSource::AtEOF() {
1673 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1687 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1674 for (int x = position_; x < length_; x++) { 1688 for (int x = position_; x < length_; x++) {
1675 if (data_[x] != SerializerDeserializer::nop()) return false; 1689 if (data_[x] != SerializerDeserializer::nop()) return false;
1676 } 1690 }
1677 return true; 1691 return true;
1678 } 1692 }
1679 1693
1680 } } // namespace v8::internal 1694 } } // namespace v8::internal
OLDNEW
« src/runtime.cc ('K') | « src/runtime.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698