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 7783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7794 public: | 7794 public: |
7795 // [type]: the type of error message. | 7795 // [type]: the type of error message. |
7796 DECL_ACCESSORS(type, String) | 7796 DECL_ACCESSORS(type, String) |
7797 | 7797 |
7798 // [arguments]: the arguments for formatting the error message. | 7798 // [arguments]: the arguments for formatting the error message. |
7799 DECL_ACCESSORS(arguments, JSArray) | 7799 DECL_ACCESSORS(arguments, JSArray) |
7800 | 7800 |
7801 // [script]: the script from which the error message originated. | 7801 // [script]: the script from which the error message originated. |
7802 DECL_ACCESSORS(script, Object) | 7802 DECL_ACCESSORS(script, Object) |
7803 | 7803 |
7804 // [stack_trace]: the stack trace for this error message. | |
7805 DECL_ACCESSORS(stack_trace, Object) | |
7806 | |
7807 // [stack_frames]: an array of stack frames for this error object. | 7804 // [stack_frames]: an array of stack frames for this error object. |
7808 DECL_ACCESSORS(stack_frames, Object) | 7805 DECL_ACCESSORS(stack_frames, Object) |
7809 | 7806 |
7810 // [start_position]: the start position in the script for the error message. | 7807 // [start_position]: the start position in the script for the error message. |
7811 inline int start_position(); | 7808 inline int start_position(); |
7812 inline void set_start_position(int value); | 7809 inline void set_start_position(int value); |
7813 | 7810 |
7814 // [end_position]: the end position in the script for the error message. | 7811 // [end_position]: the end position in the script for the error message. |
7815 inline int end_position(); | 7812 inline int end_position(); |
7816 inline void set_end_position(int value); | 7813 inline void set_end_position(int value); |
7817 | 7814 |
7818 // Casting. | 7815 // Casting. |
7819 static inline JSMessageObject* cast(Object* obj); | 7816 static inline JSMessageObject* cast(Object* obj); |
7820 | 7817 |
7821 // Dispatched behavior. | 7818 // Dispatched behavior. |
7822 DECLARE_PRINTER(JSMessageObject) | 7819 DECLARE_PRINTER(JSMessageObject) |
7823 DECLARE_VERIFIER(JSMessageObject) | 7820 DECLARE_VERIFIER(JSMessageObject) |
7824 | 7821 |
7825 // Layout description. | 7822 // Layout description. |
7826 static const int kTypeOffset = JSObject::kHeaderSize; | 7823 static const int kTypeOffset = JSObject::kHeaderSize; |
7827 static const int kArgumentsOffset = kTypeOffset + kPointerSize; | 7824 static const int kArgumentsOffset = kTypeOffset + kPointerSize; |
7828 static const int kScriptOffset = kArgumentsOffset + kPointerSize; | 7825 static const int kScriptOffset = kArgumentsOffset + kPointerSize; |
7829 static const int kStackTraceOffset = kScriptOffset + kPointerSize; | 7826 static const int kStackFramesOffset = kScriptOffset + kPointerSize; |
7830 static const int kStackFramesOffset = kStackTraceOffset + kPointerSize; | |
7831 static const int kStartPositionOffset = kStackFramesOffset + kPointerSize; | 7827 static const int kStartPositionOffset = kStackFramesOffset + kPointerSize; |
7832 static const int kEndPositionOffset = kStartPositionOffset + kPointerSize; | 7828 static const int kEndPositionOffset = kStartPositionOffset + kPointerSize; |
7833 static const int kSize = kEndPositionOffset + kPointerSize; | 7829 static const int kSize = kEndPositionOffset + kPointerSize; |
7834 | 7830 |
7835 typedef FixedBodyDescriptor<HeapObject::kMapOffset, | 7831 typedef FixedBodyDescriptor<HeapObject::kMapOffset, |
7836 kStackFramesOffset + kPointerSize, | 7832 kStackFramesOffset + kPointerSize, |
7837 kSize> BodyDescriptor; | 7833 kSize> BodyDescriptor; |
7838 }; | 7834 }; |
7839 | 7835 |
7840 | 7836 |
(...skipping 2920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10761 } else { | 10757 } else { |
10762 value &= ~(1 << bit_position); | 10758 value &= ~(1 << bit_position); |
10763 } | 10759 } |
10764 return value; | 10760 return value; |
10765 } | 10761 } |
10766 }; | 10762 }; |
10767 | 10763 |
10768 } } // namespace v8::internal | 10764 } } // namespace v8::internal |
10769 | 10765 |
10770 #endif // V8_OBJECTS_H_ | 10766 #endif // V8_OBJECTS_H_ |
OLD | NEW |