| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 LInstruction* instr) { | 199 LInstruction* instr) { |
| 200 const Runtime::Function* function = Runtime::FunctionForId(id); | 200 const Runtime::Function* function = Runtime::FunctionForId(id); |
| 201 CallRuntime(function, argc, instr); | 201 CallRuntime(function, argc, instr); |
| 202 } | 202 } |
| 203 | 203 |
| 204 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 204 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
| 205 int argc, | 205 int argc, |
| 206 LInstruction* instr, | 206 LInstruction* instr, |
| 207 LOperand* context); | 207 LOperand* context); |
| 208 | 208 |
| 209 enum EDIState { |
| 210 EDI_UNINITIALIZED, |
| 211 EDI_CONTAINS_TARGET |
| 212 }; |
| 213 |
| 209 // Generate a direct call to a known function. Expects the function | 214 // Generate a direct call to a known function. Expects the function |
| 210 // to be in edi. | 215 // to be in edi. |
| 211 void CallKnownFunction(Handle<JSFunction> function, | 216 void CallKnownFunction(Handle<JSFunction> function, |
| 212 int arity, | 217 int arity, |
| 213 LInstruction* instr, | 218 LInstruction* instr, |
| 214 CallKind call_kind); | 219 CallKind call_kind, |
| 220 EDIState edi_state); |
| 215 | 221 |
| 216 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 222 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
| 217 SafepointMode safepoint_mode); | 223 SafepointMode safepoint_mode); |
| 218 | 224 |
| 219 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 225 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
| 220 Safepoint::DeoptMode mode); | 226 Safepoint::DeoptMode mode); |
| 221 void DeoptimizeIf(Condition cc, LEnvironment* environment); | 227 void DeoptimizeIf(Condition cc, LEnvironment* environment); |
| 222 | 228 |
| 223 void AddToTranslation(Translation* translation, | 229 void AddToTranslation(Translation* translation, |
| 224 LOperand* op, | 230 LOperand* op, |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 LCodeGen* codegen_; | 400 LCodeGen* codegen_; |
| 395 Label entry_; | 401 Label entry_; |
| 396 Label exit_; | 402 Label exit_; |
| 397 Label* external_exit_; | 403 Label* external_exit_; |
| 398 int instruction_index_; | 404 int instruction_index_; |
| 399 }; | 405 }; |
| 400 | 406 |
| 401 } } // namespace v8::internal | 407 } } // namespace v8::internal |
| 402 | 408 |
| 403 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 409 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |