| 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 // Generates the custom OSR entrypoint and sets the osr_pc_offset. |
| 196 void GenerateOsrPrologue(); |
| 197 |
| 195 enum SafepointMode { | 198 enum SafepointMode { |
| 196 RECORD_SIMPLE_SAFEPOINT, | 199 RECORD_SIMPLE_SAFEPOINT, |
| 197 RECORD_SAFEPOINT_WITH_REGISTERS | 200 RECORD_SAFEPOINT_WITH_REGISTERS |
| 198 }; | 201 }; |
| 199 | 202 |
| 200 void CallCodeGeneric(Handle<Code> code, | 203 void CallCodeGeneric(Handle<Code> code, |
| 201 RelocInfo::Mode mode, | 204 RelocInfo::Mode mode, |
| 202 LInstruction* instr, | 205 LInstruction* instr, |
| 203 SafepointMode safepoint_mode, | 206 SafepointMode safepoint_mode, |
| 204 int argc); | 207 int argc); |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 LCodeGen* codegen_; | 431 LCodeGen* codegen_; |
| 429 Label entry_; | 432 Label entry_; |
| 430 Label exit_; | 433 Label exit_; |
| 431 Label* external_exit_; | 434 Label* external_exit_; |
| 432 int instruction_index_; | 435 int instruction_index_; |
| 433 }; | 436 }; |
| 434 | 437 |
| 435 } } // namespace v8::internal | 438 } } // namespace v8::internal |
| 436 | 439 |
| 437 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 440 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |