| 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 6200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6211 kIsAnonymousExpression) | 6211 kIsAnonymousExpression) |
| 6212 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, must_use_ignition_turbo, | 6212 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, must_use_ignition_turbo, |
| 6213 kMustUseIgnitionTurbo) | 6213 kMustUseIgnitionTurbo) |
| 6214 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) | 6214 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) |
| 6215 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken, | 6215 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken, |
| 6216 kIsAsmWasmBroken) | 6216 kIsAsmWasmBroken) |
| 6217 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, has_no_side_effect, | 6217 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, has_no_side_effect, |
| 6218 kHasNoSideEffect) | 6218 kHasNoSideEffect) |
| 6219 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, computed_has_no_side_effect, | 6219 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, computed_has_no_side_effect, |
| 6220 kComputedHasNoSideEffect) | 6220 kComputedHasNoSideEffect) |
| 6221 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, debug_is_blackboxed, |
| 6222 kDebugIsBlackboxed) |
| 6223 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, computed_debug_is_blackboxed, |
| 6224 kComputedDebugIsBlackboxed) |
| 6221 | 6225 |
| 6222 bool Script::HasValidSource() { | 6226 bool Script::HasValidSource() { |
| 6223 Object* src = this->source(); | 6227 Object* src = this->source(); |
| 6224 if (!src->IsString()) return true; | 6228 if (!src->IsString()) return true; |
| 6225 String* src_str = String::cast(src); | 6229 String* src_str = String::cast(src); |
| 6226 if (!StringShape(src_str).IsExternal()) return true; | 6230 if (!StringShape(src_str).IsExternal()) return true; |
| 6227 if (src_str->IsOneByteRepresentation()) { | 6231 if (src_str->IsOneByteRepresentation()) { |
| 6228 return ExternalOneByteString::cast(src)->resource() != NULL; | 6232 return ExternalOneByteString::cast(src)->resource() != NULL; |
| 6229 } else if (src_str->IsTwoByteRepresentation()) { | 6233 } else if (src_str->IsTwoByteRepresentation()) { |
| 6230 return ExternalTwoByteString::cast(src)->resource() != NULL; | 6234 return ExternalTwoByteString::cast(src)->resource() != NULL; |
| (...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8430 #undef WRITE_INT64_FIELD | 8434 #undef WRITE_INT64_FIELD |
| 8431 #undef READ_BYTE_FIELD | 8435 #undef READ_BYTE_FIELD |
| 8432 #undef WRITE_BYTE_FIELD | 8436 #undef WRITE_BYTE_FIELD |
| 8433 #undef NOBARRIER_READ_BYTE_FIELD | 8437 #undef NOBARRIER_READ_BYTE_FIELD |
| 8434 #undef NOBARRIER_WRITE_BYTE_FIELD | 8438 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8435 | 8439 |
| 8436 } // namespace internal | 8440 } // namespace internal |
| 8437 } // namespace v8 | 8441 } // namespace v8 |
| 8438 | 8442 |
| 8439 #endif // V8_OBJECTS_INL_H_ | 8443 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |