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 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1775 kFormalParameterCountOffset) | 1775 kFormalParameterCountOffset) |
1776 INT_ACCESSORS(SharedFunctionInfo, expected_nof_properties, | 1776 INT_ACCESSORS(SharedFunctionInfo, expected_nof_properties, |
1777 kExpectedNofPropertiesOffset) | 1777 kExpectedNofPropertiesOffset) |
1778 INT_ACCESSORS(SharedFunctionInfo, start_position_and_type, | 1778 INT_ACCESSORS(SharedFunctionInfo, start_position_and_type, |
1779 kStartPositionAndTypeOffset) | 1779 kStartPositionAndTypeOffset) |
1780 INT_ACCESSORS(SharedFunctionInfo, end_position, kEndPositionOffset) | 1780 INT_ACCESSORS(SharedFunctionInfo, end_position, kEndPositionOffset) |
1781 INT_ACCESSORS(SharedFunctionInfo, function_token_position, | 1781 INT_ACCESSORS(SharedFunctionInfo, function_token_position, |
1782 kFunctionTokenPositionOffset) | 1782 kFunctionTokenPositionOffset) |
1783 | 1783 |
1784 | 1784 |
| 1785 void SharedFunctionInfo::DontAdaptArguments() { |
| 1786 set_formal_parameter_count(kDontAdaptArgumentsSentinel); |
| 1787 } |
| 1788 |
| 1789 |
1785 int SharedFunctionInfo::start_position() { | 1790 int SharedFunctionInfo::start_position() { |
1786 return start_position_and_type() >> kStartPositionShift; | 1791 return start_position_and_type() >> kStartPositionShift; |
1787 } | 1792 } |
1788 | 1793 |
1789 | 1794 |
1790 void SharedFunctionInfo::set_start_position(int start_position) { | 1795 void SharedFunctionInfo::set_start_position(int start_position) { |
1791 set_start_position_and_type((start_position << kStartPositionShift) | 1796 set_start_position_and_type((start_position << kStartPositionShift) |
1792 | (start_position_and_type() & ~kStartPositionMask)); | 1797 | (start_position_and_type() & ~kStartPositionMask)); |
1793 } | 1798 } |
1794 | 1799 |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2119 #undef WRITE_INT_FIELD | 2124 #undef WRITE_INT_FIELD |
2120 #undef READ_SHORT_FIELD | 2125 #undef READ_SHORT_FIELD |
2121 #undef WRITE_SHORT_FIELD | 2126 #undef WRITE_SHORT_FIELD |
2122 #undef READ_BYTE_FIELD | 2127 #undef READ_BYTE_FIELD |
2123 #undef WRITE_BYTE_FIELD | 2128 #undef WRITE_BYTE_FIELD |
2124 | 2129 |
2125 | 2130 |
2126 } } // namespace v8::internal | 2131 } } // namespace v8::internal |
2127 | 2132 |
2128 #endif // V8_OBJECTS_INL_H_ | 2133 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |