| 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_MIPS64_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ |
| 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_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/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 LInstruction* instr, | 192 LInstruction* instr, |
| 193 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 193 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 194 | 194 |
| 195 void CallRuntime(Runtime::FunctionId id, | 195 void CallRuntime(Runtime::FunctionId id, |
| 196 int num_arguments, | 196 int num_arguments, |
| 197 LInstruction* instr) { | 197 LInstruction* instr) { |
| 198 const Runtime::Function* function = Runtime::FunctionForId(id); | 198 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 199 CallRuntime(function, num_arguments, instr); | 199 CallRuntime(function, num_arguments, instr); |
| 200 } | 200 } |
| 201 | 201 |
| 202 void CallRuntime(Runtime::FunctionId id, LInstruction* instr) { |
| 203 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 204 CallRuntime(function, function->nargs, instr); |
| 205 } |
| 206 |
| 202 void LoadContextFromDeferred(LOperand* context); | 207 void LoadContextFromDeferred(LOperand* context); |
| 203 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 208 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 204 int argc, | 209 int argc, |
| 205 LInstruction* instr, | 210 LInstruction* instr, |
| 206 LOperand* context); | 211 LOperand* context); |
| 207 | 212 |
| 208 // Generate a direct call to a known function. Expects the function | 213 // Generate a direct call to a known function. Expects the function |
| 209 // to be in a1. | 214 // to be in a1. |
| 210 void CallKnownFunction(Handle<JSFunction> function, | 215 void CallKnownFunction(Handle<JSFunction> function, |
| 211 int formal_parameter_count, int arity, | 216 int formal_parameter_count, int arity, |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 Label entry_; | 416 Label entry_; |
| 412 Label exit_; | 417 Label exit_; |
| 413 Label* external_exit_; | 418 Label* external_exit_; |
| 414 int instruction_index_; | 419 int instruction_index_; |
| 415 }; | 420 }; |
| 416 | 421 |
| 417 } // namespace internal | 422 } // namespace internal |
| 418 } // namespace v8 | 423 } // namespace v8 |
| 419 | 424 |
| 420 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ | 425 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ |
| OLD | NEW |