| 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 6494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6505 // [id]: the script id. | 6505 // [id]: the script id. |
| 6506 DECL_ACCESSORS(id, Smi) | 6506 DECL_ACCESSORS(id, Smi) |
| 6507 | 6507 |
| 6508 // [line_offset]: script line offset in resource from where it was extracted. | 6508 // [line_offset]: script line offset in resource from where it was extracted. |
| 6509 DECL_ACCESSORS(line_offset, Smi) | 6509 DECL_ACCESSORS(line_offset, Smi) |
| 6510 | 6510 |
| 6511 // [column_offset]: script column offset in resource from where it was | 6511 // [column_offset]: script column offset in resource from where it was |
| 6512 // extracted. | 6512 // extracted. |
| 6513 DECL_ACCESSORS(column_offset, Smi) | 6513 DECL_ACCESSORS(column_offset, Smi) |
| 6514 | 6514 |
| 6515 // [data]: additional data associated with this script. |
| 6516 DECL_ACCESSORS(data, Object) |
| 6517 |
| 6515 // [context_data]: context data for the context this script was compiled in. | 6518 // [context_data]: context data for the context this script was compiled in. |
| 6516 DECL_ACCESSORS(context_data, Object) | 6519 DECL_ACCESSORS(context_data, Object) |
| 6517 | 6520 |
| 6518 // [wrapper]: the wrapper cache. | 6521 // [wrapper]: the wrapper cache. |
| 6519 DECL_ACCESSORS(wrapper, Foreign) | 6522 DECL_ACCESSORS(wrapper, Foreign) |
| 6520 | 6523 |
| 6521 // [type]: the script type. | 6524 // [type]: the script type. |
| 6522 DECL_ACCESSORS(type, Smi) | 6525 DECL_ACCESSORS(type, Smi) |
| 6523 | 6526 |
| 6524 // [line_ends]: FixedArray of line ends positions. | 6527 // [line_ends]: FixedArray of line ends positions. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6558 inline bool HasValidSource(); | 6561 inline bool HasValidSource(); |
| 6559 | 6562 |
| 6560 // Dispatched behavior. | 6563 // Dispatched behavior. |
| 6561 DECLARE_PRINTER(Script) | 6564 DECLARE_PRINTER(Script) |
| 6562 DECLARE_VERIFIER(Script) | 6565 DECLARE_VERIFIER(Script) |
| 6563 | 6566 |
| 6564 static const int kSourceOffset = HeapObject::kHeaderSize; | 6567 static const int kSourceOffset = HeapObject::kHeaderSize; |
| 6565 static const int kNameOffset = kSourceOffset + kPointerSize; | 6568 static const int kNameOffset = kSourceOffset + kPointerSize; |
| 6566 static const int kLineOffsetOffset = kNameOffset + kPointerSize; | 6569 static const int kLineOffsetOffset = kNameOffset + kPointerSize; |
| 6567 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; | 6570 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; |
| 6568 static const int kContextOffset = kColumnOffsetOffset + kPointerSize; | 6571 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; |
| 6572 static const int kContextOffset = kDataOffset + kPointerSize; |
| 6569 static const int kWrapperOffset = kContextOffset + kPointerSize; | 6573 static const int kWrapperOffset = kContextOffset + kPointerSize; |
| 6570 static const int kTypeOffset = kWrapperOffset + kPointerSize; | 6574 static const int kTypeOffset = kWrapperOffset + kPointerSize; |
| 6571 static const int kLineEndsOffset = kTypeOffset + kPointerSize; | 6575 static const int kLineEndsOffset = kTypeOffset + kPointerSize; |
| 6572 static const int kIdOffset = kLineEndsOffset + kPointerSize; | 6576 static const int kIdOffset = kLineEndsOffset + kPointerSize; |
| 6573 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; | 6577 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; |
| 6574 static const int kEvalFrominstructionsOffsetOffset = | 6578 static const int kEvalFrominstructionsOffsetOffset = |
| 6575 kEvalFromSharedOffset + kPointerSize; | 6579 kEvalFromSharedOffset + kPointerSize; |
| 6576 static const int kFlagsOffset = | 6580 static const int kFlagsOffset = |
| 6577 kEvalFrominstructionsOffsetOffset + kPointerSize; | 6581 kEvalFrominstructionsOffsetOffset + kPointerSize; |
| 6578 static const int kSize = kFlagsOffset + kPointerSize; | 6582 static const int kSize = kFlagsOffset + kPointerSize; |
| (...skipping 4193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10772 } else { | 10776 } else { |
| 10773 value &= ~(1 << bit_position); | 10777 value &= ~(1 << bit_position); |
| 10774 } | 10778 } |
| 10775 return value; | 10779 return value; |
| 10776 } | 10780 } |
| 10777 }; | 10781 }; |
| 10778 | 10782 |
| 10779 } } // namespace v8::internal | 10783 } } // namespace v8::internal |
| 10780 | 10784 |
| 10781 #endif // V8_OBJECTS_H_ | 10785 #endif // V8_OBJECTS_H_ |
| OLD | NEW |