| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 7557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7568 | 7568 |
| 7569 DECLARE_CAST(JSDate) | 7569 DECLARE_CAST(JSDate) |
| 7570 | 7570 |
| 7571 // Returns the time value (UTC) identifying the current time. | 7571 // Returns the time value (UTC) identifying the current time. |
| 7572 static double CurrentTimeValue(Isolate* isolate); | 7572 static double CurrentTimeValue(Isolate* isolate); |
| 7573 | 7573 |
| 7574 // Returns the date field with the specified index. | 7574 // Returns the date field with the specified index. |
| 7575 // See FieldIndex for the list of date fields. | 7575 // See FieldIndex for the list of date fields. |
| 7576 static Object* GetField(Object* date, Smi* index); | 7576 static Object* GetField(Object* date, Smi* index); |
| 7577 | 7577 |
| 7578 static Handle<Object> SetValue(Handle<JSDate> date, double v); |
| 7579 |
| 7578 void SetValue(Object* value, bool is_value_nan); | 7580 void SetValue(Object* value, bool is_value_nan); |
| 7579 | 7581 |
| 7580 // ES6 section 20.3.4.45 Date.prototype [ @@toPrimitive ] | 7582 // ES6 section 20.3.4.45 Date.prototype [ @@toPrimitive ] |
| 7581 static MUST_USE_RESULT MaybeHandle<Object> ToPrimitive( | 7583 static MUST_USE_RESULT MaybeHandle<Object> ToPrimitive( |
| 7582 Handle<JSReceiver> receiver, Handle<Object> hint); | 7584 Handle<JSReceiver> receiver, Handle<Object> hint); |
| 7583 | 7585 |
| 7584 // Dispatched behavior. | 7586 // Dispatched behavior. |
| 7585 DECLARE_PRINTER(JSDate) | 7587 DECLARE_PRINTER(JSDate) |
| 7586 DECLARE_VERIFIER(JSDate) | 7588 DECLARE_VERIFIER(JSDate) |
| 7587 | 7589 |
| (...skipping 3149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10737 } | 10739 } |
| 10738 return value; | 10740 return value; |
| 10739 } | 10741 } |
| 10740 }; | 10742 }; |
| 10741 | 10743 |
| 10742 | 10744 |
| 10743 } // NOLINT, false-positive due to second-order macros. | 10745 } // NOLINT, false-positive due to second-order macros. |
| 10744 } // NOLINT, false-positive due to second-order macros. | 10746 } // NOLINT, false-positive due to second-order macros. |
| 10745 | 10747 |
| 10746 #endif // V8_OBJECTS_H_ | 10748 #endif // V8_OBJECTS_H_ |
| OLD | NEW |