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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 int num_arguments, | 205 int num_arguments, |
206 LInstruction* instr) { | 206 LInstruction* instr) { |
207 const Runtime::Function* function = Runtime::FunctionForId(id); | 207 const Runtime::Function* function = Runtime::FunctionForId(id); |
208 CallRuntime(function, num_arguments, instr); | 208 CallRuntime(function, num_arguments, instr); |
209 } | 209 } |
210 | 210 |
211 void CallRuntimeFromDeferred(Runtime::FunctionId id, | 211 void CallRuntimeFromDeferred(Runtime::FunctionId id, |
212 int argc, | 212 int argc, |
213 LInstruction* instr); | 213 LInstruction* instr); |
214 | 214 |
| 215 enum A1State { |
| 216 A1_UNINITIALIZED, |
| 217 A1_CONTAINS_TARGET |
| 218 }; |
| 219 |
215 // Generate a direct call to a known function. Expects the function | 220 // Generate a direct call to a known function. Expects the function |
216 // to be in a1. | 221 // to be in a1. |
217 void CallKnownFunction(Handle<JSFunction> function, | 222 void CallKnownFunction(Handle<JSFunction> function, |
218 int arity, | 223 int arity, |
219 LInstruction* instr, | 224 LInstruction* instr, |
220 CallKind call_kind); | 225 CallKind call_kind, |
| 226 A1State a1_state); |
221 | 227 |
222 void LoadHeapObject(Register result, Handle<HeapObject> object); | 228 void LoadHeapObject(Register result, Handle<HeapObject> object); |
223 | 229 |
224 void RecordSafepointWithLazyDeopt(LInstruction* instr, | 230 void RecordSafepointWithLazyDeopt(LInstruction* instr, |
225 SafepointMode safepoint_mode); | 231 SafepointMode safepoint_mode); |
226 | 232 |
227 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, | 233 void RegisterEnvironmentForDeoptimization(LEnvironment* environment, |
228 Safepoint::DeoptMode mode); | 234 Safepoint::DeoptMode mode); |
229 void DeoptimizeIf(Condition cc, | 235 void DeoptimizeIf(Condition cc, |
230 LEnvironment* environment, | 236 LEnvironment* environment, |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 LCodeGen* codegen_; | 448 LCodeGen* codegen_; |
443 Label entry_; | 449 Label entry_; |
444 Label exit_; | 450 Label exit_; |
445 Label* external_exit_; | 451 Label* external_exit_; |
446 int instruction_index_; | 452 int instruction_index_; |
447 }; | 453 }; |
448 | 454 |
449 } } // namespace v8::internal | 455 } } // namespace v8::internal |
450 | 456 |
451 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ | 457 #endif // V8_MIPS_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |