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

Side by Side Diff: src/serialize.cc

Issue 10068006: MIPS: NaNs in the snapshot should be quiet according (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 8 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
« src/mips/assembler-mips.cc ('K') | « src/mips/assembler-mips.cc ('k') | no next file » | 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 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 1437
1438 // Mark this object as already serialized. 1438 // Mark this object as already serialized.
1439 bool start_new_page; 1439 bool start_new_page;
1440 int offset = serializer_->Allocate(space, size, &start_new_page); 1440 int offset = serializer_->Allocate(space, size, &start_new_page);
1441 serializer_->address_mapper()->AddMapping(object_, offset); 1441 serializer_->address_mapper()->AddMapping(object_, offset);
1442 if (start_new_page) { 1442 if (start_new_page) {
1443 sink_->Put(kNewPage, "NewPage"); 1443 sink_->Put(kNewPage, "NewPage");
1444 sink_->PutSection(space, "NewPageSpace"); 1444 sink_->PutSection(space, "NewPageSpace");
1445 } 1445 }
1446 1446
1447 if (object_->IsNaN()) Assembler::QuietNaN(object_);
1448
1447 // Serialize the map (first word of the object). 1449 // Serialize the map (first word of the object).
1448 serializer_->SerializeObject(object_->map(), kPlain, kStartOfObject); 1450 serializer_->SerializeObject(object_->map(), kPlain, kStartOfObject);
1449 1451
1450 // Serialize the rest of the object. 1452 // Serialize the rest of the object.
1451 CHECK_EQ(0, bytes_processed_so_far_); 1453 CHECK_EQ(0, bytes_processed_so_far_);
1452 bytes_processed_so_far_ = kPointerSize; 1454 bytes_processed_so_far_ = kPointerSize;
1453 object_->IterateBody(object_->map()->instance_type(), size, this); 1455 object_->IterateBody(object_->map()->instance_type(), size, this);
1454 OutputRawData(object_->address() + size); 1456 OutputRawData(object_->address() + size);
1455 } 1457 }
1456 1458
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 int Serializer::SpaceAreaSize(int space) { 1701 int Serializer::SpaceAreaSize(int space) {
1700 if (space == CODE_SPACE) { 1702 if (space == CODE_SPACE) {
1701 return isolate_->memory_allocator()->CodePageAreaSize(); 1703 return isolate_->memory_allocator()->CodePageAreaSize();
1702 } else { 1704 } else {
1703 return Page::kPageSize - Page::kObjectStartOffset; 1705 return Page::kPageSize - Page::kObjectStartOffset;
1704 } 1706 }
1705 } 1707 }
1706 1708
1707 1709
1708 } } // namespace v8::internal 1710 } } // namespace v8::internal
OLDNEW
« src/mips/assembler-mips.cc ('K') | « src/mips/assembler-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698