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

Side by Side Diff: src/a64/codegen-a64.h

Issue 149403003: A64: Synchronize with r19234. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/a64/lithium-a64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 16 matching lines...) Expand all
27 27
28 #ifndef V8_A64_CODEGEN_A64_H_ 28 #ifndef V8_A64_CODEGEN_A64_H_
29 #define V8_A64_CODEGEN_A64_H_ 29 #define V8_A64_CODEGEN_A64_H_
30 30
31 #include "ast.h" 31 #include "ast.h"
32 #include "ic-inl.h" 32 #include "ic-inl.h"
33 33
34 namespace v8 { 34 namespace v8 {
35 namespace internal { 35 namespace internal {
36 36
37 // Forward declarations
38 class CompilationInfo;
39
40 // -------------------------------------------------------------------------
41 // CodeGenerator
42
43 class CodeGenerator: public AstVisitor {
44 public:
45 explicit CodeGenerator(Zone* zone) {
46 InitializeAstVisitor(zone);
47 }
48
49 static bool MakeCode(CompilationInfo* info);
50
51 // Printing of AST, etc. as requested by flags.
52 static void MakeCodePrologue(CompilationInfo* info, const char* kind);
53
54 // Allocate and install the code.
55 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm,
56 Code::Flags flags,
57 CompilationInfo* info);
58
59 // Print the code after compiling it.
60 static void PrintCode(Handle<Code> code, CompilationInfo* info);
61
62 static bool ShouldGenerateLog(Isolate* isolate, Expression* type);
63
64 static void SetFunctionInfo(Handle<JSFunction> fun,
65 FunctionLiteral* lit,
66 bool is_toplevel,
67 Handle<Script> script);
68
69 static bool RecordPositions(MacroAssembler* masm,
70 int pos,
71 bool right_here = false);
72
73 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
74
75 private:
76 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
77 };
78
79
80 class StringCharLoadGenerator : public AllStatic { 37 class StringCharLoadGenerator : public AllStatic {
81 public: 38 public:
82 // Generates the code for handling different string types and loading the 39 // Generates the code for handling different string types and loading the
83 // indexed character into |result|. We expect |index| as untagged input and 40 // indexed character into |result|. We expect |index| as untagged input and
84 // |result| as untagged output. 41 // |result| as untagged output.
85 static void Generate(MacroAssembler* masm, 42 static void Generate(MacroAssembler* masm,
86 Register string, 43 Register string,
87 Register index, 44 Register index,
88 Register result, 45 Register result,
89 Label* call_runtime); 46 Label* call_runtime);
(...skipping 14 matching lines...) Expand all
104 Register temp2, 61 Register temp2,
105 Register temp3); 62 Register temp3);
106 63
107 private: 64 private:
108 DISALLOW_COPY_AND_ASSIGN(MathExpGenerator); 65 DISALLOW_COPY_AND_ASSIGN(MathExpGenerator);
109 }; 66 };
110 67
111 } } // namespace v8::internal 68 } } // namespace v8::internal
112 69
113 #endif // V8_A64_CODEGEN_A64_H_ 70 #endif // V8_A64_CODEGEN_A64_H_
OLDNEW
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/a64/lithium-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698