| 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 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1516   // implementation of a JSObject's elements. | 1516   // implementation of a JSObject's elements. | 
| 1517   inline bool HasValidElements(); | 1517   inline bool HasValidElements(); | 
| 1518 | 1518 | 
| 1519   inline bool HasSpecificClassOf(String* name); | 1519   inline bool HasSpecificClassOf(String* name); | 
| 1520 | 1520 | 
| 1521   MUST_USE_RESULT MaybeObject* ToObject(Isolate* isolate);  // ECMA-262 9.9. | 1521   MUST_USE_RESULT MaybeObject* ToObject(Isolate* isolate);  // ECMA-262 9.9. | 
| 1522   bool BooleanValue();                                      // ECMA-262 9.2. | 1522   bool BooleanValue();                                      // ECMA-262 9.2. | 
| 1523 | 1523 | 
| 1524   // Convert to a JSObject if needed. | 1524   // Convert to a JSObject if needed. | 
| 1525   // native_context is used when creating wrapper object. | 1525   // native_context is used when creating wrapper object. | 
| 1526   MUST_USE_RESULT MaybeObject* ToObject(Context* native_context); | 1526   static inline Handle<JSReceiver> ToObject(Isolate* isolate, | 
|  | 1527                                             Handle<Object> object); | 
|  | 1528   static Handle<JSReceiver> ToObject(Isolate* isolate, | 
|  | 1529                                      Handle<Object> object, | 
|  | 1530                                      Handle<Context> context); | 
| 1527 | 1531 | 
| 1528   // Converts this to a Smi if possible. | 1532   // Converts this to a Smi if possible. | 
| 1529   // Failure is returned otherwise. | 1533   // Failure is returned otherwise. | 
| 1530   static MUST_USE_RESULT inline Handle<Object> ToSmi(Isolate* isolate, | 1534   static MUST_USE_RESULT inline Handle<Object> ToSmi(Isolate* isolate, | 
| 1531                                                      Handle<Object> object); | 1535                                                      Handle<Object> object); | 
| 1532   MUST_USE_RESULT inline MaybeObject* ToSmi(); | 1536   MUST_USE_RESULT inline MaybeObject* ToSmi(); | 
| 1533 | 1537 | 
| 1534   void Lookup(Name* name, LookupResult* result); | 1538   void Lookup(Name* name, LookupResult* result); | 
| 1535 | 1539 | 
| 1536   MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithReceiver( | 1540   MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithReceiver( | 
| (...skipping 9485 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 11022     } else { | 11026     } else { | 
| 11023       value &= ~(1 << bit_position); | 11027       value &= ~(1 << bit_position); | 
| 11024     } | 11028     } | 
| 11025     return value; | 11029     return value; | 
| 11026   } | 11030   } | 
| 11027 }; | 11031 }; | 
| 11028 | 11032 | 
| 11029 } }  // namespace v8::internal | 11033 } }  // namespace v8::internal | 
| 11030 | 11034 | 
| 11031 #endif  // V8_OBJECTS_H_ | 11035 #endif  // V8_OBJECTS_H_ | 
| OLD | NEW | 
|---|