diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/ftl/FTLCommonValues.h | |
parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/ftl/FTLCommonValues.h')
-rw-r--r-- | Source/JavaScriptCore/ftl/FTLCommonValues.h | 66 |
1 files changed, 36 insertions, 30 deletions
diff --git a/Source/JavaScriptCore/ftl/FTLCommonValues.h b/Source/JavaScriptCore/ftl/FTLCommonValues.h index 49bf04b47..848090210 100644 --- a/Source/JavaScriptCore/ftl/FTLCommonValues.h +++ b/Source/JavaScriptCore/ftl/FTLCommonValues.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. + * Copyright (C) 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -26,50 +26,56 @@ #ifndef FTLCommonValues_h #define FTLCommonValues_h -#if ENABLE(FTL_JIT) - -#include "FTLAbbreviatedTypes.h" -#include "FTLValueRange.h" +#include <wtf/Platform.h> -namespace JSC { +#if ENABLE(FTL_JIT) -namespace B3 { -class BasicBlock; -class Procedure; -} +#include "FTLAbbreviations.h" -namespace FTL { +namespace JSC { namespace FTL { class CommonValues { public: - CommonValues(); - - void initializeConstants(B3::Procedure&, B3::BasicBlock*); + CommonValues(LContext context); + + void initialize(LModule module) + { + m_module = module; + } const LType voidType; const LType boolean; + const LType int8; + const LType int16; const LType int32; const LType int64; const LType intPtr; const LType floatType; const LType doubleType; - LValue booleanTrue { nullptr }; - LValue booleanFalse { nullptr }; - LValue int32Zero { nullptr }; - LValue int32One { nullptr }; - LValue int64Zero { nullptr }; - LValue intPtrZero { nullptr }; - LValue intPtrOne { nullptr }; - LValue intPtrTwo { nullptr }; - LValue intPtrThree { nullptr }; - LValue intPtrEight { nullptr }; - LValue doubleZero { nullptr }; - - const unsigned rangeKind { 0 }; - const unsigned profKind { 0 }; - const LValue branchWeights { nullptr }; + const LType ref8; + const LType ref16; + const LType ref32; + const LType ref64; + const LType refPtr; + const LType refFloat; + const LType refDouble; + const LValue booleanTrue; + const LValue booleanFalse; + const LValue int8Zero; + const LValue int32Zero; + const LValue int32One; + const LValue int64Zero; + const LValue intPtrZero; + const LValue intPtrOne; + const LValue intPtrTwo; + const LValue intPtrThree; + const LValue intPtrFour; + const LValue intPtrEight; + const LValue intPtrPtr; + const LValue doubleZero; - const ValueRange nonNegativeInt32; + LContext const m_context; + LModule m_module; }; } } // namespace JSC::FTL |