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

Side by Side Diff: src/serialize.cc

Issue 11428137: ARM: Make use of d16-d31 when available. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 7 years, 11 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/platform-linux.cc ('k') | src/v8globals.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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 49, 521 49,
522 "address_of_has_pending_message"); 522 "address_of_has_pending_message");
523 Add(ExternalReference::address_of_pending_message_script(isolate).address(), 523 Add(ExternalReference::address_of_pending_message_script(isolate).address(),
524 UNCLASSIFIED, 524 UNCLASSIFIED,
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(),
532 UNCLASSIFIED,
533 52,
534 "cpu_features");
531 535
532 // Add a small set of deopt entry addresses to encoder without generating the 536 // Add a small set of deopt entry addresses to encoder without generating the
533 // deopt table code, which isn't possible at deserialization time. 537 // deopt table code, which isn't possible at deserialization time.
534 HandleScope scope(Isolate::Current()); 538 HandleScope scope(Isolate::Current());
535 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { 539 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) {
536 Address address = Deoptimizer::GetDeoptimizationEntry( 540 Address address = Deoptimizer::GetDeoptimizationEntry(
537 entry, 541 entry,
538 Deoptimizer::LAZY, 542 Deoptimizer::LAZY,
539 Deoptimizer::CALCULATE_ENTRY_ADDRESS); 543 Deoptimizer::CALCULATE_ENTRY_ADDRESS);
540 Add(address, LAZY_DEOPTIMIZATION, 52 + entry, "lazy_deopt"); 544 Add(address, LAZY_DEOPTIMIZATION, 53 + entry, "lazy_deopt");
541 } 545 }
542 } 546 }
543 547
544 548
545 ExternalReferenceEncoder::ExternalReferenceEncoder() 549 ExternalReferenceEncoder::ExternalReferenceEncoder()
546 : encodings_(Match), 550 : encodings_(Match),
547 isolate_(Isolate::Current()) { 551 isolate_(Isolate::Current()) {
548 ExternalReferenceTable* external_references = 552 ExternalReferenceTable* external_references =
549 ExternalReferenceTable::instance(isolate_); 553 ExternalReferenceTable::instance(isolate_);
550 for (int i = 0; i < external_references->size(); ++i) { 554 for (int i = 0; i < external_references->size(); ++i) {
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 1639
1636 bool SnapshotByteSource::AtEOF() { 1640 bool SnapshotByteSource::AtEOF() {
1637 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1641 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1638 for (int x = position_; x < length_; x++) { 1642 for (int x = position_; x < length_; x++) {
1639 if (data_[x] != SerializerDeserializer::nop()) return false; 1643 if (data_[x] != SerializerDeserializer::nop()) return false;
1640 } 1644 }
1641 return true; 1645 return true;
1642 } 1646 }
1643 1647
1644 } } // namespace v8::internal 1648 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-linux.cc ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698