Source code
Revision control
Copy as Markdown
Other Tools
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: set ts=8 sts=2 et sw=2 tw=80:
* 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
#ifndef jit_CacheIRCloner_h
#define jit_CacheIRCloner_h
#include "mozilla/Attributes.h"
#include <stdint.h>
#include "NamespaceImports.h"
#include "jit/CacheIR.h"
#include "jit/CacheIROpsGenerated.h"
#include "jit/CacheIRReader.h"
#include "jit/CacheIRWriter.h"
#include "js/Id.h"
#include "js/Value.h"
class JSAtom;
class JSObject;
class JSString;
namespace JS {
class Symbol;
}
namespace js {
class BaseScript;
class GetterSetter;
class Shape;
namespace gc {
class AllocSite;
}
namespace jit {
class CacheIRStubInfo;
class ICCacheIRStub;
class JitCode;
class MOZ_RAII CacheIRCloner {
public:
explicit CacheIRCloner(ICCacheIRStub* stubInfo);
void cloneOp(CacheOp op, CacheIRReader& reader, CacheIRWriter& writer);