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 2620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2631 // [line_offset]: script line offset in resource from where it was extracted. | 2631 // [line_offset]: script line offset in resource from where it was extracted. |
2632 DECL_ACCESSORS(line_offset, Smi) | 2632 DECL_ACCESSORS(line_offset, Smi) |
2633 | 2633 |
2634 // [column_offset]: script column offset in resource from where it was | 2634 // [column_offset]: script column offset in resource from where it was |
2635 // extracted. | 2635 // extracted. |
2636 DECL_ACCESSORS(column_offset, Smi) | 2636 DECL_ACCESSORS(column_offset, Smi) |
2637 | 2637 |
2638 // [data]: additional data associated with this script. | 2638 // [data]: additional data associated with this script. |
2639 DECL_ACCESSORS(data, Object) | 2639 DECL_ACCESSORS(data, Object) |
2640 | 2640 |
| 2641 // [context_data]: context data for the context this script was compiled in. |
| 2642 DECL_ACCESSORS(context_data, Object) |
| 2643 |
2641 // [wrapper]: the wrapper cache. | 2644 // [wrapper]: the wrapper cache. |
2642 DECL_ACCESSORS(wrapper, Proxy) | 2645 DECL_ACCESSORS(wrapper, Proxy) |
2643 | 2646 |
2644 // [type]: the script type. | 2647 // [type]: the script type. |
2645 DECL_ACCESSORS(type, Smi) | 2648 DECL_ACCESSORS(type, Smi) |
2646 | 2649 |
2647 // [line_ends]: array of line ends positions | 2650 // [line_ends]: array of line ends positions |
2648 DECL_ACCESSORS(line_ends, Object) | 2651 DECL_ACCESSORS(line_ends, Object) |
2649 | 2652 |
2650 static inline Script* cast(Object* obj); | 2653 static inline Script* cast(Object* obj); |
2651 | 2654 |
2652 #ifdef DEBUG | 2655 #ifdef DEBUG |
2653 void ScriptPrint(); | 2656 void ScriptPrint(); |
2654 void ScriptVerify(); | 2657 void ScriptVerify(); |
2655 #endif | 2658 #endif |
2656 | 2659 |
2657 static const int kSourceOffset = HeapObject::kHeaderSize; | 2660 static const int kSourceOffset = HeapObject::kHeaderSize; |
2658 static const int kNameOffset = kSourceOffset + kPointerSize; | 2661 static const int kNameOffset = kSourceOffset + kPointerSize; |
2659 static const int kLineOffsetOffset = kNameOffset + kPointerSize; | 2662 static const int kLineOffsetOffset = kNameOffset + kPointerSize; |
2660 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; | 2663 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; |
2661 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; | 2664 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; |
2662 static const int kWrapperOffset = kDataOffset + kPointerSize; | 2665 static const int kContextOffset = kDataOffset + kPointerSize; |
| 2666 static const int kWrapperOffset = kContextOffset + kPointerSize; |
2663 static const int kTypeOffset = kWrapperOffset + kPointerSize; | 2667 static const int kTypeOffset = kWrapperOffset + kPointerSize; |
2664 static const int kLineEndsOffset = kTypeOffset + kPointerSize; | 2668 static const int kLineEndsOffset = kTypeOffset + kPointerSize; |
2665 static const int kIdOffset = kLineEndsOffset + kPointerSize; | 2669 static const int kIdOffset = kLineEndsOffset + kPointerSize; |
2666 static const int kSize = kIdOffset + kPointerSize; | 2670 static const int kSize = kIdOffset + kPointerSize; |
2667 | 2671 |
2668 private: | 2672 private: |
2669 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); | 2673 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); |
2670 }; | 2674 }; |
2671 | 2675 |
2672 | 2676 |
(...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4368 } else { | 4372 } else { |
4369 value &= ~(1 << bit_position); | 4373 value &= ~(1 << bit_position); |
4370 } | 4374 } |
4371 return value; | 4375 return value; |
4372 } | 4376 } |
4373 }; | 4377 }; |
4374 | 4378 |
4375 } } // namespace v8::internal | 4379 } } // namespace v8::internal |
4376 | 4380 |
4377 #endif // V8_OBJECTS_H_ | 4381 #endif // V8_OBJECTS_H_ |
OLD | NEW |