LCOV - code coverage report
Current view: top level - src/objects - js-date-time-format-inl.h (source / functions) Hit Total Coverage
Test: app.info Lines: 10 10 100.0 %
Date: 2019-01-20 Functions: 6 6 100.0 %

          Line data    Source code
       1             : // Copyright 2018 the V8 project authors. All rights reserved.
       2             : // Use of this source code is governed by a BSD-style license that can be
       3             : // found in the LICENSE file.
       4             : 
       5             : #ifndef V8_INTL_SUPPORT
       6             : #error Internationalization is expected to be enabled.
       7             : #endif  // V8_INTL_SUPPORT
       8             : 
       9             : #ifndef V8_OBJECTS_JS_DATE_TIME_FORMAT_INL_H_
      10             : #define V8_OBJECTS_JS_DATE_TIME_FORMAT_INL_H_
      11             : 
      12             : #include "src/objects-inl.h"
      13             : #include "src/objects/js-date-time-format.h"
      14             : 
      15             : // Has to be the last include (doesn't have include guards):
      16             : #include "src/objects/object-macros.h"
      17             : 
      18             : namespace v8 {
      19             : namespace internal {
      20             : 
      21       13722 : OBJECT_CONSTRUCTORS_IMPL(JSDateTimeFormat, JSObject)
      22             : 
      23       22164 : ACCESSORS(JSDateTimeFormat, icu_locale, Managed<icu::Locale>, kICULocaleOffset);
      24       18138 : ACCESSORS(JSDateTimeFormat, icu_simple_date_format,
      25             :           Managed<icu::SimpleDateFormat>, kICUSimpleDateFormatOffset)
      26        3609 : ACCESSORS(JSDateTimeFormat, bound_format, Object, kBoundFormatOffset);
      27       17013 : SMI_ACCESSORS(JSDateTimeFormat, flags, kFlagsOffset)
      28             : 
      29        2964 : inline void JSDateTimeFormat::set_hour_cycle(Intl::HourCycle hour_cycle) {
      30             :   int hints = flags();
      31        5928 :   hints = HourCycleBits::update(hints, hour_cycle);
      32             :   set_flags(hints);
      33        2964 : }
      34             : 
      35             : inline Intl::HourCycle JSDateTimeFormat::hour_cycle() const {
      36        2493 :   return HourCycleBits::decode(flags());
      37             : }
      38             : 
      39        6861 : CAST_ACCESSOR(JSDateTimeFormat);
      40             : 
      41             : }  // namespace internal
      42             : }  // namespace v8
      43             : 
      44             : #include "src/objects/object-macros-undef.h"
      45             : 
      46             : #endif  // V8_OBJECTS_JS_DATE_TIME_FORMAT_INL_H_

Generated by: LCOV version 1.10