OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 2585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2596 // [id]: the script id. | 2596 // [id]: the script id. |
2597 DECL_ACCESSORS(id, Object) | 2597 DECL_ACCESSORS(id, Object) |
2598 | 2598 |
2599 // [line_offset]: script line offset in resource from where it was extracted. | 2599 // [line_offset]: script line offset in resource from where it was extracted. |
2600 DECL_ACCESSORS(line_offset, Smi) | 2600 DECL_ACCESSORS(line_offset, Smi) |
2601 | 2601 |
2602 // [column_offset]: script column offset in resource from where it was | 2602 // [column_offset]: script column offset in resource from where it was |
2603 // extracted. | 2603 // extracted. |
2604 DECL_ACCESSORS(column_offset, Smi) | 2604 DECL_ACCESSORS(column_offset, Smi) |
2605 | 2605 |
| 2606 // [data]: additional data associated with this script. |
| 2607 DECL_ACCESSORS(data, Object) |
| 2608 |
2606 // [wrapper]: the wrapper cache. | 2609 // [wrapper]: the wrapper cache. |
2607 DECL_ACCESSORS(wrapper, Proxy) | 2610 DECL_ACCESSORS(wrapper, Proxy) |
2608 | 2611 |
2609 // [type]: the script type. | 2612 // [type]: the script type. |
2610 DECL_ACCESSORS(type, Smi) | 2613 DECL_ACCESSORS(type, Smi) |
2611 | 2614 |
2612 // [line_ends]: array of line ends positions | 2615 // [line_ends]: array of line ends positions |
2613 DECL_ACCESSORS(line_ends, Object) | 2616 DECL_ACCESSORS(line_ends, Object) |
2614 | 2617 |
2615 static inline Script* cast(Object* obj); | 2618 static inline Script* cast(Object* obj); |
2616 | 2619 |
2617 #ifdef DEBUG | 2620 #ifdef DEBUG |
2618 void ScriptPrint(); | 2621 void ScriptPrint(); |
2619 void ScriptVerify(); | 2622 void ScriptVerify(); |
2620 #endif | 2623 #endif |
2621 | 2624 |
2622 static const int kSourceOffset = HeapObject::kHeaderSize; | 2625 static const int kSourceOffset = HeapObject::kHeaderSize; |
2623 static const int kNameOffset = kSourceOffset + kPointerSize; | 2626 static const int kNameOffset = kSourceOffset + kPointerSize; |
2624 static const int kLineOffsetOffset = kNameOffset + kPointerSize; | 2627 static const int kLineOffsetOffset = kNameOffset + kPointerSize; |
2625 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; | 2628 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; |
2626 static const int kWrapperOffset = kColumnOffsetOffset + kPointerSize; | 2629 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; |
| 2630 static const int kWrapperOffset = kDataOffset + kPointerSize; |
2627 static const int kTypeOffset = kWrapperOffset + kPointerSize; | 2631 static const int kTypeOffset = kWrapperOffset + kPointerSize; |
2628 static const int kLineEndsOffset = kTypeOffset + kPointerSize; | 2632 static const int kLineEndsOffset = kTypeOffset + kPointerSize; |
2629 static const int kIdOffset = kLineEndsOffset + kPointerSize; | 2633 static const int kIdOffset = kLineEndsOffset + kPointerSize; |
2630 static const int kSize = kIdOffset + kPointerSize; | 2634 static const int kSize = kIdOffset + kPointerSize; |
2631 | 2635 |
2632 private: | 2636 private: |
2633 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); | 2637 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); |
2634 }; | 2638 }; |
2635 | 2639 |
2636 | 2640 |
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4343 } else { | 4347 } else { |
4344 value &= ~(1 << bit_position); | 4348 value &= ~(1 << bit_position); |
4345 } | 4349 } |
4346 return value; | 4350 return value; |
4347 } | 4351 } |
4348 }; | 4352 }; |
4349 | 4353 |
4350 } } // namespace v8::internal | 4354 } } // namespace v8::internal |
4351 | 4355 |
4352 #endif // V8_OBJECTS_H_ | 4356 #endif // V8_OBJECTS_H_ |
OLD | NEW |