OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Review notes: | 5 // Review notes: |
6 // | 6 // |
7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
10 // | 10 // |
(...skipping 5537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5548 return true; | 5548 return true; |
5549 } | 5549 } |
5550 | 5550 |
5551 | 5551 |
5552 void SharedFunctionInfo::DontAdaptArguments() { | 5552 void SharedFunctionInfo::DontAdaptArguments() { |
5553 ASSERT(code()->kind() == Code::BUILTIN); | 5553 ASSERT(code()->kind() == Code::BUILTIN); |
5554 set_formal_parameter_count(kDontAdaptArgumentsSentinel); | 5554 set_formal_parameter_count(kDontAdaptArgumentsSentinel); |
5555 } | 5555 } |
5556 | 5556 |
5557 | 5557 |
5558 int SharedFunctionInfo::start_position() { | 5558 int SharedFunctionInfo::start_position() const { |
5559 return start_position_and_type() >> kStartPositionShift; | 5559 return start_position_and_type() >> kStartPositionShift; |
5560 } | 5560 } |
5561 | 5561 |
5562 | 5562 |
5563 void SharedFunctionInfo::set_start_position(int start_position) { | 5563 void SharedFunctionInfo::set_start_position(int start_position) { |
5564 set_start_position_and_type((start_position << kStartPositionShift) | 5564 set_start_position_and_type((start_position << kStartPositionShift) |
5565 | (start_position_and_type() & ~kStartPositionMask)); | 5565 | (start_position_and_type() & ~kStartPositionMask)); |
5566 } | 5566 } |
5567 | 5567 |
5568 | 5568 |
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7125 #undef READ_SHORT_FIELD | 7125 #undef READ_SHORT_FIELD |
7126 #undef WRITE_SHORT_FIELD | 7126 #undef WRITE_SHORT_FIELD |
7127 #undef READ_BYTE_FIELD | 7127 #undef READ_BYTE_FIELD |
7128 #undef WRITE_BYTE_FIELD | 7128 #undef WRITE_BYTE_FIELD |
7129 #undef NOBARRIER_READ_BYTE_FIELD | 7129 #undef NOBARRIER_READ_BYTE_FIELD |
7130 #undef NOBARRIER_WRITE_BYTE_FIELD | 7130 #undef NOBARRIER_WRITE_BYTE_FIELD |
7131 | 7131 |
7132 } } // namespace v8::internal | 7132 } } // namespace v8::internal |
7133 | 7133 |
7134 #endif // V8_OBJECTS_INL_H_ | 7134 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |