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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 | 359 |
360 // Fast support for Math.random(). | 360 // Fast support for Math.random(). |
361 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); | 361 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); |
362 | 362 |
363 // Fast support for Math.sin and Math.cos. | 363 // Fast support for Math.sin and Math.cos. |
364 enum MathOp { SIN, COS }; | 364 enum MathOp { SIN, COS }; |
365 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); | 365 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); |
366 inline void GenerateMathSin(ZoneList<Expression*>* args); | 366 inline void GenerateMathSin(ZoneList<Expression*>* args); |
367 inline void GenerateMathCos(ZoneList<Expression*>* args); | 367 inline void GenerateMathCos(ZoneList<Expression*>* args); |
368 | 368 |
| 369 // Fast support for StringAdd. |
| 370 void GenerateStringAdd(ZoneList<Expression*>* args); |
| 371 |
369 // Simple condition analysis. | 372 // Simple condition analysis. |
370 enum ConditionAnalysis { | 373 enum ConditionAnalysis { |
371 ALWAYS_TRUE, | 374 ALWAYS_TRUE, |
372 ALWAYS_FALSE, | 375 ALWAYS_FALSE, |
373 DONT_KNOW | 376 DONT_KNOW |
374 }; | 377 }; |
375 ConditionAnalysis AnalyzeCondition(Expression* cond); | 378 ConditionAnalysis AnalyzeCondition(Expression* cond); |
376 | 379 |
377 // Methods used to indicate which source code is generated for. Source | 380 // Methods used to indicate which source code is generated for. Source |
378 // positions are collected by the assembler and emitted with the relocation | 381 // positions are collected by the assembler and emitted with the relocation |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 constant_rhs_); | 533 constant_rhs_); |
531 } | 534 } |
532 } | 535 } |
533 #endif | 536 #endif |
534 }; | 537 }; |
535 | 538 |
536 | 539 |
537 } } // namespace v8::internal | 540 } } // namespace v8::internal |
538 | 541 |
539 #endif // V8_ARM_CODEGEN_ARM_H_ | 542 #endif // V8_ARM_CODEGEN_ARM_H_ |
OLD | NEW |