| 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 // Review notes: | 5 // Review notes: |
| 6 // | 6 // |
| 7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
| 8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
| 9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
| 10 // | 10 // |
| (...skipping 4954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4965 bool Code::is_load_stub() { return kind() == LOAD_IC; } | 4965 bool Code::is_load_stub() { return kind() == LOAD_IC; } |
| 4966 bool Code::is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } | 4966 bool Code::is_keyed_load_stub() { return kind() == KEYED_LOAD_IC; } |
| 4967 bool Code::is_store_stub() { return kind() == STORE_IC; } | 4967 bool Code::is_store_stub() { return kind() == STORE_IC; } |
| 4968 bool Code::is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } | 4968 bool Code::is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } |
| 4969 bool Code::is_call_stub() { return kind() == CALL_IC; } | 4969 bool Code::is_call_stub() { return kind() == CALL_IC; } |
| 4970 bool Code::is_binary_op_stub() { return kind() == BINARY_OP_IC; } | 4970 bool Code::is_binary_op_stub() { return kind() == BINARY_OP_IC; } |
| 4971 bool Code::is_compare_ic_stub() { return kind() == COMPARE_IC; } | 4971 bool Code::is_compare_ic_stub() { return kind() == COMPARE_IC; } |
| 4972 bool Code::is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; } | 4972 bool Code::is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; } |
| 4973 bool Code::is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } | 4973 bool Code::is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } |
| 4974 bool Code::is_optimized_code() { return kind() == OPTIMIZED_FUNCTION; } | 4974 bool Code::is_optimized_code() { return kind() == OPTIMIZED_FUNCTION; } |
| 4975 | 4975 bool Code::is_wasm_code() { return kind() == WASM_FUNCTION; } |
| 4976 | 4976 |
| 4977 bool Code::embeds_maps_weakly() { | 4977 bool Code::embeds_maps_weakly() { |
| 4978 Kind k = kind(); | 4978 Kind k = kind(); |
| 4979 return (k == LOAD_IC || k == STORE_IC || k == KEYED_LOAD_IC || | 4979 return (k == LOAD_IC || k == STORE_IC || k == KEYED_LOAD_IC || |
| 4980 k == KEYED_STORE_IC || k == COMPARE_NIL_IC) && | 4980 k == KEYED_STORE_IC || k == COMPARE_NIL_IC) && |
| 4981 ic_state() == MONOMORPHIC; | 4981 ic_state() == MONOMORPHIC; |
| 4982 } | 4982 } |
| 4983 | 4983 |
| 4984 | 4984 |
| 4985 Address Code::constant_pool() { | 4985 Address Code::constant_pool() { |
| (...skipping 2683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7669 #undef WRITE_INT64_FIELD | 7669 #undef WRITE_INT64_FIELD |
| 7670 #undef READ_BYTE_FIELD | 7670 #undef READ_BYTE_FIELD |
| 7671 #undef WRITE_BYTE_FIELD | 7671 #undef WRITE_BYTE_FIELD |
| 7672 #undef NOBARRIER_READ_BYTE_FIELD | 7672 #undef NOBARRIER_READ_BYTE_FIELD |
| 7673 #undef NOBARRIER_WRITE_BYTE_FIELD | 7673 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7674 | 7674 |
| 7675 } // namespace internal | 7675 } // namespace internal |
| 7676 } // namespace v8 | 7676 } // namespace v8 |
| 7677 | 7677 |
| 7678 #endif // V8_OBJECTS_INL_H_ | 7678 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |