OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 // Support for converting LOperands to assembler types. | 71 // Support for converting LOperands to assembler types. |
72 Register ToRegister(LOperand* op) const; | 72 Register ToRegister(LOperand* op) const; |
73 XMMRegister ToDoubleRegister(LOperand* op) const; | 73 XMMRegister ToDoubleRegister(LOperand* op) const; |
74 bool IsInteger32Constant(LConstantOperand* op) const; | 74 bool IsInteger32Constant(LConstantOperand* op) const; |
75 int ToInteger32(LConstantOperand* op) const; | 75 int ToInteger32(LConstantOperand* op) const; |
76 bool IsTaggedConstant(LConstantOperand* op) const; | 76 bool IsTaggedConstant(LConstantOperand* op) const; |
77 Handle<Object> ToHandle(LConstantOperand* op) const; | 77 Handle<Object> ToHandle(LConstantOperand* op) const; |
78 Operand ToOperand(LOperand* op) const; | 78 Operand ToOperand(LOperand* op) const; |
79 | 79 |
80 | |
81 // Try to generate code for the entire chunk, but it may fail if the | 80 // Try to generate code for the entire chunk, but it may fail if the |
82 // chunk contains constructs we cannot handle. Returns true if the | 81 // chunk contains constructs we cannot handle. Returns true if the |
83 // code generation attempt succeeded. | 82 // code generation attempt succeeded. |
84 bool GenerateCode(); | 83 bool GenerateCode(); |
85 | 84 |
86 // Finish the code by setting stack height, safepoint, and bailout | 85 // Finish the code by setting stack height, safepoint, and bailout |
87 // information on it. | 86 // information on it. |
88 void FinishCode(Handle<Code> code); | 87 void FinishCode(Handle<Code> code); |
89 | 88 |
90 // Deferred code support. | 89 // Deferred code support. |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 private: | 299 private: |
301 LCodeGen* codegen_; | 300 LCodeGen* codegen_; |
302 Label entry_; | 301 Label entry_; |
303 Label exit_; | 302 Label exit_; |
304 Label* external_exit_; | 303 Label* external_exit_; |
305 }; | 304 }; |
306 | 305 |
307 } } // namespace v8::internal | 306 } } // namespace v8::internal |
308 | 307 |
309 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ | 308 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ |
OLD | NEW |