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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } | 218 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } |
219 | 219 |
220 // Code generation passes. Returns true if code generation should | 220 // Code generation passes. Returns true if code generation should |
221 // continue. | 221 // continue. |
222 bool GeneratePrologue(); | 222 bool GeneratePrologue(); |
223 bool GenerateBody(); | 223 bool GenerateBody(); |
224 bool GenerateDeferredCode(); | 224 bool GenerateDeferredCode(); |
225 bool GenerateJumpTable(); | 225 bool GenerateJumpTable(); |
226 bool GenerateSafepointTable(); | 226 bool GenerateSafepointTable(); |
227 | 227 |
| 228 // Generates the custom OSR entrypoint and sets the osr_pc_offset. |
| 229 void GenerateOsrPrologue(); |
| 230 |
228 enum SafepointMode { | 231 enum SafepointMode { |
229 RECORD_SIMPLE_SAFEPOINT, | 232 RECORD_SIMPLE_SAFEPOINT, |
230 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS | 233 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS |
231 }; | 234 }; |
232 | 235 |
233 void CallCode(Handle<Code> code, | 236 void CallCode(Handle<Code> code, |
234 RelocInfo::Mode mode, | 237 RelocInfo::Mode mode, |
235 LInstruction* instr); | 238 LInstruction* instr); |
236 | 239 |
237 void CallCodeGeneric(Handle<Code> code, | 240 void CallCodeGeneric(Handle<Code> code, |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 LCodeGen* codegen_; | 497 LCodeGen* codegen_; |
495 Label entry_; | 498 Label entry_; |
496 Label exit_; | 499 Label exit_; |
497 Label* external_exit_; | 500 Label* external_exit_; |
498 int instruction_index_; | 501 int instruction_index_; |
499 }; | 502 }; |
500 | 503 |
501 } } // namespace v8::internal | 504 } } // namespace v8::internal |
502 | 505 |
503 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 506 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |