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 5042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5053 } | 5053 } |
5054 | 5054 |
5055 | 5055 |
5056 inline bool Code::is_hydrogen_stub() { | 5056 inline bool Code::is_hydrogen_stub() { |
5057 return is_crankshafted() && kind() != OPTIMIZED_FUNCTION; | 5057 return is_crankshafted() && kind() != OPTIMIZED_FUNCTION; |
5058 } | 5058 } |
5059 | 5059 |
5060 inline bool Code::is_interpreter_trampoline_builtin() { | 5060 inline bool Code::is_interpreter_trampoline_builtin() { |
5061 Builtins* builtins = GetIsolate()->builtins(); | 5061 Builtins* builtins = GetIsolate()->builtins(); |
5062 return this == *builtins->InterpreterEntryTrampoline() || | 5062 return this == *builtins->InterpreterEntryTrampoline() || |
5063 this == *builtins->InterpreterEnterBytecodeDispatch() || | 5063 this == *builtins->InterpreterEnterBytecodeDispatch(); |
5064 this == *builtins->InterpreterMarkBaselineOnReturn(); | |
5065 } | 5064 } |
5066 | 5065 |
5067 inline bool Code::has_unwinding_info() const { | 5066 inline bool Code::has_unwinding_info() const { |
5068 return HasUnwindingInfoField::decode(READ_UINT32_FIELD(this, kFlagsOffset)); | 5067 return HasUnwindingInfoField::decode(READ_UINT32_FIELD(this, kFlagsOffset)); |
5069 } | 5068 } |
5070 | 5069 |
5071 inline void Code::set_has_unwinding_info(bool state) { | 5070 inline void Code::set_has_unwinding_info(bool state) { |
5072 uint32_t previous = READ_UINT32_FIELD(this, kFlagsOffset); | 5071 uint32_t previous = READ_UINT32_FIELD(this, kFlagsOffset); |
5073 uint32_t updated_value = HasUnwindingInfoField::update(previous, state); | 5072 uint32_t updated_value = HasUnwindingInfoField::update(previous, state); |
5074 WRITE_UINT32_FIELD(this, kFlagsOffset, updated_value); | 5073 WRITE_UINT32_FIELD(this, kFlagsOffset, updated_value); |
(...skipping 3356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8431 #undef WRITE_INT64_FIELD | 8430 #undef WRITE_INT64_FIELD |
8432 #undef READ_BYTE_FIELD | 8431 #undef READ_BYTE_FIELD |
8433 #undef WRITE_BYTE_FIELD | 8432 #undef WRITE_BYTE_FIELD |
8434 #undef NOBARRIER_READ_BYTE_FIELD | 8433 #undef NOBARRIER_READ_BYTE_FIELD |
8435 #undef NOBARRIER_WRITE_BYTE_FIELD | 8434 #undef NOBARRIER_WRITE_BYTE_FIELD |
8436 | 8435 |
8437 } // namespace internal | 8436 } // namespace internal |
8438 } // namespace v8 | 8437 } // namespace v8 |
8439 | 8438 |
8440 #endif // V8_OBJECTS_INL_H_ | 8439 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |