diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/JavaScriptCore/ftl/FTLCommonValues.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/JavaScriptCore/ftl/FTLCommonValues.h')
-rw-r--r-- | Source/JavaScriptCore/ftl/FTLCommonValues.h | 77 |
1 files changed, 30 insertions, 47 deletions
diff --git a/Source/JavaScriptCore/ftl/FTLCommonValues.h b/Source/JavaScriptCore/ftl/FTLCommonValues.h index 848090210..c1d6d5a55 100644 --- a/Source/JavaScriptCore/ftl/FTLCommonValues.h +++ b/Source/JavaScriptCore/ftl/FTLCommonValues.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Apple Inc. All rights reserved. + * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -23,64 +23,47 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef FTLCommonValues_h -#define FTLCommonValues_h - -#include <wtf/Platform.h> +#pragma once #if ENABLE(FTL_JIT) -#include "FTLAbbreviations.h" +#include "FTLAbbreviatedTypes.h" +#include "FTLValueRange.h" + +namespace JSC { + +namespace B3 { +class BasicBlock; +class Procedure; +} -namespace JSC { namespace FTL { +namespace FTL { class CommonValues { public: - CommonValues(LContext context); + CommonValues(); + + void initializeConstants(B3::Procedure&, B3::BasicBlock*); - void initialize(LModule module) - { - m_module = module; - } + 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 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; - 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 unsigned rangeKind { 0 }; + const unsigned profKind { 0 }; + const LValue branchWeights { nullptr }; - LContext const m_context; - LModule m_module; + const ValueRange nonNegativeInt32; }; } } // namespace JSC::FTL #endif // ENABLE(FTL_JIT) - -#endif // FTLCommonValues_h - |