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

Side by Side Diff: src/objects.h

Issue 9427013: Merge r10739 and r10752 into 3.8 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.8
Patch Set: Created 8 years, 10 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/elements.cc ('k') | src/version.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 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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 // Dispatched behavior. 998 // Dispatched behavior.
999 inline void SmiPrint() { 999 inline void SmiPrint() {
1000 SmiPrint(stdout); 1000 SmiPrint(stdout);
1001 } 1001 }
1002 void SmiPrint(FILE* out); 1002 void SmiPrint(FILE* out);
1003 void SmiPrint(StringStream* accumulator); 1003 void SmiPrint(StringStream* accumulator);
1004 #ifdef DEBUG 1004 #ifdef DEBUG
1005 void SmiVerify(); 1005 void SmiVerify();
1006 #endif 1006 #endif
1007 1007
1008 static const int kMinValue = (-1 << (kSmiValueSize - 1)); 1008 static const int kMinValue =
1009 (static_cast<unsigned int>(-1)) << (kSmiValueSize - 1);
1009 static const int kMaxValue = -(kMinValue + 1); 1010 static const int kMaxValue = -(kMinValue + 1);
1010 1011
1011 private: 1012 private:
1012 DISALLOW_IMPLICIT_CONSTRUCTORS(Smi); 1013 DISALLOW_IMPLICIT_CONSTRUCTORS(Smi);
1013 }; 1014 };
1014 1015
1015 1016
1016 // Failure is used for reporting out of memory situations and 1017 // Failure is used for reporting out of memory situations and
1017 // propagating exceptions through the runtime system. Failure objects 1018 // propagating exceptions through the runtime system. Failure objects
1018 // are transient and cannot occur as part of the object graph. 1019 // are transient and cannot occur as part of the object graph.
(...skipping 7172 matching lines...) Expand 10 before | Expand all | Expand 10 after
8191 } else { 8192 } else {
8192 value &= ~(1 << bit_position); 8193 value &= ~(1 << bit_position);
8193 } 8194 }
8194 return value; 8195 return value;
8195 } 8196 }
8196 }; 8197 };
8197 8198
8198 } } // namespace v8::internal 8199 } } // namespace v8::internal
8199 8200
8200 #endif // V8_OBJECTS_H_ 8201 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698