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 5694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5705 kProfilerTicksOffset) | 5705 kProfilerTicksOffset) |
5706 | 5706 |
5707 #endif | 5707 #endif |
5708 | 5708 |
5709 | 5709 |
5710 BOOL_GETTER(SharedFunctionInfo, | 5710 BOOL_GETTER(SharedFunctionInfo, |
5711 compiler_hints, | 5711 compiler_hints, |
5712 optimization_disabled, | 5712 optimization_disabled, |
5713 kOptimizationDisabled) | 5713 kOptimizationDisabled) |
5714 | 5714 |
| 5715 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, within_module, kWithinModule) |
| 5716 |
5715 AbstractCode* SharedFunctionInfo::abstract_code() { | 5717 AbstractCode* SharedFunctionInfo::abstract_code() { |
5716 if (HasBytecodeArray()) { | 5718 if (HasBytecodeArray()) { |
5717 return AbstractCode::cast(bytecode_array()); | 5719 return AbstractCode::cast(bytecode_array()); |
5718 } else { | 5720 } else { |
5719 return AbstractCode::cast(code()); | 5721 return AbstractCode::cast(code()); |
5720 } | 5722 } |
5721 } | 5723 } |
5722 | 5724 |
5723 void SharedFunctionInfo::set_optimization_disabled(bool disable) { | 5725 void SharedFunctionInfo::set_optimization_disabled(bool disable) { |
5724 set_compiler_hints(BooleanBit::set(compiler_hints(), | 5726 set_compiler_hints(BooleanBit::set(compiler_hints(), |
(...skipping 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7842 #undef WRITE_INT64_FIELD | 7844 #undef WRITE_INT64_FIELD |
7843 #undef READ_BYTE_FIELD | 7845 #undef READ_BYTE_FIELD |
7844 #undef WRITE_BYTE_FIELD | 7846 #undef WRITE_BYTE_FIELD |
7845 #undef NOBARRIER_READ_BYTE_FIELD | 7847 #undef NOBARRIER_READ_BYTE_FIELD |
7846 #undef NOBARRIER_WRITE_BYTE_FIELD | 7848 #undef NOBARRIER_WRITE_BYTE_FIELD |
7847 | 7849 |
7848 } // namespace internal | 7850 } // namespace internal |
7849 } // namespace v8 | 7851 } // namespace v8 |
7850 | 7852 |
7851 #endif // V8_OBJECTS_INL_H_ | 7853 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |