| 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 void GenerateSetValueOf(ZoneList<Expression*>* args); | 517 void GenerateSetValueOf(ZoneList<Expression*>* args); |
| 518 | 518 |
| 519 // Fast support for charCodeAt(n). | 519 // Fast support for charCodeAt(n). |
| 520 void GenerateFastCharCodeAt(ZoneList<Expression*>* args); | 520 void GenerateFastCharCodeAt(ZoneList<Expression*>* args); |
| 521 | 521 |
| 522 // Fast support for object equality testing. | 522 // Fast support for object equality testing. |
| 523 void GenerateObjectEquals(ZoneList<Expression*>* args); | 523 void GenerateObjectEquals(ZoneList<Expression*>* args); |
| 524 | 524 |
| 525 void GenerateLog(ZoneList<Expression*>* args); | 525 void GenerateLog(ZoneList<Expression*>* args); |
| 526 | 526 |
| 527 // Fast support for Math.random(). |
| 528 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); |
| 527 | 529 |
| 528 // Methods and constants for fast case switch statement support. | 530 // Methods and constants for fast case switch statement support. |
| 529 // | 531 // |
| 530 // Only allow fast-case switch if the range of labels is at most | 532 // Only allow fast-case switch if the range of labels is at most |
| 531 // this factor times the number of case labels. | 533 // this factor times the number of case labels. |
| 532 // Value is derived from comparing the size of code generated by the normal | 534 // Value is derived from comparing the size of code generated by the normal |
| 533 // switch code for Smi-labels to the size of a single pointer. If code | 535 // switch code for Smi-labels to the size of a single pointer. If code |
| 534 // quality increases this number should be decreased to match. | 536 // quality increases this number should be decreased to match. |
| 535 static const int kFastSwitchMaxOverheadFactor = 5; | 537 static const int kFastSwitchMaxOverheadFactor = 5; |
| 536 | 538 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 friend class Reference; | 629 friend class Reference; |
| 628 friend class Result; | 630 friend class Result; |
| 629 | 631 |
| 630 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 632 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 631 }; | 633 }; |
| 632 | 634 |
| 633 | 635 |
| 634 } } // namespace v8::internal | 636 } } // namespace v8::internal |
| 635 | 637 |
| 636 #endif // V8_X64_CODEGEN_X64_H_ | 638 #endif // V8_X64_CODEGEN_X64_H_ |
| OLD | NEW |