| 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_ARM_LITHIUM_CODEGEN_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ |
| 6 #define V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ |
| 7 | 7 |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/crankshaft/arm/lithium-arm.h" | 9 #include "src/crankshaft/arm/lithium-arm.h" |
| 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 LInstruction* instr, | 196 LInstruction* instr, |
| 197 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 197 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 198 | 198 |
| 199 void CallRuntime(Runtime::FunctionId id, | 199 void CallRuntime(Runtime::FunctionId id, |
| 200 int num_arguments, | 200 int num_arguments, |
| 201 LInstruction* instr) { | 201 LInstruction* instr) { |
| 202 const Runtime::Function* function = Runtime::FunctionForId(id); | 202 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 203 CallRuntime(function, num_arguments, instr); | 203 CallRuntime(function, num_arguments, instr); |
| 204 } | 204 } |
| 205 | 205 |
| 206 void CallRuntime(Runtime::FunctionId id, LInstruction* instr) { |
| 207 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 208 CallRuntime(function, function->nargs, instr); |
| 209 } |
| 210 |
| 206 void LoadContextFromDeferred(LOperand* context); | 211 void LoadContextFromDeferred(LOperand* context); |
| 207 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 212 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 208 int argc, | 213 int argc, |
| 209 LInstruction* instr, | 214 LInstruction* instr, |
| 210 LOperand* context); | 215 LOperand* context); |
| 211 | 216 |
| 212 // Generate a direct call to a known function. Expects the function | 217 // Generate a direct call to a known function. Expects the function |
| 213 // to be in r1. | 218 // to be in r1. |
| 214 void CallKnownFunction(Handle<JSFunction> function, | 219 void CallKnownFunction(Handle<JSFunction> function, |
| 215 int formal_parameter_count, int arity, | 220 int formal_parameter_count, int arity, |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 Label entry_; | 379 Label entry_; |
| 375 Label exit_; | 380 Label exit_; |
| 376 Label* external_exit_; | 381 Label* external_exit_; |
| 377 int instruction_index_; | 382 int instruction_index_; |
| 378 }; | 383 }; |
| 379 | 384 |
| 380 } // namespace internal | 385 } // namespace internal |
| 381 } // namespace v8 | 386 } // namespace v8 |
| 382 | 387 |
| 383 #endif // V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ | 388 #endif // V8_CRANKSHAFT_ARM_LITHIUM_CODEGEN_ARM_H_ |
| OLD | NEW |