| 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 6009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6020 kIsAnonymousExpression) | 6020 kIsAnonymousExpression) |
| 6021 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, deserialized, kDeserialized) | 6021 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, deserialized, kDeserialized) |
| 6022 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, has_no_side_effect, | 6022 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, has_no_side_effect, |
| 6023 kHasNoSideEffect) | 6023 kHasNoSideEffect) |
| 6024 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, computed_has_no_side_effect, | 6024 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, computed_has_no_side_effect, |
| 6025 kComputedHasNoSideEffect) | 6025 kComputedHasNoSideEffect) |
| 6026 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, debug_is_blackboxed, | 6026 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, debug_is_blackboxed, |
| 6027 kDebugIsBlackboxed) | 6027 kDebugIsBlackboxed) |
| 6028 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, computed_debug_is_blackboxed, | 6028 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, computed_debug_is_blackboxed, |
| 6029 kComputedDebugIsBlackboxed) | 6029 kComputedDebugIsBlackboxed) |
| 6030 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, is_promise_builtin, |
| 6031 kIsPromiseBuiltin) |
| 6030 | 6032 |
| 6031 bool Script::HasValidSource() { | 6033 bool Script::HasValidSource() { |
| 6032 Object* src = this->source(); | 6034 Object* src = this->source(); |
| 6033 if (!src->IsString()) return true; | 6035 if (!src->IsString()) return true; |
| 6034 String* src_str = String::cast(src); | 6036 String* src_str = String::cast(src); |
| 6035 if (!StringShape(src_str).IsExternal()) return true; | 6037 if (!StringShape(src_str).IsExternal()) return true; |
| 6036 if (src_str->IsOneByteRepresentation()) { | 6038 if (src_str->IsOneByteRepresentation()) { |
| 6037 return ExternalOneByteString::cast(src)->resource() != NULL; | 6039 return ExternalOneByteString::cast(src)->resource() != NULL; |
| 6038 } else if (src_str->IsTwoByteRepresentation()) { | 6040 } else if (src_str->IsTwoByteRepresentation()) { |
| 6039 return ExternalTwoByteString::cast(src)->resource() != NULL; | 6041 return ExternalTwoByteString::cast(src)->resource() != NULL; |
| (...skipping 2213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8253 #undef WRITE_INT64_FIELD | 8255 #undef WRITE_INT64_FIELD |
| 8254 #undef READ_BYTE_FIELD | 8256 #undef READ_BYTE_FIELD |
| 8255 #undef WRITE_BYTE_FIELD | 8257 #undef WRITE_BYTE_FIELD |
| 8256 #undef NOBARRIER_READ_BYTE_FIELD | 8258 #undef NOBARRIER_READ_BYTE_FIELD |
| 8257 #undef NOBARRIER_WRITE_BYTE_FIELD | 8259 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8258 | 8260 |
| 8259 } // namespace internal | 8261 } // namespace internal |
| 8260 } // namespace v8 | 8262 } // namespace v8 |
| 8261 | 8263 |
| 8262 #endif // V8_OBJECTS_INL_H_ | 8264 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |