| Index: src/a64/codegen-a64.h
|
| diff --git a/src/mips/codegen-mips.h b/src/a64/codegen-a64.h
|
| similarity index 61%
|
| copy from src/mips/codegen-mips.h
|
| copy to src/a64/codegen-a64.h
|
| index 822b94ad7998629412cbdffef081c2e4ab9e8938..1bb9661f0b4b70d9e35d3a7f73186898063ac0c3 100644
|
| --- a/src/mips/codegen-mips.h
|
| +++ b/src/a64/codegen-a64.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2011 the V8 project authors. All rights reserved.
|
| +// Copyright 2013 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -25,10 +25,8 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -
|
| -#ifndef V8_MIPS_CODEGEN_MIPS_H_
|
| -#define V8_MIPS_CODEGEN_MIPS_H_
|
| -
|
| +#ifndef V8_A64_CODEGEN_A64_H_
|
| +#define V8_A64_CODEGEN_A64_H_
|
|
|
| #include "ast.h"
|
| #include "ic-inl.h"
|
| @@ -36,56 +34,12 @@
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -// Forward declarations
|
| -class CompilationInfo;
|
| -
|
| -enum TypeofState { INSIDE_TYPEOF, NOT_INSIDE_TYPEOF };
|
| -
|
| -// -------------------------------------------------------------------------
|
| -// CodeGenerator
|
| -
|
| -class CodeGenerator: public AstVisitor {
|
| - public:
|
| - explicit CodeGenerator(Isolate* isolate) {
|
| - InitializeAstVisitor(isolate);
|
| - }
|
| -
|
| - static bool MakeCode(CompilationInfo* info);
|
| -
|
| - // Printing of AST, etc. as requested by flags.
|
| - static void MakeCodePrologue(CompilationInfo* info, const char* kind);
|
| -
|
| - // Allocate and install the code.
|
| - static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm,
|
| - Code::Flags flags,
|
| - CompilationInfo* info);
|
| -
|
| - // Print the code after compiling it.
|
| - static void PrintCode(Handle<Code> code, CompilationInfo* info);
|
| -
|
| - static bool ShouldGenerateLog(Isolate* isolate, Expression* type);
|
| -
|
| - static void SetFunctionInfo(Handle<JSFunction> fun,
|
| - FunctionLiteral* lit,
|
| - bool is_toplevel,
|
| - Handle<Script> script);
|
| -
|
| - static bool RecordPositions(MacroAssembler* masm,
|
| - int pos,
|
| - bool right_here = false);
|
| -
|
| - DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
|
| -
|
| - private:
|
| - DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
|
| -};
|
| -
|
| -
|
| class StringCharLoadGenerator : public AllStatic {
|
| public:
|
| // Generates the code for handling different string types and loading the
|
| // indexed character into |result|. We expect |index| as untagged input and
|
| - // |result| as untagged output.
|
| + // |result| as untagged output. Register index is asserted to be a 32-bit W
|
| + // register.
|
| static void Generate(MacroAssembler* masm,
|
| Register string,
|
| Register index,
|
| @@ -99,7 +53,6 @@ class StringCharLoadGenerator : public AllStatic {
|
|
|
| class MathExpGenerator : public AllStatic {
|
| public:
|
| - // Register input isn't modified. All other registers are clobbered.
|
| static void EmitMathExp(MacroAssembler* masm,
|
| DoubleRegister input,
|
| DoubleRegister result,
|
| @@ -115,4 +68,4 @@ class MathExpGenerator : public AllStatic {
|
|
|
| } } // namespace v8::internal
|
|
|
| -#endif // V8_MIPS_CODEGEN_MIPS_H_
|
| +#endif // V8_A64_CODEGEN_A64_H_
|
|
|