| 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_IA32_LITHIUM_CODEGEN_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
| 6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
| 7 | 7 |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/base/logging.h" | 9 #include "src/base/logging.h" |
| 10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h" | 10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 CallRuntime(function, function->nargs, instr); | 184 CallRuntime(function, function->nargs, instr); |
| 185 } | 185 } |
| 186 | 186 |
| 187 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 187 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 188 int argc, | 188 int argc, |
| 189 LInstruction* instr, | 189 LInstruction* instr, |
| 190 LOperand* context); | 190 LOperand* context); |
| 191 | 191 |
| 192 void LoadContextFromDeferred(LOperand* context); | 192 void LoadContextFromDeferred(LOperand* context); |
| 193 | 193 |
| 194 void PrepareForTailCall(const ParameterCount& actual, Register scratch1, |
| 195 Register scratch2, Register scratch3); |
| 196 |
| 194 // Generate a direct call to a known function. Expects the function | 197 // Generate a direct call to a known function. Expects the function |
| 195 // to be in edi. | 198 // to be in edi. |
| 196 void CallKnownFunction(Handle<JSFunction> function, | 199 void CallKnownFunction(Handle<JSFunction> function, |
| 197 int formal_parameter_count, int arity, | 200 int formal_parameter_count, int arity, |
| 198 LInstruction* instr); | 201 bool is_tail_call, LInstruction* instr); |
| 199 | 202 |
| 200 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 203 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
| 201 SafepointMode safepoint_mode); | 204 SafepointMode safepoint_mode); |
| 202 | 205 |
| 203 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 206 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
| 204 Safepoint::DeoptMode mode); | 207 Safepoint::DeoptMode mode); |
| 205 void DeoptimizeIf(Condition cc, LInstruction* instr, | 208 void DeoptimizeIf(Condition cc, LInstruction* instr, |
| 206 Deoptimizer::DeoptReason deopt_reason, | 209 Deoptimizer::DeoptReason deopt_reason, |
| 207 Deoptimizer::BailoutType bailout_type); | 210 Deoptimizer::BailoutType bailout_type); |
| 208 void DeoptimizeIf(Condition cc, LInstruction* instr, | 211 void DeoptimizeIf(Condition cc, LInstruction* instr, |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 Label exit_; | 387 Label exit_; |
| 385 Label* external_exit_; | 388 Label* external_exit_; |
| 386 Label done_; | 389 Label done_; |
| 387 int instruction_index_; | 390 int instruction_index_; |
| 388 }; | 391 }; |
| 389 | 392 |
| 390 } // namespace internal | 393 } // namespace internal |
| 391 } // namespace v8 | 394 } // namespace v8 |
| 392 | 395 |
| 393 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ | 396 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |