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

Side by Side Diff: src/serialize.cc

Issue 199056: Compile fixes for ARM and miscellaneous spolling. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 3 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/serialize.h ('k') | test/cctest/test-assembler-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const int kPageShift = kOffsetShift + kOffsetBits; 63 const int kPageShift = kOffsetShift + kOffsetBits;
64 const int kPageBits = 32 - (kOffsetBits + kSpaceBits + kHeapObjectTagSize); 64 const int kPageBits = 32 - (kOffsetBits + kSpaceBits + kHeapObjectTagSize);
65 const int kPageMask = (1 << kPageBits) - 1; 65 const int kPageMask = (1 << kPageBits) - 1;
66 66
67 const int kPageAndOffsetShift = kOffsetShift; 67 const int kPageAndOffsetShift = kOffsetShift;
68 const int kPageAndOffsetBits = kPageBits + kOffsetBits; 68 const int kPageAndOffsetBits = kPageBits + kOffsetBits;
69 const int kPageAndOffsetMask = (1 << kPageAndOffsetBits) - 1; 69 const int kPageAndOffsetMask = (1 << kPageAndOffsetBits) - 1;
70 70
71 // These values are special allocation space tags used for 71 // These values are special allocation space tags used for
72 // serialization. 72 // serialization.
73 // Mar the pages executable on platforms that support it. 73 // Mark the pages executable on platforms that support it.
74 const int kLargeCode = LAST_SPACE + 1; 74 const int kLargeCode = LAST_SPACE + 1;
75 // Allocate extra remembered-set bits. 75 // Allocate extra remembered-set bits.
76 const int kLargeFixedArray = LAST_SPACE + 2; 76 const int kLargeFixedArray = LAST_SPACE + 2;
77 77
78 78
79 static inline AllocationSpace GetSpace(Address addr) { 79 static inline AllocationSpace GetSpace(Address addr) {
80 const intptr_t encoded = reinterpret_cast<intptr_t>(addr); 80 const intptr_t encoded = reinterpret_cast<intptr_t>(addr);
81 int space_number = (static_cast<int>(encoded >> kSpaceShift) & kSpaceMask); 81 int space_number = (static_cast<int>(encoded >> kSpaceShift) & kSpaceMask);
82 if (space_number > LAST_SPACE) space_number = LO_SPACE; 82 if (space_number > LAST_SPACE) space_number = LO_SPACE;
83 return static_cast<AllocationSpace>(space_number); 83 return static_cast<AllocationSpace>(space_number);
(...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1694 ASSERT(index < large_objects_.length()); 1694 ASSERT(index < large_objects_.length());
1695 } 1695 }
1696 return large_objects_[index]; // s.page_offset() is ignored. 1696 return large_objects_[index]; // s.page_offset() is ignored.
1697 } 1697 }
1698 UNREACHABLE(); 1698 UNREACHABLE();
1699 return NULL; 1699 return NULL;
1700 } 1700 }
1701 1701
1702 1702
1703 } } // namespace v8::internal 1703 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/serialize.h ('k') | test/cctest/test-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698