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

Side by Side Diff: src/codegen.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/code-stubs-hydrogen.cc ('k') | src/conversions-inl.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #include "arm/codegen-arm.h" 78 #include "arm/codegen-arm.h"
79 #elif V8_TARGET_ARCH_MIPS 79 #elif V8_TARGET_ARCH_MIPS
80 #include "mips/codegen-mips.h" 80 #include "mips/codegen-mips.h"
81 #else 81 #else
82 #error Unsupported target architecture. 82 #error Unsupported target architecture.
83 #endif 83 #endif
84 84
85 namespace v8 { 85 namespace v8 {
86 namespace internal { 86 namespace internal {
87 87
88
89 class CompilationInfo;
90
91
92 class CodeGenerator {
93 public:
94 // Printing of AST, etc. as requested by flags.
95 static void MakeCodePrologue(CompilationInfo* info, const char* kind);
96
97 // Allocate and install the code.
98 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm,
99 Code::Flags flags,
100 CompilationInfo* info);
101
102 // Print the code after compiling it.
103 static void PrintCode(Handle<Code> code, CompilationInfo* info);
104
105 static bool ShouldGenerateLog(Isolate* isolate, Expression* type);
106
107 static bool RecordPositions(MacroAssembler* masm,
108 int pos,
109 bool right_here = false);
110
111 private:
112 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
113 };
114
115
88 // Results of the library implementation of transcendental functions may differ 116 // Results of the library implementation of transcendental functions may differ
89 // from the one we use in our generated code. Therefore we use the same 117 // from the one we use in our generated code. Therefore we use the same
90 // generated code both in runtime and compiled code. 118 // generated code both in runtime and compiled code.
91 typedef double (*UnaryMathFunction)(double x); 119 typedef double (*UnaryMathFunction)(double x);
92 120
93 UnaryMathFunction CreateExpFunction(); 121 UnaryMathFunction CreateExpFunction();
94 UnaryMathFunction CreateSqrtFunction(); 122 UnaryMathFunction CreateSqrtFunction();
95 123
96 124
97 class ElementsTransitionGenerator : public AllStatic { 125 class ElementsTransitionGenerator : public AllStatic {
(...skipping 13 matching lines...) Expand all
111 private: 139 private:
112 DISALLOW_COPY_AND_ASSIGN(ElementsTransitionGenerator); 140 DISALLOW_COPY_AND_ASSIGN(ElementsTransitionGenerator);
113 }; 141 };
114 142
115 static const int kNumberDictionaryProbes = 4; 143 static const int kNumberDictionaryProbes = 4;
116 144
117 145
118 } } // namespace v8::internal 146 } } // namespace v8::internal
119 147
120 #endif // V8_CODEGEN_H_ 148 #endif // V8_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/conversions-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698