| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } | 184 void AddDeferredCode(LDeferredCode* code) { deferred_.Add(code, zone()); } |
| 185 | 185 |
| 186 // Code generation passes. Returns true if code generation should | 186 // Code generation passes. Returns true if code generation should |
| 187 // continue. | 187 // continue. |
| 188 bool GeneratePrologue(); | 188 bool GeneratePrologue(); |
| 189 bool GenerateBody(); | 189 bool GenerateBody(); |
| 190 bool GenerateDeferredCode(); | 190 bool GenerateDeferredCode(); |
| 191 bool GenerateJumpTable(); | 191 bool GenerateJumpTable(); |
| 192 bool GenerateSafepointTable(); | 192 bool GenerateSafepointTable(); |
| 193 | 193 |
| 194 // Generates the custom OSR entrypoint and sets the osr_pc_offset. |
| 195 void GenerateOsrPrologue(); |
| 196 |
| 194 enum SafepointMode { | 197 enum SafepointMode { |
| 195 RECORD_SIMPLE_SAFEPOINT, | 198 RECORD_SIMPLE_SAFEPOINT, |
| 196 RECORD_SAFEPOINT_WITH_REGISTERS | 199 RECORD_SAFEPOINT_WITH_REGISTERS |
| 197 }; | 200 }; |
| 198 | 201 |
| 199 void CallCodeGeneric(Handle<Code> code, | 202 void CallCodeGeneric(Handle<Code> code, |
| 200 RelocInfo::Mode mode, | 203 RelocInfo::Mode mode, |
| 201 LInstruction* instr, | 204 LInstruction* instr, |
| 202 SafepointMode safepoint_mode, | 205 SafepointMode safepoint_mode, |
| 203 int argc); | 206 int argc); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 LCodeGen* codegen_; | 440 LCodeGen* codegen_; |
| 438 Label entry_; | 441 Label entry_; |
| 439 Label exit_; | 442 Label exit_; |
| 440 Label* external_exit_; | 443 Label* external_exit_; |
| 441 int instruction_index_; | 444 int instruction_index_; |
| 442 }; | 445 }; |
| 443 | 446 |
| 444 } } // namespace v8::internal | 447 } } // namespace v8::internal |
| 445 | 448 |
| 446 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 449 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |