| 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 6205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6216 name_should_print_as_anonymous, | 6216 name_should_print_as_anonymous, |
| 6217 kNameShouldPrintAsAnonymous) | 6217 kNameShouldPrintAsAnonymous) |
| 6218 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous_expression, | 6218 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_anonymous_expression, |
| 6219 kIsAnonymousExpression) | 6219 kIsAnonymousExpression) |
| 6220 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) | 6220 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_function, kIsFunction) |
| 6221 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, must_use_ignition_turbo, | 6221 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, must_use_ignition_turbo, |
| 6222 kMustUseIgnitionTurbo) | 6222 kMustUseIgnitionTurbo) |
| 6223 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) | 6223 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, dont_flush, kDontFlush) |
| 6224 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken, | 6224 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_asm_wasm_broken, |
| 6225 kIsAsmWasmBroken) | 6225 kIsAsmWasmBroken) |
| 6226 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_readonly, kIsReadOnly) |
| 6227 BOOL_ACCESSORS(SharedFunctionInfo, compiler_hints, is_readonly_computed, |
| 6228 kIsReadOnlyComputed) |
| 6226 | 6229 |
| 6227 bool Script::HasValidSource() { | 6230 bool Script::HasValidSource() { |
| 6228 Object* src = this->source(); | 6231 Object* src = this->source(); |
| 6229 if (!src->IsString()) return true; | 6232 if (!src->IsString()) return true; |
| 6230 String* src_str = String::cast(src); | 6233 String* src_str = String::cast(src); |
| 6231 if (!StringShape(src_str).IsExternal()) return true; | 6234 if (!StringShape(src_str).IsExternal()) return true; |
| 6232 if (src_str->IsOneByteRepresentation()) { | 6235 if (src_str->IsOneByteRepresentation()) { |
| 6233 return ExternalOneByteString::cast(src)->resource() != NULL; | 6236 return ExternalOneByteString::cast(src)->resource() != NULL; |
| 6234 } else if (src_str->IsTwoByteRepresentation()) { | 6237 } else if (src_str->IsTwoByteRepresentation()) { |
| 6235 return ExternalTwoByteString::cast(src)->resource() != NULL; | 6238 return ExternalTwoByteString::cast(src)->resource() != NULL; |
| (...skipping 2215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8451 #undef WRITE_INT64_FIELD | 8454 #undef WRITE_INT64_FIELD |
| 8452 #undef READ_BYTE_FIELD | 8455 #undef READ_BYTE_FIELD |
| 8453 #undef WRITE_BYTE_FIELD | 8456 #undef WRITE_BYTE_FIELD |
| 8454 #undef NOBARRIER_READ_BYTE_FIELD | 8457 #undef NOBARRIER_READ_BYTE_FIELD |
| 8455 #undef NOBARRIER_WRITE_BYTE_FIELD | 8458 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8456 | 8459 |
| 8457 } // namespace internal | 8460 } // namespace internal |
| 8458 } // namespace v8 | 8461 } // namespace v8 |
| 8459 | 8462 |
| 8460 #endif // V8_OBJECTS_INL_H_ | 8463 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |