tor-browser

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

LIR-arm64.h (922B)


      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 #ifndef jit_arm64_LIR_arm64_h
      8 #define jit_arm64_LIR_arm64_h
      9 
     10 namespace js {
     11 namespace jit {
     12 
     13 class LUnbox : public LInstructionHelper<1, BOX_PIECES, 0> {
     14 public:
     15  LIR_HEADER(Unbox);
     16 
     17  explicit LUnbox(const LAllocation& input) : LInstructionHelper(classOpcode) {
     18    setOperand(0, input);
     19  }
     20 
     21  static const size_t Input = 0;
     22 
     23  LBoxAllocation input() const { return getBoxOperand(Input); }
     24 
     25  MUnbox* mir() const { return mir_->toUnbox(); }
     26  const char* extraName() const { return StringFromMIRType(mir()->type()); }
     27 };
     28 
     29 }  // namespace jit
     30 }  // namespace js
     31 
     32 #endif /* jit_arm64_LIR_arm64_h */