| 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_PPC_LITHIUM_CODEGEN_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ |
| 6 #define V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_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/ppc/lithium-gap-resolver-ppc.h" | 10 #include "src/crankshaft/ppc/lithium-gap-resolver-ppc.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 void CallRuntime(const Runtime::Function* function, int num_arguments, | 172 void CallRuntime(const Runtime::Function* function, int num_arguments, |
| 173 LInstruction* instr, | 173 LInstruction* instr, |
| 174 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 174 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 175 | 175 |
| 176 void CallRuntime(Runtime::FunctionId id, int num_arguments, | 176 void CallRuntime(Runtime::FunctionId id, int num_arguments, |
| 177 LInstruction* instr) { | 177 LInstruction* instr) { |
| 178 const Runtime::Function* function = Runtime::FunctionForId(id); | 178 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 179 CallRuntime(function, num_arguments, instr); | 179 CallRuntime(function, num_arguments, instr); |
| 180 } | 180 } |
| 181 | 181 |
| 182 void CallRuntime(Runtime::FunctionId id, LInstruction* instr) { |
| 183 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 184 CallRuntime(function, function->nargs, instr); |
| 185 } |
| 186 |
| 182 void LoadContextFromDeferred(LOperand* context); | 187 void LoadContextFromDeferred(LOperand* context); |
| 183 void CallRuntimeFromDeferred(Runtime::FunctionId id, int argc, | 188 void CallRuntimeFromDeferred(Runtime::FunctionId id, int argc, |
| 184 LInstruction* instr, LOperand* context); | 189 LInstruction* instr, LOperand* context); |
| 185 | 190 |
| 186 // Generate a direct call to a known function. Expects the function | 191 // Generate a direct call to a known function. Expects the function |
| 187 // to be in r4. | 192 // to be in r4. |
| 188 void CallKnownFunction(Handle<JSFunction> function, | 193 void CallKnownFunction(Handle<JSFunction> function, |
| 189 int formal_parameter_count, int arity, | 194 int formal_parameter_count, int arity, |
| 190 LInstruction* instr); | 195 LInstruction* instr); |
| 191 | 196 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 LCodeGen* codegen_; | 344 LCodeGen* codegen_; |
| 340 Label entry_; | 345 Label entry_; |
| 341 Label exit_; | 346 Label exit_; |
| 342 Label* external_exit_; | 347 Label* external_exit_; |
| 343 int instruction_index_; | 348 int instruction_index_; |
| 344 }; | 349 }; |
| 345 } // namespace internal | 350 } // namespace internal |
| 346 } // namespace v8 | 351 } // namespace v8 |
| 347 | 352 |
| 348 #endif // V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ | 353 #endif // V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ |
| OLD | NEW |