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

Side by Side Diff: src/serialize.cc

Issue 12314155: Allow direct allocation in old pointer space. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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
« no previous file with comments | « src/runtime.cc ('k') | src/spaces.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 53, 537 53,
538 "Heap::NewSpaceAllocationTopAddress"); 538 "Heap::NewSpaceAllocationTopAddress");
539 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(), 539 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(),
540 UNCLASSIFIED, 540 UNCLASSIFIED,
541 54, 541 54,
542 "Heap::NewSpaceAllocationLimitAddress"); 542 "Heap::NewSpaceAllocationLimitAddress");
543 Add(ExternalReference(Runtime::kAllocateInNewSpace, isolate).address(), 543 Add(ExternalReference(Runtime::kAllocateInNewSpace, isolate).address(),
544 UNCLASSIFIED, 544 UNCLASSIFIED,
545 55, 545 55,
546 "Runtime::AllocateInNewSpace"); 546 "Runtime::AllocateInNewSpace");
547 Add(ExternalReference::old_pointer_space_allocation_top_address(
548 isolate).address(),
549 UNCLASSIFIED,
550 56,
551 "Heap::OldPointerSpaceAllocationTopAddress");
552 Add(ExternalReference::old_pointer_space_allocation_limit_address(
553 isolate).address(),
554 UNCLASSIFIED,
555 57,
556 "Heap::OldPointerSpaceAllocationLimitAddress");
557 Add(ExternalReference(Runtime::kAllocateInOldPointerSpace, isolate).address(),
558 UNCLASSIFIED,
559 58,
560 "Runtime::AllocateInOldPointerSpace");
547 561
548 // Add a small set of deopt entry addresses to encoder without generating the 562 // Add a small set of deopt entry addresses to encoder without generating the
549 // deopt table code, which isn't possible at deserialization time. 563 // deopt table code, which isn't possible at deserialization time.
550 HandleScope scope(isolate); 564 HandleScope scope(isolate);
551 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { 565 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) {
552 Address address = Deoptimizer::GetDeoptimizationEntry( 566 Address address = Deoptimizer::GetDeoptimizationEntry(
553 isolate, 567 isolate,
554 entry, 568 entry,
555 Deoptimizer::LAZY, 569 Deoptimizer::LAZY,
556 Deoptimizer::CALCULATE_ENTRY_ADDRESS); 570 Deoptimizer::CALCULATE_ENTRY_ADDRESS);
557 Add(address, LAZY_DEOPTIMIZATION, 56 + entry, "lazy_deopt"); 571 Add(address, LAZY_DEOPTIMIZATION, 59 + entry, "lazy_deopt");
558 } 572 }
559 } 573 }
560 574
561 575
562 ExternalReferenceEncoder::ExternalReferenceEncoder() 576 ExternalReferenceEncoder::ExternalReferenceEncoder()
563 : encodings_(Match), 577 : encodings_(Match),
564 isolate_(Isolate::Current()) { 578 isolate_(Isolate::Current()) {
565 ExternalReferenceTable* external_references = 579 ExternalReferenceTable* external_references =
566 ExternalReferenceTable::instance(isolate_); 580 ExternalReferenceTable::instance(isolate_);
567 for (int i = 0; i < external_references->size(); ++i) { 581 for (int i = 0; i < external_references->size(); ++i) {
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1652 1666
1653 bool SnapshotByteSource::AtEOF() { 1667 bool SnapshotByteSource::AtEOF() {
1654 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1668 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1655 for (int x = position_; x < length_; x++) { 1669 for (int x = position_; x < length_; x++) {
1656 if (data_[x] != SerializerDeserializer::nop()) return false; 1670 if (data_[x] != SerializerDeserializer::nop()) return false;
1657 } 1671 }
1658 return true; 1672 return true;
1659 } 1673 }
1660 1674
1661 } } // namespace v8::internal 1675 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698