| 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 6171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6182 kIsAnonymousExpression) | 6182 kIsAnonymousExpression) |
| 6183 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, must_use_ignition_turbo, | 6183 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, must_use_ignition_turbo, |
| 6184 kMustUseIgnitionTurbo) | 6184 kMustUseIgnitionTurbo) |
| 6185 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) | 6185 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) |
| 6186 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken, | 6186 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken, |
| 6187 kIsAsmWasmBroken) | 6187 kIsAsmWasmBroken) |
| 6188 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, has_no_side_effect, | 6188 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, has_no_side_effect, |
| 6189 kHasNoSideEffect) | 6189 kHasNoSideEffect) |
| 6190 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, computed_has_no_side_effect, | 6190 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, computed_has_no_side_effect, |
| 6191 kComputedHasNoSideEffect) | 6191 kComputedHasNoSideEffect) |
| 6192 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, debug_is_blackboxed, |
| 6193 kDebugIsBlackboxed) |
| 6192 | 6194 |
| 6193 bool Script::HasValidSource() { | 6195 bool Script::HasValidSource() { |
| 6194 Object* src = this->source(); | 6196 Object* src = this->source(); |
| 6195 if (!src->IsString()) return true; | 6197 if (!src->IsString()) return true; |
| 6196 String* src_str = String::cast(src); | 6198 String* src_str = String::cast(src); |
| 6197 if (!StringShape(src_str).IsExternal()) return true; | 6199 if (!StringShape(src_str).IsExternal()) return true; |
| 6198 if (src_str->IsOneByteRepresentation()) { | 6200 if (src_str->IsOneByteRepresentation()) { |
| 6199 return ExternalOneByteString::cast(src)->resource() != NULL; | 6201 return ExternalOneByteString::cast(src)->resource() != NULL; |
| 6200 } else if (src_str->IsTwoByteRepresentation()) { | 6202 } else if (src_str->IsTwoByteRepresentation()) { |
| 6201 return ExternalTwoByteString::cast(src)->resource() != NULL; | 6203 return ExternalTwoByteString::cast(src)->resource() != NULL; |
| (...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8401 #undef WRITE_INT64_FIELD | 8403 #undef WRITE_INT64_FIELD |
| 8402 #undef READ_BYTE_FIELD | 8404 #undef READ_BYTE_FIELD |
| 8403 #undef WRITE_BYTE_FIELD | 8405 #undef WRITE_BYTE_FIELD |
| 8404 #undef NOBARRIER_READ_BYTE_FIELD | 8406 #undef NOBARRIER_READ_BYTE_FIELD |
| 8405 #undef NOBARRIER_WRITE_BYTE_FIELD | 8407 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8406 | 8408 |
| 8407 } // namespace internal | 8409 } // namespace internal |
| 8408 } // namespace v8 | 8410 } // namespace v8 |
| 8409 | 8411 |
| 8410 #endif // V8_OBJECTS_INL_H_ | 8412 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |