| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 LInstruction* instr, | 170 LInstruction* instr, |
| 171 SaveFPRegsMode save_doubles = kDontSaveFPRegs); | 171 SaveFPRegsMode save_doubles = kDontSaveFPRegs); |
| 172 | 172 |
| 173 void CallRuntime(Runtime::FunctionId id, | 173 void CallRuntime(Runtime::FunctionId id, |
| 174 int argc, | 174 int argc, |
| 175 LInstruction* instr) { | 175 LInstruction* instr) { |
| 176 const Runtime::Function* function = Runtime::FunctionForId(id); | 176 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 177 CallRuntime(function, argc, instr); | 177 CallRuntime(function, argc, instr); |
| 178 } | 178 } |
| 179 | 179 |
| 180 void CallRuntime(Runtime::FunctionId id, LInstruction* instr) { |
| 181 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 182 CallRuntime(function, function->nargs, instr); |
| 183 } |
| 184 |
| 180 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 185 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 181 int argc, | 186 int argc, |
| 182 LInstruction* instr, | 187 LInstruction* instr, |
| 183 LOperand* context); | 188 LOperand* context); |
| 184 | 189 |
| 185 void LoadContextFromDeferred(LOperand* context); | 190 void LoadContextFromDeferred(LOperand* context); |
| 186 | 191 |
| 187 // Generate a direct call to a known function. Expects the function | 192 // Generate a direct call to a known function. Expects the function |
| 188 // to be in edi. | 193 // to be in edi. |
| 189 void CallKnownFunction(Handle<JSFunction> function, | 194 void CallKnownFunction(Handle<JSFunction> function, |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 Label exit_; | 384 Label exit_; |
| 380 Label* external_exit_; | 385 Label* external_exit_; |
| 381 Label done_; | 386 Label done_; |
| 382 int instruction_index_; | 387 int instruction_index_; |
| 383 }; | 388 }; |
| 384 | 389 |
| 385 } // namespace internal | 390 } // namespace internal |
| 386 } // namespace v8 | 391 } // namespace v8 |
| 387 | 392 |
| 388 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ | 393 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |