Chromium Code Reviews| 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 369 | 369 |
| 370 // Fast support for Math.random(). | 370 // Fast support for Math.random(). |
| 371 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); | 371 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); |
| 372 | 372 |
| 373 // Fast support for Math.sin and Math.cos. | 373 // Fast support for Math.sin and Math.cos. |
| 374 enum MathOp { SIN, COS }; | 374 enum MathOp { SIN, COS }; |
| 375 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); | 375 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); |
| 376 inline void GenerateMathSin(ZoneList<Expression*>* args); | 376 inline void GenerateMathSin(ZoneList<Expression*>* args); |
| 377 inline void GenerateMathCos(ZoneList<Expression*>* args); | 377 inline void GenerateMathCos(ZoneList<Expression*>* args); |
| 378 | 378 |
| 379 // Potentially alternative support for modulo operation on numbers. | |
|
William Hesse
2009/10/20 14:50:51
I don't understand this comment. What is it, when
Lasse Reichstein
2009/10/22 11:22:53
It generates code to compute x % y. It's "potentia
| |
| 380 void GenerateNumberMod(ZoneList<Expression*>* args); | |
| 381 | |
| 379 // Simple condition analysis. | 382 // Simple condition analysis. |
| 380 enum ConditionAnalysis { | 383 enum ConditionAnalysis { |
| 381 ALWAYS_TRUE, | 384 ALWAYS_TRUE, |
| 382 ALWAYS_FALSE, | 385 ALWAYS_FALSE, |
| 383 DONT_KNOW | 386 DONT_KNOW |
| 384 }; | 387 }; |
| 385 ConditionAnalysis AnalyzeCondition(Expression* cond); | 388 ConditionAnalysis AnalyzeCondition(Expression* cond); |
| 386 | 389 |
| 387 // Methods used to indicate which source code is generated for. Source | 390 // Methods used to indicate which source code is generated for. Source |
| 388 // positions are collected by the assembler and emitted with the relocation | 391 // positions are collected by the assembler and emitted with the relocation |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 516 constant_rhs_); | 519 constant_rhs_); |
| 517 } | 520 } |
| 518 } | 521 } |
| 519 #endif | 522 #endif |
| 520 }; | 523 }; |
| 521 | 524 |
| 522 | 525 |
| 523 } } // namespace v8::internal | 526 } } // namespace v8::internal |
| 524 | 527 |
| 525 #endif // V8_ARM_CODEGEN_ARM_H_ | 528 #endif // V8_ARM_CODEGEN_ARM_H_ |
| OLD | NEW |