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 5037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5048 } | 5048 } |
5049 | 5049 |
5050 | 5050 |
5051 inline bool Code::is_hydrogen_stub() { | 5051 inline bool Code::is_hydrogen_stub() { |
5052 return is_crankshafted() && kind() != OPTIMIZED_FUNCTION; | 5052 return is_crankshafted() && kind() != OPTIMIZED_FUNCTION; |
5053 } | 5053 } |
5054 | 5054 |
5055 inline bool Code::is_interpreter_trampoline_builtin() { | 5055 inline bool Code::is_interpreter_trampoline_builtin() { |
5056 Builtins* builtins = GetIsolate()->builtins(); | 5056 Builtins* builtins = GetIsolate()->builtins(); |
5057 return this == *builtins->InterpreterEntryTrampoline() || | 5057 return this == *builtins->InterpreterEntryTrampoline() || |
| 5058 this == *builtins->InterpreterEnterBytecodeAdvance() || |
5058 this == *builtins->InterpreterEnterBytecodeDispatch(); | 5059 this == *builtins->InterpreterEnterBytecodeDispatch(); |
5059 } | 5060 } |
5060 | 5061 |
5061 inline bool Code::has_unwinding_info() const { | 5062 inline bool Code::has_unwinding_info() const { |
5062 return HasUnwindingInfoField::decode(READ_UINT32_FIELD(this, kFlagsOffset)); | 5063 return HasUnwindingInfoField::decode(READ_UINT32_FIELD(this, kFlagsOffset)); |
5063 } | 5064 } |
5064 | 5065 |
5065 inline void Code::set_has_unwinding_info(bool state) { | 5066 inline void Code::set_has_unwinding_info(bool state) { |
5066 uint32_t previous = READ_UINT32_FIELD(this, kFlagsOffset); | 5067 uint32_t previous = READ_UINT32_FIELD(this, kFlagsOffset); |
5067 uint32_t updated_value = HasUnwindingInfoField::update(previous, state); | 5068 uint32_t updated_value = HasUnwindingInfoField::update(previous, state); |
(...skipping 3356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8424 #undef WRITE_INT64_FIELD | 8425 #undef WRITE_INT64_FIELD |
8425 #undef READ_BYTE_FIELD | 8426 #undef READ_BYTE_FIELD |
8426 #undef WRITE_BYTE_FIELD | 8427 #undef WRITE_BYTE_FIELD |
8427 #undef NOBARRIER_READ_BYTE_FIELD | 8428 #undef NOBARRIER_READ_BYTE_FIELD |
8428 #undef NOBARRIER_WRITE_BYTE_FIELD | 8429 #undef NOBARRIER_WRITE_BYTE_FIELD |
8429 | 8430 |
8430 } // namespace internal | 8431 } // namespace internal |
8431 } // namespace v8 | 8432 } // namespace v8 |
8432 | 8433 |
8433 #endif // V8_OBJECTS_INL_H_ | 8434 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |