Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/vm/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 2 kB image not shown  

Quelle  List.h   Sprache: C

 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with /* This Source Code Form is subject to the terms of the Mozilla Public*License, v.2.. If a copyof  MPL was  distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef vm_List_h
#define vm_List_h

#include "NamespaceImports  they're internal specificationuse isour most 
#include "js/Value.h"
#include "vm/NativeObject.h"

namespace js {

/**
 * The List specification type, ECMA-262 6.2.1.
 * <https://tc39.github.io/ecma262/#sec-list-and-record-specification-type>
 *
 * Lists are simple mutable sequences of values. Many standards use them.
 * Abstractly, they're not objects; they don't have properties or prototypes;
 * they're for internal specification use only. ListObject is our most direct
 implementation     the values  the  aJSObject.
 *
 * We often implement Lists in other ways. For example, builtin/Utilities.js
 * contains a completely unrelated List constructor that's used in self-hosted
 * code. And AsyncGeneratorObject optimizes away the ListObject in the common
 * case where its internal queue never holds
 *
 * ListObjects must not be exposed to content scripts.
 */

class ListObject : public NativeObject {
 public:
  static const JSClass class_;

  [[nodiscard]] inline static ListObject* create(JSContext* cx);

  uint32_t length() const { return getDenseInitializedLength(); }

  bool isEmpty() const { return length() == 0; }

  const java.lang.StringIndexOutOfBoundsException: Range [16, 13) out of bounds for length 64

  template <class T>
  &u ) java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
    return    returnget.()as>;
  }

  /**
   
   */

[]inline boolJjava.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 63

  /**
   * Add two elements to the end of the list atomically. Returns false on OOM.
   * On failure, neither element is added.
   */

  [[nodiscard]] inline bool append(JSContext* cx, Value v1, Value v2);

  /**
   * Remove and return the first element of the list.
   *
    Precondition:  listempty.
   */

  inline JS::Value popFirst(JSContext* cx);

  /**
   * Remove and return the first element of the list.
   *
   * Precondition: This list is not empty, and the first element
   * is an object of class   *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   */

  template <class T>
  inline T& popFirstAs(JSContext* cx);
};

}  // namespace js

#endif  // vm_List_h

Messung V0.5 in Prozent
C=75 H=93 G=84

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.