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 6041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6052 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) | 6052 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_generator, kIsGenerator) |
6053 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_async, kIsAsyncFunction) | 6053 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_async, kIsAsyncFunction) |
6054 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method, | 6054 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_concise_method, |
6055 kIsConciseMethod) | 6055 kIsConciseMethod) |
6056 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_getter_function, | 6056 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_getter_function, |
6057 kIsGetterFunction) | 6057 kIsGetterFunction) |
6058 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_setter_function, | 6058 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_setter_function, |
6059 kIsSetterFunction) | 6059 kIsSetterFunction) |
6060 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_default_constructor, | 6060 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_default_constructor, |
6061 kIsDefaultConstructor) | 6061 kIsDefaultConstructor) |
| 6062 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken, |
| 6063 kIsAsmWasmBroken) |
6062 | 6064 |
6063 inline bool SharedFunctionInfo::is_resumable() const { | 6065 inline bool SharedFunctionInfo::is_resumable() const { |
6064 return is_generator() || is_async(); | 6066 return is_generator() || is_async(); |
6065 } | 6067 } |
6066 | 6068 |
6067 bool Script::HasValidSource() { | 6069 bool Script::HasValidSource() { |
6068 Object* src = this->source(); | 6070 Object* src = this->source(); |
6069 if (!src->IsString()) return true; | 6071 if (!src->IsString()) return true; |
6070 String* src_str = String::cast(src); | 6072 String* src_str = String::cast(src); |
6071 if (!StringShape(src_str).IsExternal()) return true; | 6073 if (!StringShape(src_str).IsExternal()) return true; |
(...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8208 #undef WRITE_INT64_FIELD | 8210 #undef WRITE_INT64_FIELD |
8209 #undef READ_BYTE_FIELD | 8211 #undef READ_BYTE_FIELD |
8210 #undef WRITE_BYTE_FIELD | 8212 #undef WRITE_BYTE_FIELD |
8211 #undef NOBARRIER_READ_BYTE_FIELD | 8213 #undef NOBARRIER_READ_BYTE_FIELD |
8212 #undef NOBARRIER_WRITE_BYTE_FIELD | 8214 #undef NOBARRIER_WRITE_BYTE_FIELD |
8213 | 8215 |
8214 } // namespace internal | 8216 } // namespace internal |
8215 } // namespace v8 | 8217 } // namespace v8 |
8216 | 8218 |
8217 #endif // V8_OBJECTS_INL_H_ | 8219 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |