| 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 "allocation.h" | 8 #include "allocation.h" |
| 9 #include "assert-scope.h" | 9 #include "assert-scope.h" |
| 10 #include "builtins.h" | 10 #include "builtins.h" |
| (...skipping 7474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7485 // [[Call]] and [[Construct]] description in ECMA-262, section | 7485 // [[Call]] and [[Construct]] description in ECMA-262, section |
| 7486 // 8.6.2, page 27. | 7486 // 8.6.2, page 27. |
| 7487 inline Code* code(); | 7487 inline Code* code(); |
| 7488 inline void set_code(Code* code); | 7488 inline void set_code(Code* code); |
| 7489 inline void set_code_no_write_barrier(Code* code); | 7489 inline void set_code_no_write_barrier(Code* code); |
| 7490 inline void ReplaceCode(Code* code); | 7490 inline void ReplaceCode(Code* code); |
| 7491 | 7491 |
| 7492 // Tells whether this function is builtin. | 7492 // Tells whether this function is builtin. |
| 7493 inline bool IsBuiltin(); | 7493 inline bool IsBuiltin(); |
| 7494 | 7494 |
| 7495 // Tells whether this function is defined in a native script. |
| 7496 inline bool IsNative(); |
| 7497 |
| 7495 // Tells whether or not the function needs arguments adaption. | 7498 // Tells whether or not the function needs arguments adaption. |
| 7496 inline bool NeedsArgumentsAdaption(); | 7499 inline bool NeedsArgumentsAdaption(); |
| 7497 | 7500 |
| 7498 // Tells whether or not this function has been optimized. | 7501 // Tells whether or not this function has been optimized. |
| 7499 inline bool IsOptimized(); | 7502 inline bool IsOptimized(); |
| 7500 | 7503 |
| 7501 // Tells whether or not this function can be optimized. | 7504 // Tells whether or not this function can be optimized. |
| 7502 inline bool IsOptimizable(); | 7505 inline bool IsOptimizable(); |
| 7503 | 7506 |
| 7504 // Mark this function for lazy recompilation. The function will be | 7507 // Mark this function for lazy recompilation. The function will be |
| (...skipping 3558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11063 } else { | 11066 } else { |
| 11064 value &= ~(1 << bit_position); | 11067 value &= ~(1 << bit_position); |
| 11065 } | 11068 } |
| 11066 return value; | 11069 return value; |
| 11067 } | 11070 } |
| 11068 }; | 11071 }; |
| 11069 | 11072 |
| 11070 } } // namespace v8::internal | 11073 } } // namespace v8::internal |
| 11071 | 11074 |
| 11072 #endif // V8_OBJECTS_H_ | 11075 #endif // V8_OBJECTS_H_ |
| OLD | NEW |