LCOV - code coverage report
Current view: top level - src/objects - arguments-inl.h (source / functions) Hit Total Coverage
Test: app.info Lines: 6 6 100.0 %
Date: 2017-10-20 Functions: 0 0 -

          Line data    Source code
       1             : // Copyright 2017 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_OBJECTS_ARGUMENTS_INL_H_
       6             : #define V8_OBJECTS_ARGUMENTS_INL_H_
       7             : 
       8             : #include "src/objects/arguments.h"
       9             : 
      10             : // Has to be the last include (doesn't have include guards):
      11             : #include "src/objects/object-macros.h"
      12             : 
      13             : namespace v8 {
      14             : namespace internal {
      15             : 
      16             : CAST_ACCESSOR(AliasedArgumentsEntry)
      17             : CAST_ACCESSOR(JSArgumentsObject)
      18             : CAST_ACCESSOR(SloppyArgumentsElements)
      19             : 
      20         164 : SMI_ACCESSORS(AliasedArgumentsEntry, aliased_context_slot, kAliasedContextSlot)
      21             : 
      22      905750 : TYPE_CHECKER(JSArgumentsObject, JS_ARGUMENTS_TYPE)
      23             : 
      24             : Context* SloppyArgumentsElements::context() {
      25             :   return Context::cast(get(kContextIndex));
      26             : }
      27             : 
      28             : FixedArray* SloppyArgumentsElements::arguments() {
      29             :   return FixedArray::cast(get(kArgumentsIndex));
      30             : }
      31             : 
      32             : void SloppyArgumentsElements::set_arguments(FixedArray* arguments) {
      33       24032 :   set(kArgumentsIndex, arguments);
      34             : }
      35             : 
      36             : uint32_t SloppyArgumentsElements::parameter_map_length() {
      37      614426 :   return length() - kParameterMapStart;
      38             : }
      39             : 
      40             : Object* SloppyArgumentsElements::get_mapped_entry(uint32_t entry) {
      41      105302 :   return get(entry + kParameterMapStart);
      42             : }
      43             : 
      44             : void SloppyArgumentsElements::set_mapped_entry(uint32_t entry, Object* object) {
      45         567 :   set(entry + kParameterMapStart, object);
      46             : }
      47             : 
      48             : }  // namespace internal
      49             : }  // namespace v8
      50             : 
      51             : #include "src/objects/object-macros-undef.h"
      52             : 
      53             : #endif  // V8_OBJECTS_ARGUMENTS_INL_H_

Generated by: LCOV version 1.10