OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |