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

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

Issue 660072: Added fast support for Math.pow. This simply calculates the result using the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 void GenerateIsObject(ZoneList<Expression*>* args); 238 void GenerateIsObject(ZoneList<Expression*>* args);
239 void GenerateIsFunction(ZoneList<Expression*>* args); 239 void GenerateIsFunction(ZoneList<Expression*>* args);
240 void GenerateIsUndetectableObject(ZoneList<Expression*>* args); 240 void GenerateIsUndetectableObject(ZoneList<Expression*>* args);
241 void GenerateStringAdd(ZoneList<Expression*>* args); 241 void GenerateStringAdd(ZoneList<Expression*>* args);
242 void GenerateSubString(ZoneList<Expression*>* args); 242 void GenerateSubString(ZoneList<Expression*>* args);
243 void GenerateStringCompare(ZoneList<Expression*>* args); 243 void GenerateStringCompare(ZoneList<Expression*>* args);
244 void GenerateRegExpExec(ZoneList<Expression*>* args); 244 void GenerateRegExpExec(ZoneList<Expression*>* args);
245 void GenerateNumberToString(ZoneList<Expression*>* args); 245 void GenerateNumberToString(ZoneList<Expression*>* args);
246 246
247 // Fast support for Math.pow().
248 void GeneratePow(ZoneList<Expression*>* args);
247 249
248 // Fast support for Math.sin and Math.cos. 250 // Fast support for Math.sin and Math.cos.
249 inline void GenerateMathSin(ZoneList<Expression*>* args); 251 inline void GenerateMathSin(ZoneList<Expression*>* args);
250 inline void GenerateMathCos(ZoneList<Expression*>* args); 252 inline void GenerateMathCos(ZoneList<Expression*>* args);
251 253
252 // Simple condition analysis. 254 // Simple condition analysis.
253 enum ConditionAnalysis { 255 enum ConditionAnalysis {
254 ALWAYS_TRUE, 256 ALWAYS_TRUE,
255 ALWAYS_FALSE, 257 ALWAYS_FALSE,
256 DONT_KNOW 258 DONT_KNOW
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 friend class FastCodeGenerator; 306 friend class FastCodeGenerator;
305 friend class FullCodeGenSyntaxChecker; 307 friend class FullCodeGenSyntaxChecker;
306 308
307 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 309 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
308 }; 310 };
309 311
310 312
311 } } // namespace v8::internal 313 } } // namespace v8::internal
312 314
313 #endif // V8_MIPS_CODEGEN_MIPS_H_ 315 #endif // V8_MIPS_CODEGEN_MIPS_H_
OLDNEW
« src/ia32/codegen-ia32.cc ('K') | « src/math.js ('k') | src/mips/codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698