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

Side by Side Diff: src/objects-inl.h

Issue 155211: Create a new paged heap space for global property cells. The new... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 5 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/objects.h ('k') | src/serialize.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 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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 return Construct(OUT_OF_MEMORY_EXCEPTION); 761 return Construct(OUT_OF_MEMORY_EXCEPTION);
762 } 762 }
763 763
764 764
765 int Failure::value() const { 765 int Failure::value() const {
766 return static_cast<int>(reinterpret_cast<intptr_t>(this) >> kFailureTagSize); 766 return static_cast<int>(reinterpret_cast<intptr_t>(this) >> kFailureTagSize);
767 } 767 }
768 768
769 769
770 Failure* Failure::RetryAfterGC(int requested_bytes) { 770 Failure* Failure::RetryAfterGC(int requested_bytes) {
771 // Assert that the space encoding fits in the three bytes allotted for it.
772 ASSERT((LAST_SPACE & ~kSpaceTagMask) == 0);
771 int requested = requested_bytes >> kObjectAlignmentBits; 773 int requested = requested_bytes >> kObjectAlignmentBits;
772 int value = (requested << kSpaceTagSize) | NEW_SPACE; 774 int value = (requested << kSpaceTagSize) | NEW_SPACE;
773 ASSERT(value >> kSpaceTagSize == requested); 775 ASSERT(value >> kSpaceTagSize == requested);
774 ASSERT(Smi::IsValid(value)); 776 ASSERT(Smi::IsValid(value));
775 ASSERT(value == ((value << kFailureTypeTagSize) >> kFailureTypeTagSize)); 777 ASSERT(value == ((value << kFailureTypeTagSize) >> kFailureTypeTagSize));
776 ASSERT(Smi::IsValid(value << kFailureTypeTagSize)); 778 ASSERT(Smi::IsValid(value << kFailureTypeTagSize));
777 return Construct(RETRY_AFTER_GC, value); 779 return Construct(RETRY_AFTER_GC, value);
778 } 780 }
779 781
780 782
(...skipping 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after
2696 #undef WRITE_INT_FIELD 2698 #undef WRITE_INT_FIELD
2697 #undef READ_SHORT_FIELD 2699 #undef READ_SHORT_FIELD
2698 #undef WRITE_SHORT_FIELD 2700 #undef WRITE_SHORT_FIELD
2699 #undef READ_BYTE_FIELD 2701 #undef READ_BYTE_FIELD
2700 #undef WRITE_BYTE_FIELD 2702 #undef WRITE_BYTE_FIELD
2701 2703
2702 2704
2703 } } // namespace v8::internal 2705 } } // namespace v8::internal
2704 2706
2705 #endif // V8_OBJECTS_INL_H_ 2707 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698