| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 void GenerateSetValueOf(ZoneList<Expression*>* args); | 527 void GenerateSetValueOf(ZoneList<Expression*>* args); |
| 528 | 528 |
| 529 // Fast support for charCodeAt(n). | 529 // Fast support for charCodeAt(n). |
| 530 void GenerateFastCharCodeAt(ZoneList<Expression*>* args); | 530 void GenerateFastCharCodeAt(ZoneList<Expression*>* args); |
| 531 | 531 |
| 532 // Fast support for object equality testing. | 532 // Fast support for object equality testing. |
| 533 void GenerateObjectEquals(ZoneList<Expression*>* args); | 533 void GenerateObjectEquals(ZoneList<Expression*>* args); |
| 534 | 534 |
| 535 void GenerateLog(ZoneList<Expression*>* args); | 535 void GenerateLog(ZoneList<Expression*>* args); |
| 536 | 536 |
| 537 void GenerateGetFramePointer(ZoneList<Expression*>* args); |
| 538 |
| 537 // Fast support for Math.random(). | 539 // Fast support for Math.random(). |
| 538 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); | 540 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); |
| 539 | 541 |
| 540 // Fast support for Math.sin and Math.cos. | 542 // Fast support for Math.sin and Math.cos. |
| 541 enum MathOp { SIN, COS }; | 543 enum MathOp { SIN, COS }; |
| 542 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); | 544 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); |
| 543 inline void GenerateMathSin(ZoneList<Expression*>* args); | 545 inline void GenerateMathSin(ZoneList<Expression*>* args); |
| 544 inline void GenerateMathCos(ZoneList<Expression*>* args); | 546 inline void GenerateMathCos(ZoneList<Expression*>* args); |
| 545 | 547 |
| 546 // Methods used to indicate which source code is generated for. Source | 548 // Methods used to indicate which source code is generated for. Source |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 // in a spilled state. | 588 // in a spilled state. |
| 587 bool in_spilled_code_; | 589 bool in_spilled_code_; |
| 588 | 590 |
| 589 static InlineRuntimeLUT kInlineRuntimeLUT[]; | 591 static InlineRuntimeLUT kInlineRuntimeLUT[]; |
| 590 | 592 |
| 591 friend class VirtualFrame; | 593 friend class VirtualFrame; |
| 592 friend class JumpTarget; | 594 friend class JumpTarget; |
| 593 friend class Reference; | 595 friend class Reference; |
| 594 friend class Result; | 596 friend class Result; |
| 595 | 597 |
| 598 friend class CodeGeneratorPatcher; // Used in test-log-stack-tracer.cc |
| 599 |
| 596 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 600 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 597 }; | 601 }; |
| 598 | 602 |
| 599 | 603 |
| 600 } } // namespace v8::internal | 604 } } // namespace v8::internal |
| 601 | 605 |
| 602 #endif // V8_X64_CODEGEN_X64_H_ | 606 #endif // V8_X64_CODEGEN_X64_H_ |
| OLD | NEW |