js/src/jit/x64/CodeGenerator-x64.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
michael@0 2 * vim: set ts=8 sts=4 et sw=4 tw=99:
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #ifndef jit_x64_CodeGenerator_x64_h
michael@0 8 #define jit_x64_CodeGenerator_x64_h
michael@0 9
michael@0 10 #include "jit/shared/CodeGenerator-x86-shared.h"
michael@0 11
michael@0 12 namespace js {
michael@0 13 namespace jit {
michael@0 14
michael@0 15 class CodeGeneratorX64 : public CodeGeneratorX86Shared
michael@0 16 {
michael@0 17 CodeGeneratorX64 *thisFromCtor() {
michael@0 18 return this;
michael@0 19 }
michael@0 20
michael@0 21 protected:
michael@0 22 ValueOperand ToValue(LInstruction *ins, size_t pos);
michael@0 23 ValueOperand ToOutValue(LInstruction *ins);
michael@0 24 ValueOperand ToTempValue(LInstruction *ins, size_t pos);
michael@0 25
michael@0 26
michael@0 27 void loadUnboxedValue(Operand source, MIRType type, const LDefinition *dest);
michael@0 28 void storeUnboxedValue(const LAllocation *value, MIRType valueType,
michael@0 29 Operand dest, MIRType slotType);
michael@0 30
michael@0 31 void storeElementTyped(const LAllocation *value, MIRType valueType, MIRType elementType,
michael@0 32 const Register &elements, const LAllocation *index);
michael@0 33
michael@0 34 public:
michael@0 35 CodeGeneratorX64(MIRGenerator *gen, LIRGraph *graph, MacroAssembler *masm);
michael@0 36
michael@0 37 public:
michael@0 38 bool visitValue(LValue *value);
michael@0 39 bool visitBox(LBox *box);
michael@0 40 bool visitUnbox(LUnbox *unbox);
michael@0 41 bool visitLoadSlotV(LLoadSlotV *ins);
michael@0 42 bool visitLoadSlotT(LLoadSlotT *load);
michael@0 43 bool visitStoreSlotT(LStoreSlotT *store);
michael@0 44 bool visitLoadElementT(LLoadElementT *load);
michael@0 45 bool visitImplicitThis(LImplicitThis *lir);
michael@0 46 bool visitInterruptCheck(LInterruptCheck *lir);
michael@0 47 bool visitCompareB(LCompareB *lir);
michael@0 48 bool visitCompareBAndBranch(LCompareBAndBranch *lir);
michael@0 49 bool visitCompareV(LCompareV *lir);
michael@0 50 bool visitCompareVAndBranch(LCompareVAndBranch *lir);
michael@0 51 bool visitTruncateDToInt32(LTruncateDToInt32 *ins);
michael@0 52 bool visitTruncateFToInt32(LTruncateFToInt32 *ins);
michael@0 53 bool visitLoadTypedArrayElementStatic(LLoadTypedArrayElementStatic *ins);
michael@0 54 bool visitStoreTypedArrayElementStatic(LStoreTypedArrayElementStatic *ins);
michael@0 55 bool visitAsmJSLoadHeap(LAsmJSLoadHeap *ins);
michael@0 56 bool visitAsmJSStoreHeap(LAsmJSStoreHeap *ins);
michael@0 57 bool visitAsmJSLoadGlobalVar(LAsmJSLoadGlobalVar *ins);
michael@0 58 bool visitAsmJSStoreGlobalVar(LAsmJSStoreGlobalVar *ins);
michael@0 59 bool visitAsmJSLoadFuncPtr(LAsmJSLoadFuncPtr *ins);
michael@0 60 bool visitAsmJSLoadFFIFunc(LAsmJSLoadFFIFunc *ins);
michael@0 61 bool visitAsmJSUInt32ToDouble(LAsmJSUInt32ToDouble *lir);
michael@0 62 bool visitAsmJSUInt32ToFloat32(LAsmJSUInt32ToFloat32 *lir);
michael@0 63
michael@0 64 void postAsmJSCall(LAsmJSCall *lir) {}
michael@0 65 };
michael@0 66
michael@0 67 typedef CodeGeneratorX64 CodeGeneratorSpecific;
michael@0 68
michael@0 69 } // namespace jit
michael@0 70 } // namespace js
michael@0 71
michael@0 72 #endif /* jit_x64_CodeGenerator_x64_h */

mercurial