OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 3087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3098 inline void set_start_position(int start_position); | 3098 inline void set_start_position(int start_position); |
3099 | 3099 |
3100 // End position of this function in the script source. | 3100 // End position of this function in the script source. |
3101 inline int end_position(); | 3101 inline int end_position(); |
3102 inline void set_end_position(int end_position); | 3102 inline void set_end_position(int end_position); |
3103 | 3103 |
3104 // Is this function a function expression in the source code. | 3104 // Is this function a function expression in the source code. |
3105 inline bool is_expression(); | 3105 inline bool is_expression(); |
3106 inline void set_is_expression(bool value); | 3106 inline void set_is_expression(bool value); |
3107 | 3107 |
3108 // Is this function a top-level function. Used for accessing the | 3108 // Is this function a top-level function (scripts, evals). |
3109 // caller of functions. Top-level functions (scripts, evals) are | |
3110 // returned as null; see JSFunction::GetCallerAccessor(...). | |
3111 inline bool is_toplevel(); | 3109 inline bool is_toplevel(); |
3112 inline void set_is_toplevel(bool value); | 3110 inline void set_is_toplevel(bool value); |
3113 | 3111 |
3114 // Bit field containing various information collected by the compiler to | 3112 // Bit field containing various information collected by the compiler to |
3115 // drive optimization. | 3113 // drive optimization. |
3116 inline int compiler_hints(); | 3114 inline int compiler_hints(); |
3117 inline void set_compiler_hints(int value); | 3115 inline void set_compiler_hints(int value); |
3118 | 3116 |
3119 // Add information on assignments of the form this.x = ...; | 3117 // Add information on assignments of the form this.x = ...; |
3120 void SetThisPropertyAssignmentsInfo( | 3118 void SetThisPropertyAssignmentsInfo( |
(...skipping 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4865 } else { | 4863 } else { |
4866 value &= ~(1 << bit_position); | 4864 value &= ~(1 << bit_position); |
4867 } | 4865 } |
4868 return value; | 4866 return value; |
4869 } | 4867 } |
4870 }; | 4868 }; |
4871 | 4869 |
4872 } } // namespace v8::internal | 4870 } } // namespace v8::internal |
4873 | 4871 |
4874 #endif // V8_OBJECTS_H_ | 4872 #endif // V8_OBJECTS_H_ |
OLD | NEW |