| 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 5806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5817 if (src_str->IsOneByteRepresentation()) { | 5817 if (src_str->IsOneByteRepresentation()) { |
| 5818 return ExternalOneByteString::cast(src)->resource() != NULL; | 5818 return ExternalOneByteString::cast(src)->resource() != NULL; |
| 5819 } else if (src_str->IsTwoByteRepresentation()) { | 5819 } else if (src_str->IsTwoByteRepresentation()) { |
| 5820 return ExternalTwoByteString::cast(src)->resource() != NULL; | 5820 return ExternalTwoByteString::cast(src)->resource() != NULL; |
| 5821 } | 5821 } |
| 5822 return true; | 5822 return true; |
| 5823 } | 5823 } |
| 5824 | 5824 |
| 5825 | 5825 |
| 5826 void SharedFunctionInfo::DontAdaptArguments() { | 5826 void SharedFunctionInfo::DontAdaptArguments() { |
| 5827 DCHECK(code()->kind() == Code::BUILTIN); | |
| 5828 set_formal_parameter_count(kDontAdaptArgumentsSentinel); | 5827 set_formal_parameter_count(kDontAdaptArgumentsSentinel); |
| 5829 } | 5828 } |
| 5830 | 5829 |
| 5831 | 5830 |
| 5832 int SharedFunctionInfo::start_position() const { | 5831 int SharedFunctionInfo::start_position() const { |
| 5833 return start_position_and_type() >> kStartPositionShift; | 5832 return start_position_and_type() >> kStartPositionShift; |
| 5834 } | 5833 } |
| 5835 | 5834 |
| 5836 | 5835 |
| 5837 void SharedFunctionInfo::set_start_position(int start_position) { | 5836 void SharedFunctionInfo::set_start_position(int start_position) { |
| (...skipping 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7507 #undef READ_SHORT_FIELD | 7506 #undef READ_SHORT_FIELD |
| 7508 #undef WRITE_SHORT_FIELD | 7507 #undef WRITE_SHORT_FIELD |
| 7509 #undef READ_BYTE_FIELD | 7508 #undef READ_BYTE_FIELD |
| 7510 #undef WRITE_BYTE_FIELD | 7509 #undef WRITE_BYTE_FIELD |
| 7511 #undef NOBARRIER_READ_BYTE_FIELD | 7510 #undef NOBARRIER_READ_BYTE_FIELD |
| 7512 #undef NOBARRIER_WRITE_BYTE_FIELD | 7511 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7513 | 7512 |
| 7514 } } // namespace v8::internal | 7513 } } // namespace v8::internal |
| 7515 | 7514 |
| 7516 #endif // V8_OBJECTS_INL_H_ | 7515 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |