| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 LInstruction* instr, | 190 LInstruction* instr, |
| 191 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 191 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 192 | 192 |
| 193 void CallRuntime(Runtime::FunctionId id, | 193 void CallRuntime(Runtime::FunctionId id, |
| 194 int num_arguments, | 194 int num_arguments, |
| 195 LInstruction* instr) { | 195 LInstruction* instr) { |
| 196 const Runtime::Function* function = Runtime::FunctionForId(id); | 196 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 197 CallRuntime(function, num_arguments, instr); | 197 CallRuntime(function, num_arguments, instr); |
| 198 } | 198 } |
| 199 | 199 |
| 200 void CallRuntime(Runtime::FunctionId id, LInstruction* instr) { |
| 201 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 202 CallRuntime(function, function->nargs, instr); |
| 203 } |
| 204 |
| 200 void LoadContextFromDeferred(LOperand* context); | 205 void LoadContextFromDeferred(LOperand* context); |
| 201 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 206 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 202 int argc, | 207 int argc, |
| 203 LInstruction* instr, | 208 LInstruction* instr, |
| 204 LOperand* context); | 209 LOperand* context); |
| 205 | 210 |
| 206 // Generate a direct call to a known function. Expects the function | 211 // Generate a direct call to a known function. Expects the function |
| 207 // to be in a1. | 212 // to be in a1. |
| 208 void CallKnownFunction(Handle<JSFunction> function, | 213 void CallKnownFunction(Handle<JSFunction> function, |
| 209 int formal_parameter_count, int arity, | 214 int formal_parameter_count, int arity, |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 Label entry_; | 413 Label entry_; |
| 409 Label exit_; | 414 Label exit_; |
| 410 Label* external_exit_; | 415 Label* external_exit_; |
| 411 int instruction_index_; | 416 int instruction_index_; |
| 412 }; | 417 }; |
| 413 | 418 |
| 414 } // namespace internal | 419 } // namespace internal |
| 415 } // namespace v8 | 420 } // namespace v8 |
| 416 | 421 |
| 417 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 422 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
| OLD | NEW |