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

Side by Side Diff: src/objects.h

Issue 10383088: Declare more functions returing a MaybeObject* with MUST_USE_RESULT. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/elements.cc ('k') | src/objects.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 6121 matching lines...) Expand 10 before | Expand all | Expand 10 after
6132 DECL_ACCESSORS(sec, Object) 6132 DECL_ACCESSORS(sec, Object)
6133 // [cache stamp]: sample of the date cache stamp at the 6133 // [cache stamp]: sample of the date cache stamp at the
6134 // moment when local fields were cached. 6134 // moment when local fields were cached.
6135 DECL_ACCESSORS(cache_stamp, Object) 6135 DECL_ACCESSORS(cache_stamp, Object)
6136 6136
6137 // Casting. 6137 // Casting.
6138 static inline JSDate* cast(Object* obj); 6138 static inline JSDate* cast(Object* obj);
6139 6139
6140 // Returns the date field with the specified index. 6140 // Returns the date field with the specified index.
6141 // See FieldIndex for the list of date fields. 6141 // See FieldIndex for the list of date fields.
6142 static MaybeObject* GetField(Object* date, Smi* index); 6142 static Object* GetField(Object* date, Smi* index);
6143 6143
6144 void SetValue(Object* value, bool is_value_nan); 6144 void SetValue(Object* value, bool is_value_nan);
6145 6145
6146 6146
6147 // Dispatched behavior. 6147 // Dispatched behavior.
6148 #ifdef OBJECT_PRINT 6148 #ifdef OBJECT_PRINT
6149 inline void JSDatePrint() { 6149 inline void JSDatePrint() {
6150 JSDatePrint(stdout); 6150 JSDatePrint(stdout);
6151 } 6151 }
6152 void JSDatePrint(FILE* out); 6152 void JSDatePrint(FILE* out);
(...skipping 2507 matching lines...) Expand 10 before | Expand all | Expand 10 after
8660 } else { 8660 } else {
8661 value &= ~(1 << bit_position); 8661 value &= ~(1 << bit_position);
8662 } 8662 }
8663 return value; 8663 return value;
8664 } 8664 }
8665 }; 8665 };
8666 8666
8667 } } // namespace v8::internal 8667 } } // namespace v8::internal
8668 8668
8669 #endif // V8_OBJECTS_H_ 8669 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698