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 6013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6024 kIsAnonymousExpression) | 6024 kIsAnonymousExpression) |
6025 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, deserialized, kDeserialized) | 6025 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, deserialized, kDeserialized) |
6026 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, has_no_side_effect, | 6026 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, has_no_side_effect, |
6027 kHasNoSideEffect) | 6027 kHasNoSideEffect) |
6028 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, computed_has_no_side_effect, | 6028 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, computed_has_no_side_effect, |
6029 kComputedHasNoSideEffect) | 6029 kComputedHasNoSideEffect) |
6030 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, debug_is_blackboxed, | 6030 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, debug_is_blackboxed, |
6031 kDebugIsBlackboxed) | 6031 kDebugIsBlackboxed) |
6032 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, computed_debug_is_blackboxed, | 6032 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, computed_debug_is_blackboxed, |
6033 kComputedDebugIsBlackboxed) | 6033 kComputedDebugIsBlackboxed) |
| 6034 BOOL_ACCESSORS(SharedFunctionInfo, debugger_hints, has_reported_binary_coverage, |
| 6035 kHasReportedBinaryCoverage) |
6034 | 6036 |
6035 bool Script::HasValidSource() { | 6037 bool Script::HasValidSource() { |
6036 Object* src = this->source(); | 6038 Object* src = this->source(); |
6037 if (!src->IsString()) return true; | 6039 if (!src->IsString()) return true; |
6038 String* src_str = String::cast(src); | 6040 String* src_str = String::cast(src); |
6039 if (!StringShape(src_str).IsExternal()) return true; | 6041 if (!StringShape(src_str).IsExternal()) return true; |
6040 if (src_str->IsOneByteRepresentation()) { | 6042 if (src_str->IsOneByteRepresentation()) { |
6041 return ExternalOneByteString::cast(src)->resource() != NULL; | 6043 return ExternalOneByteString::cast(src)->resource() != NULL; |
6042 } else if (src_str->IsTwoByteRepresentation()) { | 6044 } else if (src_str->IsTwoByteRepresentation()) { |
6043 return ExternalTwoByteString::cast(src)->resource() != NULL; | 6045 return ExternalTwoByteString::cast(src)->resource() != NULL; |
(...skipping 2232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8276 #undef WRITE_INT64_FIELD | 8278 #undef WRITE_INT64_FIELD |
8277 #undef READ_BYTE_FIELD | 8279 #undef READ_BYTE_FIELD |
8278 #undef WRITE_BYTE_FIELD | 8280 #undef WRITE_BYTE_FIELD |
8279 #undef NOBARRIER_READ_BYTE_FIELD | 8281 #undef NOBARRIER_READ_BYTE_FIELD |
8280 #undef NOBARRIER_WRITE_BYTE_FIELD | 8282 #undef NOBARRIER_WRITE_BYTE_FIELD |
8281 | 8283 |
8282 } // namespace internal | 8284 } // namespace internal |
8283 } // namespace v8 | 8285 } // namespace v8 |
8284 | 8286 |
8285 #endif // V8_OBJECTS_INL_H_ | 8287 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |