| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 // Fast support for charCodeAt(n). | 511 // Fast support for charCodeAt(n). |
| 512 void GenerateFastCharCodeAt(ZoneList<Expression*>* args); | 512 void GenerateFastCharCodeAt(ZoneList<Expression*>* args); |
| 513 | 513 |
| 514 // Fast support for object equality testing. | 514 // Fast support for object equality testing. |
| 515 void GenerateObjectEquals(ZoneList<Expression*>* args); | 515 void GenerateObjectEquals(ZoneList<Expression*>* args); |
| 516 | 516 |
| 517 void GenerateLog(ZoneList<Expression*>* args); | 517 void GenerateLog(ZoneList<Expression*>* args); |
| 518 | 518 |
| 519 void GenerateGetFramePointer(ZoneList<Expression*>* args); | 519 void GenerateGetFramePointer(ZoneList<Expression*>* args); |
| 520 | 520 |
| 521 // Fast support for Math.random(). |
| 522 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); |
| 523 |
| 521 // Methods and constants for fast case switch statement support. | 524 // Methods and constants for fast case switch statement support. |
| 522 // | 525 // |
| 523 // Only allow fast-case switch if the range of labels is at most | 526 // Only allow fast-case switch if the range of labels is at most |
| 524 // this factor times the number of case labels. | 527 // this factor times the number of case labels. |
| 525 // Value is derived from comparing the size of code generated by the normal | 528 // Value is derived from comparing the size of code generated by the normal |
| 526 // switch code for Smi-labels to the size of a single pointer. If code | 529 // switch code for Smi-labels to the size of a single pointer. If code |
| 527 // quality increases this number should be decreased to match. | 530 // quality increases this number should be decreased to match. |
| 528 static const int kFastSwitchMaxOverheadFactor = 5; | 531 static const int kFastSwitchMaxOverheadFactor = 5; |
| 529 | 532 |
| 530 // Minimal number of switch cases required before we allow jump-table | 533 // Minimal number of switch cases required before we allow jump-table |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 | 625 |
| 623 friend class CodeGeneratorPatcher; // Used in test-log-ia32.cc | 626 friend class CodeGeneratorPatcher; // Used in test-log-ia32.cc |
| 624 | 627 |
| 625 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 628 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 626 }; | 629 }; |
| 627 | 630 |
| 628 | 631 |
| 629 } } // namespace v8::internal | 632 } } // namespace v8::internal |
| 630 | 633 |
| 631 #endif // V8_IA32_CODEGEN_IA32_H_ | 634 #endif // V8_IA32_CODEGEN_IA32_H_ |
| OLD | NEW |