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

Side by Side Diff: src/serialize.cc

Issue 12314152: Miscellaneous profile-driven Isolate plumbing. (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/scopes.cc ('k') | src/x64/deoptimizer-x64.cc » ('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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 547
548 // 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
549 // deopt table code, which isn't possible at deserialization time. 549 // deopt table code, which isn't possible at deserialization time.
550 HandleScope scope(Isolate::Current()); 550 HandleScope scope(isolate);
551 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { 551 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) {
552 Address address = Deoptimizer::GetDeoptimizationEntry( 552 Address address = Deoptimizer::GetDeoptimizationEntry(
553 isolate,
553 entry, 554 entry,
554 Deoptimizer::LAZY, 555 Deoptimizer::LAZY,
555 Deoptimizer::CALCULATE_ENTRY_ADDRESS); 556 Deoptimizer::CALCULATE_ENTRY_ADDRESS);
556 Add(address, LAZY_DEOPTIMIZATION, 56 + entry, "lazy_deopt"); 557 Add(address, LAZY_DEOPTIMIZATION, 56 + entry, "lazy_deopt");
557 } 558 }
558 } 559 }
559 560
560 561
561 ExternalReferenceEncoder::ExternalReferenceEncoder() 562 ExternalReferenceEncoder::ExternalReferenceEncoder()
562 : encodings_(Match), 563 : encodings_(Match),
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 1652
1652 bool SnapshotByteSource::AtEOF() { 1653 bool SnapshotByteSource::AtEOF() {
1653 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1654 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1654 for (int x = position_; x < length_; x++) { 1655 for (int x = position_; x < length_; x++) {
1655 if (data_[x] != SerializerDeserializer::nop()) return false; 1656 if (data_[x] != SerializerDeserializer::nop()) return false;
1656 } 1657 }
1657 return true; 1658 return true;
1658 } 1659 }
1659 1660
1660 } } // namespace v8::internal 1661 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/scopes.cc ('k') | src/x64/deoptimizer-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698