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

Side by Side Diff: src/objects.h

Issue 113023: X64: Made hash computation in serializer accept 64-bit pointers. (Closed)
Patch Set: Created 11 years, 7 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
« no previous file with comments | « src/api.cc ('k') | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')
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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 // The this pointer has the following format: [31 bit signed int] 0 775 // The this pointer has the following format: [31 bit signed int] 0
776 // Smi stands for small integer. 776 // Smi stands for small integer.
777 class Smi: public Object { 777 class Smi: public Object {
778 public: 778 public:
779 // Returns the integer value. 779 // Returns the integer value.
780 inline int value(); 780 inline int value();
781 781
782 // Convert a value to a Smi object. 782 // Convert a value to a Smi object.
783 static inline Smi* FromInt(int value); 783 static inline Smi* FromInt(int value);
784 784
785 static inline Smi* FromIntptr(intptr_t value);
786
785 // Returns whether value can be represented in a Smi. 787 // Returns whether value can be represented in a Smi.
786 static inline bool IsValid(int value); 788 static inline bool IsValid(int value);
787 789
790 static inline bool IsPtrValid(intptr_t);
William Hesse 2009/05/06 07:42:37 Perhaps this should be IsIntptrValid, and we may o
Lasse Reichstein 2009/05/12 08:16:38 Done.
791
788 // Casting. 792 // Casting.
789 static inline Smi* cast(Object* object); 793 static inline Smi* cast(Object* object);
790 794
791 // Dispatched behavior. 795 // Dispatched behavior.
792 void SmiPrint(); 796 void SmiPrint();
793 void SmiPrint(StringStream* accumulator); 797 void SmiPrint(StringStream* accumulator);
794 #ifdef DEBUG 798 #ifdef DEBUG
795 void SmiVerify(); 799 void SmiVerify();
796 #endif 800 #endif
797 801
(...skipping 3570 matching lines...) Expand 10 before | Expand all | Expand 10 after
4368 } else { 4372 } else {
4369 value &= ~(1 << bit_position); 4373 value &= ~(1 << bit_position);
4370 } 4374 }
4371 return value; 4375 return value;
4372 } 4376 }
4373 }; 4377 };
4374 4378
4375 } } // namespace v8::internal 4379 } } // namespace v8::internal
4376 4380
4377 #endif // V8_OBJECTS_H_ 4381 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/objects-inl.h » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698