Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 2952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2963 | 2963 |
| 2964 | 2964 |
| 2965 bool SharedFunctionInfo::IsInobjectSlackTrackingInProgress() { | 2965 bool SharedFunctionInfo::IsInobjectSlackTrackingInProgress() { |
| 2966 return initial_map() != Heap::undefined_value(); | 2966 return initial_map() != Heap::undefined_value(); |
| 2967 } | 2967 } |
| 2968 | 2968 |
| 2969 | 2969 |
| 2970 bool SharedFunctionInfo::optimization_disabled() { | 2970 bool SharedFunctionInfo::optimization_disabled() { |
| 2971 return BooleanBit::get(compiler_hints(), kOptimizationDisabled); | 2971 return BooleanBit::get(compiler_hints(), kOptimizationDisabled); |
| 2972 } | 2972 } |
| 2973 | 2973 |
|
Lasse Reichstein
2011/02/01 11:26:24
Two lines of whitespace between function definitio
| |
| 2974 bool SharedFunctionInfo::strict_mode() { | |
| 2975 return BooleanBit::get(compiler_hints(), kStrictModeFunction); | |
| 2976 } | |
| 2977 | |
| 2978 void SharedFunctionInfo::set_strict_mode(bool value) { | |
| 2979 set_compiler_hints(BooleanBit::set(compiler_hints(), | |
| 2980 kStrictModeFunction, | |
|
Lasse Reichstein
2011/02/01 11:26:24
Indentation.
| |
| 2981 value)); | |
| 2982 } | |
| 2974 | 2983 |
| 2975 void SharedFunctionInfo::set_optimization_disabled(bool disable) { | 2984 void SharedFunctionInfo::set_optimization_disabled(bool disable) { |
| 2976 set_compiler_hints(BooleanBit::set(compiler_hints(), | 2985 set_compiler_hints(BooleanBit::set(compiler_hints(), |
| 2977 kOptimizationDisabled, | 2986 kOptimizationDisabled, |
| 2978 disable)); | 2987 disable)); |
| 2979 // If disabling optimizations we reflect that in the code object so | 2988 // If disabling optimizations we reflect that in the code object so |
| 2980 // it will not be counted as optimizable code. | 2989 // it will not be counted as optimizable code. |
| 2981 if ((code()->kind() == Code::FUNCTION) && disable) { | 2990 if ((code()->kind() == Code::FUNCTION) && disable) { |
| 2982 code()->set_optimizable(false); | 2991 code()->set_optimizable(false); |
| 2983 } | 2992 } |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3876 #undef WRITE_INT_FIELD | 3885 #undef WRITE_INT_FIELD |
| 3877 #undef READ_SHORT_FIELD | 3886 #undef READ_SHORT_FIELD |
| 3878 #undef WRITE_SHORT_FIELD | 3887 #undef WRITE_SHORT_FIELD |
| 3879 #undef READ_BYTE_FIELD | 3888 #undef READ_BYTE_FIELD |
| 3880 #undef WRITE_BYTE_FIELD | 3889 #undef WRITE_BYTE_FIELD |
| 3881 | 3890 |
| 3882 | 3891 |
| 3883 } } // namespace v8::internal | 3892 } } // namespace v8::internal |
| 3884 | 3893 |
| 3885 #endif // V8_OBJECTS_INL_H_ | 3894 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |