tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

WellKnownAtom.cpp (1015B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
      2 * vim: set ts=8 sts=2 et sw=2 tw=80:
      3 * This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #include "vm/WellKnownAtom.h"
      8 
      9 js::WellKnownAtomInfo js::wellKnownAtomInfos[] = {
     10 #define ENUM_ENTRY_(_, TEXT)   \
     11  {uint32_t(sizeof(TEXT) - 1), \
     12   mozilla::HashStringKnownLength(TEXT, sizeof(TEXT) - 1), TEXT},
     13    FOR_EACH_COMMON_PROPERTYNAME(ENUM_ENTRY_)
     14 #undef ENUM_ENTRY_
     15 
     16 #define ENUM_ENTRY_(NAME, _)    \
     17  {uint32_t(sizeof(#NAME) - 1), \
     18   mozilla::HashStringKnownLength(#NAME, sizeof(#NAME) - 1), #NAME},
     19        JS_FOR_EACH_PROTOTYPE(ENUM_ENTRY_)
     20 #undef ENUM_ENTRY_
     21 
     22 #define ENUM_ENTRY_(NAME)       \
     23  {uint32_t(sizeof(#NAME) - 1), \
     24   mozilla::HashStringKnownLength(#NAME, sizeof(#NAME) - 1), #NAME},
     25            JS_FOR_EACH_WELL_KNOWN_SYMBOL(ENUM_ENTRY_)
     26 #undef ENUM_ENTRY_
     27 };