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