| 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/mips/lithium-gap-resolver-mips.h" | 10 #include "src/mips/lithium-gap-resolver-mips.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 const Runtime::Function* function = Runtime::FunctionForId(id); | 203 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 204 CallRuntime(function, num_arguments, instr); | 204 CallRuntime(function, num_arguments, instr); |
| 205 } | 205 } |
| 206 | 206 |
| 207 void LoadContextFromDeferred(LOperand* context); | 207 void LoadContextFromDeferred(LOperand* context); |
| 208 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 208 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 209 int argc, | 209 int argc, |
| 210 LInstruction* instr, | 210 LInstruction* instr, |
| 211 LOperand* context); | 211 LOperand* context); |
| 212 | 212 |
| 213 enum A1State { | |
| 214 A1_UNINITIALIZED, | |
| 215 A1_CONTAINS_TARGET | |
| 216 }; | |
| 217 | |
| 218 // Generate a direct call to a known function. Expects the function | 213 // Generate a direct call to a known function. Expects the function |
| 219 // to be in a1. | 214 // to be in a1. |
| 220 void CallKnownFunction(Handle<JSFunction> function, | 215 void CallKnownFunction(Handle<JSFunction> function, |
| 221 int formal_parameter_count, | 216 int formal_parameter_count, int arity, |
| 222 int arity, | 217 LInstruction* instr); |
| 223 LInstruction* instr, | |
| 224 A1State a1_state); | |
| 225 | 218 |
| 226 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 219 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
| 227 SafepointMode safepoint_mode); | 220 SafepointMode safepoint_mode); |
| 228 | 221 |
| 229 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 222 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
| 230 Safepoint::DeoptMode mode); | 223 Safepoint::DeoptMode mode); |
| 231 void DeoptimizeIf(Condition condition, LInstruction* instr, | 224 void DeoptimizeIf(Condition condition, LInstruction* instr, |
| 232 Deoptimizer::BailoutType bailout_type, const char* detail, | 225 Deoptimizer::BailoutType bailout_type, const char* detail, |
| 233 Register src1 = zero_reg, | 226 Register src1 = zero_reg, |
| 234 const Operand& src2 = Operand(zero_reg)); | 227 const Operand& src2 = Operand(zero_reg)); |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 LCodeGen* codegen_; | 431 LCodeGen* codegen_; |
| 439 Label entry_; | 432 Label entry_; |
| 440 Label exit_; | 433 Label exit_; |
| 441 Label* external_exit_; | 434 Label* external_exit_; |
| 442 int instruction_index_; | 435 int instruction_index_; |
| 443 }; | 436 }; |
| 444 | 437 |
| 445 } } // namespace v8::internal | 438 } } // namespace v8::internal |
| 446 | 439 |
| 447 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 440 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| OLD | NEW |