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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } | 226 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } |
227 | 227 |
228 // Code generation passes. Returns true if code generation should | 228 // Code generation passes. Returns true if code generation should |
229 // continue. | 229 // continue. |
230 bool GeneratePrologue(); | 230 bool GeneratePrologue(); |
231 bool GenerateBody(); | 231 bool GenerateBody(); |
232 bool GenerateDeferredCode(); | 232 bool GenerateDeferredCode(); |
233 bool GenerateJumpTable(); | 233 bool GenerateJumpTable(); |
234 bool GenerateSafepointTable(); | 234 bool GenerateSafepointTable(); |
235 | 235 |
| 236 // Generates the custom OSR entrypoint and sets the osr_pc_offset. |
| 237 void GenerateOsrPrologue(); |
| 238 |
236 enum SafepointMode { | 239 enum SafepointMode { |
237 RECORD_SIMPLE_SAFEPOINT, | 240 RECORD_SIMPLE_SAFEPOINT, |
238 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS | 241 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS |
239 }; | 242 }; |
240 | 243 |
241 void CallCode(Handle<Code> code, | 244 void CallCode(Handle<Code> code, |
242 RelocInfo::Mode mode, | 245 RelocInfo::Mode mode, |
243 LInstruction* instr); | 246 LInstruction* instr); |
244 | 247 |
245 void CallCodeGeneric(Handle<Code> code, | 248 void CallCodeGeneric(Handle<Code> code, |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 Label exit_; | 565 Label exit_; |
563 Label* external_exit_; | 566 Label* external_exit_; |
564 Label done_; | 567 Label done_; |
565 int instruction_index_; | 568 int instruction_index_; |
566 LCodeGen::X87Stack x87_stack_; | 569 LCodeGen::X87Stack x87_stack_; |
567 }; | 570 }; |
568 | 571 |
569 } } // namespace v8::internal | 572 } } // namespace v8::internal |
570 | 573 |
571 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ | 574 #endif // V8_IA32_LITHIUM_CODEGEN_IA32_H_ |
OLD | NEW |