OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 4822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4833 inline int code_age(); | 4833 inline int code_age(); |
4834 inline void set_code_age(int age); | 4834 inline void set_code_age(int age); |
4835 | 4835 |
4836 // Indicates whether optimizations have been disabled for this | 4836 // Indicates whether optimizations have been disabled for this |
4837 // shared function info. If a function is repeatedly optimized or if | 4837 // shared function info. If a function is repeatedly optimized or if |
4838 // we cannot optimize the function we disable optimization to avoid | 4838 // we cannot optimize the function we disable optimization to avoid |
4839 // spending time attempting to optimize it again. | 4839 // spending time attempting to optimize it again. |
4840 DECL_BOOLEAN_ACCESSORS(optimization_disabled) | 4840 DECL_BOOLEAN_ACCESSORS(optimization_disabled) |
4841 | 4841 |
4842 // Indicates whether the function is a strict mode function. | 4842 // Indicates whether the function is a strict mode function. |
4843 DECL_BOOLEAN_ACCESSORS(strict_mode) | 4843 inline bool strict_mode(); |
| 4844 |
| 4845 // Indicates the mode of the function. |
| 4846 inline StrictModeFlag strict_mode_flag(); |
| 4847 inline void set_strict_mode_flag(StrictModeFlag strict_mode_flag); |
4844 | 4848 |
4845 // False if the function definitely does not allocate an arguments object. | 4849 // False if the function definitely does not allocate an arguments object. |
4846 DECL_BOOLEAN_ACCESSORS(uses_arguments) | 4850 DECL_BOOLEAN_ACCESSORS(uses_arguments) |
4847 | 4851 |
4848 // True if the function has any duplicated parameter names. | 4852 // True if the function has any duplicated parameter names. |
4849 DECL_BOOLEAN_ACCESSORS(has_duplicate_parameters) | 4853 DECL_BOOLEAN_ACCESSORS(has_duplicate_parameters) |
4850 | 4854 |
4851 // Indicates whether the function is a native function. | 4855 // Indicates whether the function is a native function. |
4852 // These needs special treatment in .call and .apply since | 4856 // These needs special treatment in .call and .apply since |
4853 // null passed as the receiver should not be translated to the | 4857 // null passed as the receiver should not be translated to the |
(...skipping 2811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7665 } else { | 7669 } else { |
7666 value &= ~(1 << bit_position); | 7670 value &= ~(1 << bit_position); |
7667 } | 7671 } |
7668 return value; | 7672 return value; |
7669 } | 7673 } |
7670 }; | 7674 }; |
7671 | 7675 |
7672 } } // namespace v8::internal | 7676 } } // namespace v8::internal |
7673 | 7677 |
7674 #endif // V8_OBJECTS_H_ | 7678 #endif // V8_OBJECTS_H_ |
OLD | NEW |