summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/ftl/FTLState.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2015-05-20 09:56:07 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2015-05-20 09:56:07 +0000
commit41386e9cb918eed93b3f13648cbef387e371e451 (patch)
treea97f9d7bd1d9d091833286085f72da9d83fd0606 /Source/JavaScriptCore/ftl/FTLState.cpp
parente15dd966d523731101f70ccf768bba12435a0208 (diff)
downloadWebKitGtk-tarball-41386e9cb918eed93b3f13648cbef387e371e451.tar.gz
webkitgtk-2.4.9webkitgtk-2.4.9
Diffstat (limited to 'Source/JavaScriptCore/ftl/FTLState.cpp')
-rw-r--r--Source/JavaScriptCore/ftl/FTLState.cpp21
1 files changed, 4 insertions, 17 deletions
diff --git a/Source/JavaScriptCore/ftl/FTLState.cpp b/Source/JavaScriptCore/ftl/FTLState.cpp
index 7c94bab36..c263b264b 100644
--- a/Source/JavaScriptCore/ftl/FTLState.cpp
+++ b/Source/JavaScriptCore/ftl/FTLState.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013, 2015 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
@@ -32,8 +32,6 @@
#include "FTLForOSREntryJITCode.h"
#include "FTLJITCode.h"
#include "FTLJITFinalizer.h"
-#include <llvm/InitializeLLVM.h>
-#include <stdio.h>
namespace JSC { namespace FTL {
@@ -45,12 +43,6 @@ State::State(Graph& graph)
, module(0)
, function(0)
, generatedFunction(0)
- , handleStackOverflowExceptionStackmapID(UINT_MAX)
- , handleExceptionStackmapID(UINT_MAX)
- , capturedStackmapID(UINT_MAX)
- , varargsSpillSlotsStackmapID(UINT_MAX)
- , unwindDataSection(0)
- , unwindDataSectionSize(0)
{
switch (graph.m_plan.mode) {
case FTLMode: {
@@ -68,9 +60,9 @@ State::State(Graph& graph)
RELEASE_ASSERT_NOT_REACHED();
break;
}
-
- graph.m_plan.finalizer = std::make_unique<JITFinalizer>(graph.m_plan);
- finalizer = static_cast<JITFinalizer*>(graph.m_plan.finalizer.get());
+
+ finalizer = new JITFinalizer(graph.m_plan);
+ graph.m_plan.finalizer = adoptPtr(finalizer);
}
State::~State()
@@ -80,11 +72,6 @@ State::~State()
void State::dumpState(const char* when)
{
- dumpState(module, when);
-}
-
-void State::dumpState(LModule module, const char* when)
-{
dataLog("LLVM IR for ", CodeBlockWithJITType(graph.m_codeBlock, FTL::JITCode::FTLJIT), " ", when, ":\n");
dumpModule(module);
}