OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
7 | 7 |
8 #include "src/deoptimizer.h" | 8 #include "src/deoptimizer.h" |
9 #include "src/lithium-codegen.h" | 9 #include "src/lithium-codegen.h" |
10 #include "src/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/mips64/lithium-gap-resolver-mips64.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 const Runtime::Function* function = Runtime::FunctionForId(id); | 204 const Runtime::Function* function = Runtime::FunctionForId(id); |
205 CallRuntime(function, num_arguments, instr); | 205 CallRuntime(function, num_arguments, instr); |
206 } | 206 } |
207 | 207 |
208 void LoadContextFromDeferred(LOperand* context); | 208 void LoadContextFromDeferred(LOperand* context); |
209 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 209 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
210 int argc, | 210 int argc, |
211 LInstruction* instr, | 211 LInstruction* instr, |
212 LOperand* context); | 212 LOperand* context); |
213 | 213 |
214 enum A1State { | |
215 A1_UNINITIALIZED, | |
216 A1_CONTAINS_TARGET | |
217 }; | |
218 | |
219 // Generate a direct call to a known function. Expects the function | 214 // Generate a direct call to a known function. Expects the function |
220 // to be in a1. | 215 // to be in a1. |
221 void CallKnownFunction(Handle<JSFunction> function, | 216 void CallKnownFunction(Handle<JSFunction> function, |
222 int formal_parameter_count, | 217 int formal_parameter_count, int arity, |
223 int arity, | 218 LInstruction* instr); |
224 LInstruction* instr, | |
225 A1State a1_state); | |
226 | 219 |
227 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 220 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
228 SafepointMode safepoint_mode); | 221 SafepointMode safepoint_mode); |
229 | 222 |
230 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 223 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
231 Safepoint::DeoptMode mode); | 224 Safepoint::DeoptMode mode); |
232 void DeoptimizeIf(Condition condition, LInstruction* instr, | 225 void DeoptimizeIf(Condition condition, LInstruction* instr, |
233 Deoptimizer::BailoutType bailout_type, const char* detail, | 226 Deoptimizer::BailoutType bailout_type, const char* detail, |
234 Register src1 = zero_reg, | 227 Register src1 = zero_reg, |
235 const Operand& src2 = Operand(zero_reg)); | 228 const Operand& src2 = Operand(zero_reg)); |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 LCodeGen* codegen_; | 432 LCodeGen* codegen_; |
440 Label entry_; | 433 Label entry_; |
441 Label exit_; | 434 Label exit_; |
442 Label* external_exit_; | 435 Label* external_exit_; |
443 int instruction_index_; | 436 int instruction_index_; |
444 }; | 437 }; |
445 | 438 |
446 } } // namespace v8::internal | 439 } } // namespace v8::internal |
447 | 440 |
448 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 441 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |