Prevent direct inclusion of headers from TF.

R=jochen@chromium.org, titzer@chromium.org

Review URL: https://codereview.chromium.org/438243004

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22874 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent cae6842a
include_rules = [ include_rules = [
"+src", "+src",
"-src/compiler",
"+src/compiler/pipeline.h",
"-src/libplatform", "-src/libplatform",
"-include/libplatform", "-include/libplatform",
] ]
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "src/compiler/code-generator.h" #include "src/compiler/code-generator.h"
#include "src/compiler/graph-replay.h" #include "src/compiler/graph-replay.h"
#include "src/compiler/graph-visualizer.h" #include "src/compiler/graph-visualizer.h"
#include "src/compiler/instruction.h"
#include "src/compiler/instruction-selector.h" #include "src/compiler/instruction-selector.h"
#include "src/compiler/js-context-specialization.h" #include "src/compiler/js-context-specialization.h"
#include "src/compiler/js-generic-lowering.h" #include "src/compiler/js-generic-lowering.h"
...@@ -288,6 +289,16 @@ Handle<Code> Pipeline::GenerateCode(Linkage* linkage, Graph* graph, ...@@ -288,6 +289,16 @@ Handle<Code> Pipeline::GenerateCode(Linkage* linkage, Graph* graph,
return generator.GenerateCode(); return generator.GenerateCode();
} }
void Pipeline::SetUp() {
InstructionOperand::SetUpCaches();
}
void Pipeline::TearDown() {
InstructionOperand::TearDownCaches();
}
} // namespace compiler } // namespace compiler
} // namespace internal } // namespace internal
} // namespace v8 } // namespace v8
...@@ -50,6 +50,9 @@ class Pipeline { ...@@ -50,6 +50,9 @@ class Pipeline {
#endif #endif
} }
static void SetUp();
static void TearDown();
private: private:
CompilationInfo* info_; CompilationInfo* info_;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "src/base/once.h" #include "src/base/once.h"
#include "src/base/platform/platform.h" #include "src/base/platform/platform.h"
#include "src/bootstrapper.h" #include "src/bootstrapper.h"
#include "src/compiler/instruction.h" #include "src/compiler/pipeline.h"
#include "src/debug.h" #include "src/debug.h"
#include "src/deoptimizer.h" #include "src/deoptimizer.h"
#include "src/elements.h" #include "src/elements.h"
...@@ -48,7 +48,7 @@ void V8::TearDown() { ...@@ -48,7 +48,7 @@ void V8::TearDown() {
Bootstrapper::TearDownExtensions(); Bootstrapper::TearDownExtensions();
ElementsAccessor::TearDown(); ElementsAccessor::TearDown();
LOperand::TearDownCaches(); LOperand::TearDownCaches();
compiler::InstructionOperand::TearDownCaches(); compiler::Pipeline::TearDown();
ExternalReference::TearDownMathExpData(); ExternalReference::TearDownMathExpData();
RegisteredExtension::UnregisterAll(); RegisteredExtension::UnregisterAll();
Isolate::GlobalTearDown(); Isolate::GlobalTearDown();
...@@ -90,7 +90,7 @@ void V8::InitializeOncePerProcessImpl() { ...@@ -90,7 +90,7 @@ void V8::InitializeOncePerProcessImpl() {
#endif #endif
ElementsAccessor::InitializeOncePerProcess(); ElementsAccessor::InitializeOncePerProcess();
LOperand::SetUpCaches(); LOperand::SetUpCaches();
compiler::InstructionOperand::SetUpCaches(); compiler::Pipeline::SetUp();
SetUpJSCallerSavedCodeData(); SetUpJSCallerSavedCodeData();
ExternalReference::SetUp(); ExternalReference::SetUp();
Bootstrapper::InitializeOncePerProcess(); Bootstrapper::InitializeOncePerProcess();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment