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

Side by Side Diff: src/serialize.cc

Issue 23480031: Enable preaging of code objects when --optimize-for-size. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Fix a couple of typos Created 7 years, 2 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 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 62, 578 62,
579 "Heap::NewSpaceAllocationLimitAddress"); 579 "Heap::NewSpaceAllocationLimitAddress");
580 Add(ExternalReference::allocation_sites_list_address(isolate).address(), 580 Add(ExternalReference::allocation_sites_list_address(isolate).address(),
581 UNCLASSIFIED, 581 UNCLASSIFIED,
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::get_mark_code_as_executed_function(isolate).address(),
589 UNCLASSIFIED,
590 65,
591 "Code::MarkCodeAsExecuted");
588 592
589 // Add a small set of deopt entry addresses to encoder without generating the 593 // Add a small set of deopt entry addresses to encoder without generating the
590 // deopt table code, which isn't possible at deserialization time. 594 // deopt table code, which isn't possible at deserialization time.
591 HandleScope scope(isolate); 595 HandleScope scope(isolate);
592 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { 596 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) {
593 Address address = Deoptimizer::GetDeoptimizationEntry( 597 Address address = Deoptimizer::GetDeoptimizationEntry(
594 isolate, 598 isolate,
595 entry, 599 entry,
596 Deoptimizer::LAZY, 600 Deoptimizer::LAZY,
597 Deoptimizer::CALCULATE_ENTRY_ADDRESS); 601 Deoptimizer::CALCULATE_ENTRY_ADDRESS);
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1861 1865
1862 bool SnapshotByteSource::AtEOF() { 1866 bool SnapshotByteSource::AtEOF() {
1863 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1867 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1864 for (int x = position_; x < length_; x++) { 1868 for (int x = position_; x < length_; x++) {
1865 if (data_[x] != SerializerDeserializer::nop()) return false; 1869 if (data_[x] != SerializerDeserializer::nop()) return false;
1866 } 1870 }
1867 return true; 1871 return true;
1868 } 1872 }
1869 1873
1870 } } // namespace v8::internal 1874 } } // namespace v8::internal
OLDNEW
« src/ia32/macro-assembler-ia32.h ('K') | « src/objects.cc ('k') | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698