| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
| 10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
| (...skipping 7616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7627 // 8.6.2, page 27. | 7627 // 8.6.2, page 27. |
| 7628 inline Code* code(); | 7628 inline Code* code(); |
| 7629 inline void set_code(Code* code); | 7629 inline void set_code(Code* code); |
| 7630 inline void set_code_no_write_barrier(Code* code); | 7630 inline void set_code_no_write_barrier(Code* code); |
| 7631 inline void ReplaceCode(Code* code); | 7631 inline void ReplaceCode(Code* code); |
| 7632 | 7632 |
| 7633 // Tells whether this function is builtin. | 7633 // Tells whether this function is builtin. |
| 7634 inline bool IsBuiltin(); | 7634 inline bool IsBuiltin(); |
| 7635 | 7635 |
| 7636 // Tells whether this function is defined in a native script. | 7636 // Tells whether this function is defined in a native script. |
| 7637 inline bool IsNative(); | 7637 inline bool IsFromNativeScript(); |
| 7638 |
| 7639 // Tells whether this function is defined in an extension script. |
| 7640 inline bool IsFromExtensionScript(); |
| 7638 | 7641 |
| 7639 // Tells whether or not the function needs arguments adaption. | 7642 // Tells whether or not the function needs arguments adaption. |
| 7640 inline bool NeedsArgumentsAdaption(); | 7643 inline bool NeedsArgumentsAdaption(); |
| 7641 | 7644 |
| 7642 // Tells whether or not this function has been optimized. | 7645 // Tells whether or not this function has been optimized. |
| 7643 inline bool IsOptimized(); | 7646 inline bool IsOptimized(); |
| 7644 | 7647 |
| 7645 // Tells whether or not this function can be optimized. | 7648 // Tells whether or not this function can be optimized. |
| 7646 inline bool IsOptimizable(); | 7649 inline bool IsOptimizable(); |
| 7647 | 7650 |
| (...skipping 3548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11196 } else { | 11199 } else { |
| 11197 value &= ~(1 << bit_position); | 11200 value &= ~(1 << bit_position); |
| 11198 } | 11201 } |
| 11199 return value; | 11202 return value; |
| 11200 } | 11203 } |
| 11201 }; | 11204 }; |
| 11202 | 11205 |
| 11203 } } // namespace v8::internal | 11206 } } // namespace v8::internal |
| 11204 | 11207 |
| 11205 #endif // V8_OBJECTS_H_ | 11208 #endif // V8_OBJECTS_H_ |
| OLD | NEW |