| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_S390_LITHIUM_CODEGEN_S390_H_ | 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ |
| 6 #define V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ | 6 #define V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_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/s390/lithium-gap-resolver-s390.h" | 10 #include "src/crankshaft/s390/lithium-gap-resolver-s390.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 void CallRuntime(Runtime::FunctionId id, LInstruction* instr) { | 187 void CallRuntime(Runtime::FunctionId id, LInstruction* instr) { |
| 188 const Runtime::Function* function = Runtime::FunctionForId(id); | 188 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 189 CallRuntime(function, function->nargs, instr); | 189 CallRuntime(function, function->nargs, instr); |
| 190 } | 190 } |
| 191 | 191 |
| 192 void LoadContextFromDeferred(LOperand* context); | 192 void LoadContextFromDeferred(LOperand* context); |
| 193 void CallRuntimeFromDeferred(Runtime::FunctionId id, int argc, | 193 void CallRuntimeFromDeferred(Runtime::FunctionId id, int argc, |
| 194 LInstruction* instr, LOperand* context); | 194 LInstruction* instr, LOperand* context); |
| 195 | 195 |
| 196 void PrepareForTailCall(const ParameterCount& actual, Register scratch1, |
| 197 Register scratch2, Register scratch3); |
| 198 |
| 196 // Generate a direct call to a known function. Expects the function | 199 // Generate a direct call to a known function. Expects the function |
| 197 // to be in r4. | 200 // to be in r4. |
| 198 void CallKnownFunction(Handle<JSFunction> function, | 201 void CallKnownFunction(Handle<JSFunction> function, |
| 199 int formal_parameter_count, int arity, | 202 int formal_parameter_count, int arity, |
| 200 LInstruction* instr); | 203 bool is_tail_call, LInstruction* instr); |
| 201 | 204 |
| 202 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 205 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
| 203 SafepointMode safepoint_mode); | 206 SafepointMode safepoint_mode); |
| 204 | 207 |
| 205 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 208 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
| 206 Safepoint::DeoptMode mode); | 209 Safepoint::DeoptMode mode); |
| 207 void DeoptimizeIf(Condition condition, LInstruction* instr, | 210 void DeoptimizeIf(Condition condition, LInstruction* instr, |
| 208 Deoptimizer::DeoptReason deopt_reason, | 211 Deoptimizer::DeoptReason deopt_reason, |
| 209 Deoptimizer::BailoutType bailout_type, CRegister cr = cr7); | 212 Deoptimizer::BailoutType bailout_type, CRegister cr = cr7); |
| 210 void DeoptimizeIf(Condition condition, LInstruction* instr, | 213 void DeoptimizeIf(Condition condition, LInstruction* instr, |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 LCodeGen* codegen_; | 350 LCodeGen* codegen_; |
| 348 Label entry_; | 351 Label entry_; |
| 349 Label exit_; | 352 Label exit_; |
| 350 Label* external_exit_; | 353 Label* external_exit_; |
| 351 int instruction_index_; | 354 int instruction_index_; |
| 352 }; | 355 }; |
| 353 } // namespace internal | 356 } // namespace internal |
| 354 } // namespace v8 | 357 } // namespace v8 |
| 355 | 358 |
| 356 #endif // V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ | 359 #endif // V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ |
| OLD | NEW |