LCOV - code coverage report
Current view: top level - src/builtins - builtins-collections.cc (source / functions) Hit Total Coverage
Test: app.info Lines: 9 9 100.0 %
Date: 2019-01-20 Functions: 6 8 75.0 %

          Line data    Source code
       1             : // Copyright 2016 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             : #include "src/builtins/builtins-utils-inl.h"
       6             : #include "src/builtins/builtins.h"
       7             : #include "src/counters.h"
       8             : #include "src/objects-inl.h"
       9             : #include "src/objects/js-collection-inl.h"
      10             : 
      11             : namespace v8 {
      12             : namespace internal {
      13             : 
      14         828 : BUILTIN(MapPrototypeClear) {
      15             :   HandleScope scope(isolate);
      16             :   const char* const kMethodName = "Map.prototype.clear";
      17         414 :   CHECK_RECEIVER(JSMap, map, kMethodName);
      18         207 :   JSMap::Clear(isolate, map);
      19         207 :   return ReadOnlyRoots(isolate).undefined_value();
      20             : }
      21             : 
      22         148 : BUILTIN(SetPrototypeClear) {
      23             :   HandleScope scope(isolate);
      24             :   const char* const kMethodName = "Set.prototype.clear";
      25          74 :   CHECK_RECEIVER(JSSet, set, kMethodName);
      26          37 :   JSSet::Clear(isolate, set);
      27          37 :   return ReadOnlyRoots(isolate).undefined_value();
      28             : }
      29             : 
      30             : }  // namespace internal
      31      183867 : }  // namespace v8

Generated by: LCOV version 1.10