| 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 8869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8880 | 8880 |
| 8881 int GetLineNumber() const; | 8881 int GetLineNumber() const; |
| 8882 | 8882 |
| 8883 // Returns the offset of the given position within the containing line. | 8883 // Returns the offset of the given position within the containing line. |
| 8884 int GetColumnNumber() const; | 8884 int GetColumnNumber() const; |
| 8885 | 8885 |
| 8886 // Returns the source code line containing the given source | 8886 // Returns the source code line containing the given source |
| 8887 // position, or the empty string if the position is invalid. | 8887 // position, or the empty string if the position is invalid. |
| 8888 Handle<String> GetSourceLine() const; | 8888 Handle<String> GetSourceLine() const; |
| 8889 | 8889 |
| 8890 inline int error_level() const; |
| 8891 inline void set_error_level(int level); |
| 8892 |
| 8890 DECLARE_CAST(JSMessageObject) | 8893 DECLARE_CAST(JSMessageObject) |
| 8891 | 8894 |
| 8892 // Dispatched behavior. | 8895 // Dispatched behavior. |
| 8893 DECLARE_PRINTER(JSMessageObject) | 8896 DECLARE_PRINTER(JSMessageObject) |
| 8894 DECLARE_VERIFIER(JSMessageObject) | 8897 DECLARE_VERIFIER(JSMessageObject) |
| 8895 | 8898 |
| 8896 // Layout description. | 8899 // Layout description. |
| 8897 static const int kTypeOffset = JSObject::kHeaderSize; | 8900 static const int kTypeOffset = JSObject::kHeaderSize; |
| 8898 static const int kArgumentsOffset = kTypeOffset + kPointerSize; | 8901 static const int kArgumentsOffset = kTypeOffset + kPointerSize; |
| 8899 static const int kScriptOffset = kArgumentsOffset + kPointerSize; | 8902 static const int kScriptOffset = kArgumentsOffset + kPointerSize; |
| 8900 static const int kStackFramesOffset = kScriptOffset + kPointerSize; | 8903 static const int kStackFramesOffset = kScriptOffset + kPointerSize; |
| 8901 static const int kStartPositionOffset = kStackFramesOffset + kPointerSize; | 8904 static const int kStartPositionOffset = kStackFramesOffset + kPointerSize; |
| 8902 static const int kEndPositionOffset = kStartPositionOffset + kPointerSize; | 8905 static const int kEndPositionOffset = kStartPositionOffset + kPointerSize; |
| 8903 static const int kSize = kEndPositionOffset + kPointerSize; | 8906 static const int kErrorLevelOffset = kEndPositionOffset + kPointerSize; |
| 8907 static const int kSize = kErrorLevelOffset + kPointerSize; |
| 8904 | 8908 |
| 8905 typedef FixedBodyDescriptor<HeapObject::kMapOffset, | 8909 typedef FixedBodyDescriptor<HeapObject::kMapOffset, |
| 8906 kStackFramesOffset + kPointerSize, | 8910 kStackFramesOffset + kPointerSize, |
| 8907 kSize> BodyDescriptor; | 8911 kSize> BodyDescriptor; |
| 8908 }; | 8912 }; |
| 8909 | 8913 |
| 8910 class JSPromise : public JSObject { | 8914 class JSPromise : public JSObject { |
| 8911 public: | 8915 public: |
| 8912 DECL_INT_ACCESSORS(status) | 8916 DECL_INT_ACCESSORS(status) |
| 8913 DECL_ACCESSORS(result, Object) | 8917 DECL_ACCESSORS(result, Object) |
| (...skipping 3095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12009 } | 12013 } |
| 12010 return value; | 12014 return value; |
| 12011 } | 12015 } |
| 12012 }; | 12016 }; |
| 12013 | 12017 |
| 12014 | 12018 |
| 12015 } // NOLINT, false-positive due to second-order macros. | 12019 } // NOLINT, false-positive due to second-order macros. |
| 12016 } // NOLINT, false-positive due to second-order macros. | 12020 } // NOLINT, false-positive due to second-order macros. |
| 12017 | 12021 |
| 12018 #endif // V8_OBJECTS_H_ | 12022 #endif // V8_OBJECTS_H_ |
| OLD | NEW |