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 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3168 // when the function is invoked, e.g. foo() or new foo(). See | 3168 // when the function is invoked, e.g. foo() or new foo(). See |
3169 // [[Call]] and [[Construct]] description in ECMA-262, section | 3169 // [[Call]] and [[Construct]] description in ECMA-262, section |
3170 // 8.6.2, page 27. | 3170 // 8.6.2, page 27. |
3171 inline Code* code(); | 3171 inline Code* code(); |
3172 inline void set_code(Code* value); | 3172 inline void set_code(Code* value); |
3173 | 3173 |
3174 // Tells whether this function is a context-independent boilerplate | 3174 // Tells whether this function is a context-independent boilerplate |
3175 // function. | 3175 // function. |
3176 inline bool IsBoilerplate(); | 3176 inline bool IsBoilerplate(); |
3177 | 3177 |
| 3178 // Tells whether this function is builtin. |
| 3179 inline bool IsBuiltin(); |
| 3180 |
3178 // [literals]: Fixed array holding the materialized literals. | 3181 // [literals]: Fixed array holding the materialized literals. |
3179 // | 3182 // |
3180 // If the function contains object, regexp or array literals, the | 3183 // If the function contains object, regexp or array literals, the |
3181 // literals array prefix contains the object, regexp, and array | 3184 // literals array prefix contains the object, regexp, and array |
3182 // function to be used when creating these literals. This is | 3185 // function to be used when creating these literals. This is |
3183 // necessary so that we do not dynamically lookup the object, regexp | 3186 // necessary so that we do not dynamically lookup the object, regexp |
3184 // or array functions. Performing a dynamic lookup, we might end up | 3187 // or array functions. Performing a dynamic lookup, we might end up |
3185 // using the functions from a new context that we should not have | 3188 // using the functions from a new context that we should not have |
3186 // access to. | 3189 // access to. |
3187 DECL_ACCESSORS(literals, FixedArray) | 3190 DECL_ACCESSORS(literals, FixedArray) |
(...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4785 } else { | 4788 } else { |
4786 value &= ~(1 << bit_position); | 4789 value &= ~(1 << bit_position); |
4787 } | 4790 } |
4788 return value; | 4791 return value; |
4789 } | 4792 } |
4790 }; | 4793 }; |
4791 | 4794 |
4792 } } // namespace v8::internal | 4795 } } // namespace v8::internal |
4793 | 4796 |
4794 #endif // V8_OBJECTS_H_ | 4797 #endif // V8_OBJECTS_H_ |
OLD | NEW |