Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: src/lithium-codegen.h

Issue 1405363003: Move Hydrogen and Lithium to src/crankshaft/ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/lithium-allocator-inl.h ('k') | src/lithium-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/lithium-codegen.h
diff --git a/src/lithium-codegen.h b/src/lithium-codegen.h
deleted file mode 100644
index c654ff7ce537a81f057dc8de45974a3eb26b116f..0000000000000000000000000000000000000000
--- a/src/lithium-codegen.h
+++ /dev/null
@@ -1,97 +0,0 @@
-// Copyright 2013 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef V8_LITHIUM_CODEGEN_H_
-#define V8_LITHIUM_CODEGEN_H_
-
-#include "src/bailout-reason.h"
-#include "src/compiler.h"
-#include "src/deoptimizer.h"
-
-namespace v8 {
-namespace internal {
-
-class LEnvironment;
-class LInstruction;
-class LPlatformChunk;
-
-class LCodeGenBase BASE_EMBEDDED {
- public:
- LCodeGenBase(LChunk* chunk,
- MacroAssembler* assembler,
- CompilationInfo* info);
- virtual ~LCodeGenBase() {}
-
- // Simple accessors.
- MacroAssembler* masm() const { return masm_; }
- CompilationInfo* info() const { return info_; }
- Isolate* isolate() const { return info_->isolate(); }
- Factory* factory() const { return isolate()->factory(); }
- Heap* heap() const { return isolate()->heap(); }
- Zone* zone() const { return zone_; }
- LPlatformChunk* chunk() const { return chunk_; }
- HGraph* graph() const;
-
- void FPRINTF_CHECKING Comment(const char* format, ...);
- void DeoptComment(const Deoptimizer::DeoptInfo& deopt_info);
- static Deoptimizer::DeoptInfo MakeDeoptInfo(
- LInstruction* instr, Deoptimizer::DeoptReason deopt_reason);
-
- bool GenerateBody();
- virtual void GenerateBodyInstructionPre(LInstruction* instr) {}
- virtual void GenerateBodyInstructionPost(LInstruction* instr) {}
-
- virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0;
- virtual void RecordAndWritePosition(int position) = 0;
-
- int GetNextEmittedBlock() const;
-
- void RegisterWeakObjectsInOptimizedCode(Handle<Code> code);
-
- void WriteTranslationFrame(LEnvironment* environment,
- Translation* translation);
- int DefineDeoptimizationLiteral(Handle<Object> literal);
-
- // Check that an environment assigned via AssignEnvironment is actually being
- // used. Redundant assignments keep things alive longer than necessary, and
- // consequently lead to worse code, so it's important to minimize this.
- void CheckEnvironmentUsage();
-
- protected:
- enum Status {
- UNUSED,
- GENERATING,
- DONE,
- ABORTED
- };
-
- LPlatformChunk* const chunk_;
- MacroAssembler* const masm_;
- CompilationInfo* const info_;
- Zone* zone_;
- Status status_;
- int current_block_;
- int current_instruction_;
- const ZoneList<LInstruction*>* instructions_;
- ZoneList<Handle<Object> > deoptimization_literals_;
- int last_lazy_deopt_pc_;
-
- bool is_unused() const { return status_ == UNUSED; }
- bool is_generating() const { return status_ == GENERATING; }
- bool is_done() const { return status_ == DONE; }
- bool is_aborted() const { return status_ == ABORTED; }
-
- void Abort(BailoutReason reason);
- void Retry(BailoutReason reason);
-
- // Methods for code dependencies.
- void AddDeprecationDependency(Handle<Map> map);
- void AddStabilityDependency(Handle<Map> map);
-};
-
-
-} // namespace internal
-} // namespace v8
-
-#endif // V8_LITHIUM_CODEGEN_H_
« no previous file with comments | « src/lithium-allocator-inl.h ('k') | src/lithium-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698