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

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

Issue 300004: X64 Win64: Reimplement fmod so that it works. (Closed)
Patch Set: And it lints. Created 11 years, 2 months 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
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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 void GenerateGetFramePointer(ZoneList<Expression*>* args); 551 void GenerateGetFramePointer(ZoneList<Expression*>* args);
552 552
553 // Fast support for Math.random(). 553 // Fast support for Math.random().
554 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); 554 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args);
555 555
556 // Fast support for Math.sin and Math.cos. 556 // Fast support for Math.sin and Math.cos.
557 enum MathOp { SIN, COS }; 557 enum MathOp { SIN, COS };
558 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); 558 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args);
559 inline void GenerateMathSin(ZoneList<Expression*>* args); 559 inline void GenerateMathSin(ZoneList<Expression*>* args);
560 inline void GenerateMathCos(ZoneList<Expression*>* args); 560 inline void GenerateMathCos(ZoneList<Expression*>* args);
561 void GenerateNumberMod(ZoneList<Expression*>* args);
561 562
562 // Simple condition analysis. 563 // Simple condition analysis.
563 enum ConditionAnalysis { 564 enum ConditionAnalysis {
564 ALWAYS_TRUE, 565 ALWAYS_TRUE,
565 ALWAYS_FALSE, 566 ALWAYS_FALSE,
566 DONT_KNOW 567 DONT_KNOW
567 }; 568 };
568 ConditionAnalysis AnalyzeCondition(Expression* cond); 569 ConditionAnalysis AnalyzeCondition(Expression* cond);
569 570
570 // Methods used to indicate which source code is generated for. Source 571 // Methods used to indicate which source code is generated for. Source
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 void SetArgsReversed() { args_reversed_ = true; } 711 void SetArgsReversed() { args_reversed_ = true; }
711 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; } 712 bool HasSmiCodeInStub() { return (flags_ & NO_SMI_CODE_IN_STUB) == 0; }
712 bool HasArgumentsInRegisters() { return args_in_registers_; } 713 bool HasArgumentsInRegisters() { return args_in_registers_; }
713 bool HasArgumentsReversed() { return args_reversed_; } 714 bool HasArgumentsReversed() { return args_reversed_; }
714 }; 715 };
715 716
716 717
717 } } // namespace v8::internal 718 } } // namespace v8::internal
718 719
719 #endif // V8_IA32_CODEGEN_IA32_H_ 720 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698