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

Side by Side Diff: src/mips/lithium-codegen-mips.h

Issue 196133017: Experimental parser: merge r19949 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 9 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/mips/ic-mips.cc ('k') | src/mips/lithium-codegen-mips.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 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // code generation attempt succeeded. 117 // code generation attempt succeeded.
118 bool GenerateCode(); 118 bool GenerateCode();
119 119
120 // Finish the code by setting stack height, safepoint, and bailout 120 // Finish the code by setting stack height, safepoint, and bailout
121 // information on it. 121 // information on it.
122 void FinishCode(Handle<Code> code); 122 void FinishCode(Handle<Code> code);
123 123
124 void DoDeferredNumberTagD(LNumberTagD* instr); 124 void DoDeferredNumberTagD(LNumberTagD* instr);
125 125
126 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 }; 126 enum IntegerSignedness { SIGNED_INT32, UNSIGNED_INT32 };
127 void DoDeferredNumberTagI(LInstruction* instr, 127 void DoDeferredNumberTagIU(LInstruction* instr,
128 LOperand* value, 128 LOperand* value,
129 IntegerSignedness signedness); 129 LOperand* temp1,
130 LOperand* temp2,
131 IntegerSignedness signedness);
130 132
131 void DoDeferredTaggedToI(LTaggedToI* instr); 133 void DoDeferredTaggedToI(LTaggedToI* instr);
132 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr); 134 void DoDeferredMathAbsTaggedHeapNumber(LMathAbs* instr);
133 void DoDeferredStackCheck(LStackCheck* instr); 135 void DoDeferredStackCheck(LStackCheck* instr);
134 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr); 136 void DoDeferredStringCharCodeAt(LStringCharCodeAt* instr);
135 void DoDeferredStringCharFromCode(LStringCharFromCode* instr); 137 void DoDeferredStringCharFromCode(LStringCharFromCode* instr);
136 void DoDeferredAllocate(LAllocate* instr); 138 void DoDeferredAllocate(LAllocate* instr);
137 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr, 139 void DoDeferredInstanceOfKnownGlobal(LInstanceOfKnownGlobal* instr,
138 Label* map_check); 140 Label* map_check);
139 141
(...skipping 14 matching lines...) Expand all
154 156
155 // Emit frame translation commands for an environment. 157 // Emit frame translation commands for an environment.
156 void WriteTranslation(LEnvironment* environment, Translation* translation); 158 void WriteTranslation(LEnvironment* environment, Translation* translation);
157 159
158 // Declare methods that deal with the individual node types. 160 // Declare methods that deal with the individual node types.
159 #define DECLARE_DO(type) void Do##type(L##type* node); 161 #define DECLARE_DO(type) void Do##type(L##type* node);
160 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 162 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
161 #undef DECLARE_DO 163 #undef DECLARE_DO
162 164
163 private: 165 private:
164 StrictModeFlag strict_mode_flag() const { 166 StrictMode strict_mode() const { return info()->strict_mode(); }
165 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode;
166 }
167 167
168 Scope* scope() const { return scope_; } 168 Scope* scope() const { return scope_; }
169 169
170 Register scratch0() { return kLithiumScratchReg; } 170 Register scratch0() { return kLithiumScratchReg; }
171 Register scratch1() { return kLithiumScratchReg2; } 171 Register scratch1() { return kLithiumScratchReg2; }
172 DoubleRegister double_scratch0() { return kLithiumScratchDouble; } 172 DoubleRegister double_scratch0() { return kLithiumScratchDouble; }
173 173
174 LInstruction* GetNextInstruction(); 174 LInstruction* GetNextInstruction();
175 175
176 void EmitClassOfTest(Label* if_true, 176 void EmitClassOfTest(Label* if_true,
177 Label* if_false, 177 Label* if_false,
178 Handle<String> class_name, 178 Handle<String> class_name,
179 Register input, 179 Register input,
180 Register temporary, 180 Register temporary,
181 Register temporary2); 181 Register temporary2);
182 182
183 int GetStackSlotCount() const { return chunk()->spill_slot_count(); } 183 int GetStackSlotCount() const { return chunk()->spill_slot_count(); }
184 184
185 void Abort(BailoutReason reason); 185 void Abort(BailoutReason reason);
186 186
187 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } 187 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); }
188 188
189 void SaveCallerDoubles(); 189 void SaveCallerDoubles();
190 void RestoreCallerDoubles(); 190 void RestoreCallerDoubles();
191 191
192 // Code generation passes. Returns true if code generation should 192 // Code generation passes. Returns true if code generation should
193 // continue. 193 // continue.
194 void GenerateBodyInstructionPre(LInstruction* instr) V8_OVERRIDE;
194 bool GeneratePrologue(); 195 bool GeneratePrologue();
195 bool GenerateDeferredCode(); 196 bool GenerateDeferredCode();
196 bool GenerateDeoptJumpTable(); 197 bool GenerateDeoptJumpTable();
197 bool GenerateSafepointTable(); 198 bool GenerateSafepointTable();
198 199
199 // Generates the custom OSR entrypoint and sets the osr_pc_offset. 200 // Generates the custom OSR entrypoint and sets the osr_pc_offset.
200 void GenerateOsrPrologue(); 201 void GenerateOsrPrologue();
201 202
202 enum SafepointMode { 203 enum SafepointMode {
203 RECORD_SIMPLE_SAFEPOINT, 204 RECORD_SIMPLE_SAFEPOINT,
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 LCodeGen* codegen_; 498 LCodeGen* codegen_;
498 Label entry_; 499 Label entry_;
499 Label exit_; 500 Label exit_;
500 Label* external_exit_; 501 Label* external_exit_;
501 int instruction_index_; 502 int instruction_index_;
502 }; 503 };
503 504
504 } } // namespace v8::internal 505 } } // namespace v8::internal
505 506
506 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ 507 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698