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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1489 bool IterationHasObservableEffects(); | 1489 bool IterationHasObservableEffects(); |
1490 | 1490 |
1491 DECLARE_VERIFIER(Object) | 1491 DECLARE_VERIFIER(Object) |
1492 #ifdef VERIFY_HEAP | 1492 #ifdef VERIFY_HEAP |
1493 // Verify a pointer is a valid object pointer. | 1493 // Verify a pointer is a valid object pointer. |
1494 static void VerifyPointer(Object* p); | 1494 static void VerifyPointer(Object* p); |
1495 #endif | 1495 #endif |
1496 | 1496 |
1497 inline void VerifyApiCallResultType(); | 1497 inline void VerifyApiCallResultType(); |
1498 | 1498 |
1499 // ES6 19.1.3.6 Object.prototype.toString | |
1500 MUST_USE_RESULT static MaybeHandle<String> ObjectProtoToString( | |
1501 Isolate* isolate, Handle<Object> object); | |
1502 | |
1503 // Prints this object without details. | 1499 // Prints this object without details. |
1504 void ShortPrint(FILE* out = stdout); | 1500 void ShortPrint(FILE* out = stdout); |
1505 | 1501 |
1506 // Prints this object without details to a message accumulator. | 1502 // Prints this object without details to a message accumulator. |
1507 void ShortPrint(StringStream* accumulator); | 1503 void ShortPrint(StringStream* accumulator); |
1508 | 1504 |
1509 void ShortPrint(std::ostream& os); // NOLINT | 1505 void ShortPrint(std::ostream& os); // NOLINT |
1510 | 1506 |
1511 DECLARE_CAST(Object) | 1507 DECLARE_CAST(Object) |
1512 | 1508 |
(...skipping 10195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11708 } | 11704 } |
11709 }; | 11705 }; |
11710 | 11706 |
11711 | 11707 |
11712 } // NOLINT, false-positive due to second-order macros. | 11708 } // NOLINT, false-positive due to second-order macros. |
11713 } // NOLINT, false-positive due to second-order macros. | 11709 } // NOLINT, false-positive due to second-order macros. |
11714 | 11710 |
11715 #include "src/objects/object-macros-undef.h" | 11711 #include "src/objects/object-macros-undef.h" |
11716 | 11712 |
11717 #endif // V8_OBJECTS_H_ | 11713 #endif // V8_OBJECTS_H_ |
OLD | NEW |