OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2464 // Gets the number of currently used elements. | 2464 // Gets the number of currently used elements. |
2465 int GetFastElementsUsage(); | 2465 int GetFastElementsUsage(); |
2466 | 2466 |
2467 // Deletes an existing named property in a normalized object. | 2467 // Deletes an existing named property in a normalized object. |
2468 static void DeleteNormalizedProperty(Handle<JSObject> object, | 2468 static void DeleteNormalizedProperty(Handle<JSObject> object, |
2469 Handle<Name> name, int entry); | 2469 Handle<Name> name, int entry); |
2470 | 2470 |
2471 static bool AllCanRead(LookupIterator* it); | 2471 static bool AllCanRead(LookupIterator* it); |
2472 static bool AllCanWrite(LookupIterator* it); | 2472 static bool AllCanWrite(LookupIterator* it); |
2473 | 2473 |
| 2474 // ES6 19.1.3.6 Object.prototype.toString |
| 2475 MUST_USE_RESULT static MaybeHandle<String> ObjectProtoToString( |
| 2476 Isolate* isolate, Handle<Object> object); |
| 2477 |
2474 private: | 2478 private: |
2475 friend class JSReceiver; | 2479 friend class JSReceiver; |
2476 friend class Object; | 2480 friend class Object; |
2477 | 2481 |
2478 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map); | 2482 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map); |
2479 static void MigrateFastToSlow(Handle<JSObject> object, | 2483 static void MigrateFastToSlow(Handle<JSObject> object, |
2480 Handle<Map> new_map, | 2484 Handle<Map> new_map, |
2481 int expected_additional_properties); | 2485 int expected_additional_properties); |
2482 | 2486 |
2483 // Used from Object::GetProperty(). | 2487 // Used from Object::GetProperty(). |
(...skipping 8211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10695 } | 10699 } |
10696 return value; | 10700 return value; |
10697 } | 10701 } |
10698 }; | 10702 }; |
10699 | 10703 |
10700 | 10704 |
10701 } // NOLINT, false-positive due to second-order macros. | 10705 } // NOLINT, false-positive due to second-order macros. |
10702 } // NOLINT, false-positive due to second-order macros. | 10706 } // NOLINT, false-positive due to second-order macros. |
10703 | 10707 |
10704 #endif // V8_OBJECTS_H_ | 10708 #endif // V8_OBJECTS_H_ |
OLD | NEW |