| 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_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| 7 | 7 |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/crankshaft/lithium-codegen.h" | 9 #include "src/crankshaft/lithium-codegen.h" |
| 10 #include "src/crankshaft/mips/lithium-gap-resolver-mips.h" | 10 #include "src/crankshaft/mips/lithium-gap-resolver-mips.h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 const Runtime::Function* function = Runtime::FunctionForId(id); | 205 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 206 CallRuntime(function, function->nargs, instr); | 206 CallRuntime(function, function->nargs, instr); |
| 207 } | 207 } |
| 208 | 208 |
| 209 void LoadContextFromDeferred(LOperand* context); | 209 void LoadContextFromDeferred(LOperand* context); |
| 210 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 210 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 211 int argc, | 211 int argc, |
| 212 LInstruction* instr, | 212 LInstruction* instr, |
| 213 LOperand* context); | 213 LOperand* context); |
| 214 | 214 |
| 215 void PrepareForTailCall(const ParameterCount& actual, Register scratch1, |
| 216 Register scratch2, Register scratch3); |
| 217 |
| 215 // Generate a direct call to a known function. Expects the function | 218 // Generate a direct call to a known function. Expects the function |
| 216 // to be in a1. | 219 // to be in a1. |
| 217 void CallKnownFunction(Handle<JSFunction> function, | 220 void CallKnownFunction(Handle<JSFunction> function, |
| 218 int formal_parameter_count, int arity, | 221 int formal_parameter_count, int arity, |
| 219 LInstruction* instr); | 222 bool is_tail_call, LInstruction* instr); |
| 220 | 223 |
| 221 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 224 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
| 222 SafepointMode safepoint_mode); | 225 SafepointMode safepoint_mode); |
| 223 | 226 |
| 224 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 227 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
| 225 Safepoint::DeoptMode mode); | 228 Safepoint::DeoptMode mode); |
| 226 void DeoptimizeIf(Condition condition, LInstruction* instr, | 229 void DeoptimizeIf(Condition condition, LInstruction* instr, |
| 227 Deoptimizer::DeoptReason deopt_reason, | 230 Deoptimizer::DeoptReason deopt_reason, |
| 228 Deoptimizer::BailoutType bailout_type, | 231 Deoptimizer::BailoutType bailout_type, |
| 229 Register src1 = zero_reg, | 232 Register src1 = zero_reg, |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 Label entry_; | 420 Label entry_; |
| 418 Label exit_; | 421 Label exit_; |
| 419 Label* external_exit_; | 422 Label* external_exit_; |
| 420 int instruction_index_; | 423 int instruction_index_; |
| 421 }; | 424 }; |
| 422 | 425 |
| 423 } // namespace internal | 426 } // namespace internal |
| 424 } // namespace v8 | 427 } // namespace v8 |
| 425 | 428 |
| 426 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 429 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| OLD | NEW |