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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } | 185 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } |
186 | 186 |
187 // Code generation passes. Returns true if code generation should | 187 // Code generation passes. Returns true if code generation should |
188 // continue. | 188 // continue. |
189 bool GeneratePrologue(); | 189 bool GeneratePrologue(); |
190 bool GenerateBody(); | 190 bool GenerateBody(); |
191 bool GenerateDeferredCode(); | 191 bool GenerateDeferredCode(); |
192 bool GenerateJumpTable(); | 192 bool GenerateJumpTable(); |
193 bool GenerateSafepointTable(); | 193 bool GenerateSafepointTable(); |
194 | 194 |
| 195 void GenerateOsrPrologue(); |
| 196 |
195 enum SafepointMode { | 197 enum SafepointMode { |
196 RECORD_SIMPLE_SAFEPOINT, | 198 RECORD_SIMPLE_SAFEPOINT, |
197 RECORD_SAFEPOINT_WITH_REGISTERS | 199 RECORD_SAFEPOINT_WITH_REGISTERS |
198 }; | 200 }; |
199 | 201 |
200 void CallCodeGeneric(Handle<Code> code, | 202 void CallCodeGeneric(Handle<Code> code, |
201 RelocInfo::Mode mode, | 203 RelocInfo::Mode mode, |
202 LInstruction* instr, | 204 LInstruction* instr, |
203 SafepointMode safepoint_mode, | 205 SafepointMode safepoint_mode, |
204 int argc); | 206 int argc); |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 LCodeGen* codegen_; | 430 LCodeGen* codegen_; |
429 Label entry_; | 431 Label entry_; |
430 Label exit_; | 432 Label exit_; |
431 Label* external_exit_; | 433 Label* external_exit_; |
432 int instruction_index_; | 434 int instruction_index_; |
433 }; | 435 }; |
434 | 436 |
435 } } // namespace v8::internal | 437 } } // namespace v8::internal |
436 | 438 |
437 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 439 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |