| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 int num_arguments, | 189 int num_arguments, |
| 190 LInstruction* instr) { | 190 LInstruction* instr) { |
| 191 const Runtime::Function* function = Runtime::FunctionForId(id); | 191 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 192 CallRuntime(function, num_arguments, instr); | 192 CallRuntime(function, num_arguments, instr); |
| 193 } | 193 } |
| 194 | 194 |
| 195 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 195 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 196 int argc, | 196 int argc, |
| 197 LInstruction* instr); | 197 LInstruction* instr); |
| 198 | 198 |
| 199 enum RDIState { |
| 200 RDI_UNINITIALIZED, |
| 201 RDI_CONTAINS_TARGET |
| 202 }; |
| 203 |
| 199 // Generate a direct call to a known function. Expects the function | 204 // Generate a direct call to a known function. Expects the function |
| 200 // to be in rdi. | 205 // to be in rdi. |
| 201 void CallKnownFunction(Handle<JSFunction> function, | 206 void CallKnownFunction(Handle<JSFunction> function, |
| 202 int arity, | 207 int arity, |
| 203 LInstruction* instr, | 208 LInstruction* instr, |
| 204 CallKind call_kind); | 209 CallKind call_kind, |
| 210 RDIState rdi_state); |
| 205 | 211 |
| 206 | 212 |
| 207 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 213 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
| 208 SafepointMode safepoint_mode, | 214 SafepointMode safepoint_mode, |
| 209 int argc); | 215 int argc); |
| 210 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 216 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
| 211 Safepoint::DeoptMode mode); | 217 Safepoint::DeoptMode mode); |
| 212 void DeoptimizeIf(Condition cc, LEnvironment* environment); | 218 void DeoptimizeIf(Condition cc, LEnvironment* environment); |
| 213 | 219 |
| 214 void AddToTranslation(Translation* translation, | 220 void AddToTranslation(Translation* translation, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 LCodeGen* codegen_; | 397 LCodeGen* codegen_; |
| 392 Label entry_; | 398 Label entry_; |
| 393 Label exit_; | 399 Label exit_; |
| 394 Label* external_exit_; | 400 Label* external_exit_; |
| 395 int instruction_index_; | 401 int instruction_index_; |
| 396 }; | 402 }; |
| 397 | 403 |
| 398 } } // namespace v8::internal | 404 } } // namespace v8::internal |
| 399 | 405 |
| 400 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 406 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |