Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: src/arm/codegen-arm.h

Issue 509006: Remove complicated Math.sin and Math.cos optimizations that do not buy... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 void GenerateFastCharCodeAt(ZoneList<Expression*>* args); 353 void GenerateFastCharCodeAt(ZoneList<Expression*>* args);
354 354
355 // Fast support for object equality testing. 355 // Fast support for object equality testing.
356 void GenerateObjectEquals(ZoneList<Expression*>* args); 356 void GenerateObjectEquals(ZoneList<Expression*>* args);
357 357
358 void GenerateLog(ZoneList<Expression*>* args); 358 void GenerateLog(ZoneList<Expression*>* args);
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.
364 enum MathOp { SIN, COS };
365 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args);
366 inline void GenerateMathSin(ZoneList<Expression*>* args);
367 inline void GenerateMathCos(ZoneList<Expression*>* args);
368
369 // Fast support for StringAdd. 363 // Fast support for StringAdd.
370 void GenerateStringAdd(ZoneList<Expression*>* args); 364 void GenerateStringAdd(ZoneList<Expression*>* args);
371 365
372 // Simple condition analysis. 366 // Simple condition analysis.
373 enum ConditionAnalysis { 367 enum ConditionAnalysis {
374 ALWAYS_TRUE, 368 ALWAYS_TRUE,
375 ALWAYS_FALSE, 369 ALWAYS_FALSE,
376 DONT_KNOW 370 DONT_KNOW
377 }; 371 };
378 ConditionAnalysis AnalyzeCondition(Expression* cond); 372 ConditionAnalysis AnalyzeCondition(Expression* cond);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 constant_rhs_); 514 constant_rhs_);
521 } 515 }
522 } 516 }
523 #endif 517 #endif
524 }; 518 };
525 519
526 520
527 } } // namespace v8::internal 521 } } // namespace v8::internal
528 522
529 #endif // V8_ARM_CODEGEN_ARM_H_ 523 #endif // V8_ARM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698