| OLD | NEW |
| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); | 203 Handle<Code> ComputeCallInitialize(int argc, InLoopFlag in_loop); |
| 204 | 204 |
| 205 // Declare global variables and functions in the given array of | 205 // Declare global variables and functions in the given array of |
| 206 // name/value pairs. | 206 // name/value pairs. |
| 207 void DeclareGlobals(Handle<FixedArray> pairs); | 207 void DeclareGlobals(Handle<FixedArray> pairs); |
| 208 | 208 |
| 209 // Support for type checks. | 209 // Support for type checks. |
| 210 void GenerateIsSmi(ZoneList<Expression*>* args); | 210 void GenerateIsSmi(ZoneList<Expression*>* args); |
| 211 void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args); | 211 void GenerateIsNonNegativeSmi(ZoneList<Expression*>* args); |
| 212 void GenerateIsArray(ZoneList<Expression*>* args); | 212 void GenerateIsArray(ZoneList<Expression*>* args); |
| 213 void GenerateIsRegExp(ZoneList<Expression*>* args); |
| 213 | 214 |
| 214 // Support for construct call checks. | 215 // Support for construct call checks. |
| 215 void GenerateIsConstructCall(ZoneList<Expression*>* args); | 216 void GenerateIsConstructCall(ZoneList<Expression*>* args); |
| 216 | 217 |
| 217 // Support for arguments.length and arguments[?]. | 218 // Support for arguments.length and arguments[?]. |
| 218 void GenerateArgumentsLength(ZoneList<Expression*>* args); | 219 void GenerateArgumentsLength(ZoneList<Expression*>* args); |
| 219 void GenerateArgumentsAccess(ZoneList<Expression*>* args); | 220 void GenerateArgumentsAccess(ZoneList<Expression*>* args); |
| 220 | 221 |
| 221 // Support for accessing the class and value fields of an object. | 222 // Support for accessing the class and value fields of an object. |
| 222 void GenerateClassOf(ZoneList<Expression*>* args); | 223 void GenerateClassOf(ZoneList<Expression*>* args); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 234 // Fast support for Math.random(). | 235 // Fast support for Math.random(). |
| 235 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); | 236 void GenerateRandomPositiveSmi(ZoneList<Expression*>* args); |
| 236 | 237 |
| 237 void GenerateIsObject(ZoneList<Expression*>* args); | 238 void GenerateIsObject(ZoneList<Expression*>* args); |
| 238 void GenerateIsFunction(ZoneList<Expression*>* args); | 239 void GenerateIsFunction(ZoneList<Expression*>* args); |
| 239 void GenerateIsUndetectableObject(ZoneList<Expression*>* args); | 240 void GenerateIsUndetectableObject(ZoneList<Expression*>* args); |
| 240 void GenerateStringAdd(ZoneList<Expression*>* args); | 241 void GenerateStringAdd(ZoneList<Expression*>* args); |
| 241 void GenerateSubString(ZoneList<Expression*>* args); | 242 void GenerateSubString(ZoneList<Expression*>* args); |
| 242 void GenerateStringCompare(ZoneList<Expression*>* args); | 243 void GenerateStringCompare(ZoneList<Expression*>* args); |
| 243 void GenerateRegExpExec(ZoneList<Expression*>* args); | 244 void GenerateRegExpExec(ZoneList<Expression*>* args); |
| 245 void GenerateNumberToString(ZoneList<Expression*>* args); |
| 246 |
| 244 | 247 |
| 245 // Fast support for Math.sin and Math.cos. | 248 // Fast support for Math.sin and Math.cos. |
| 246 inline void GenerateMathSin(ZoneList<Expression*>* args); | 249 inline void GenerateMathSin(ZoneList<Expression*>* args); |
| 247 inline void GenerateMathCos(ZoneList<Expression*>* args); | 250 inline void GenerateMathCos(ZoneList<Expression*>* args); |
| 248 | 251 |
| 249 // Simple condition analysis. | 252 // Simple condition analysis. |
| 250 enum ConditionAnalysis { | 253 enum ConditionAnalysis { |
| 251 ALWAYS_TRUE, | 254 ALWAYS_TRUE, |
| 252 ALWAYS_FALSE, | 255 ALWAYS_FALSE, |
| 253 DONT_KNOW | 256 DONT_KNOW |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 friend class FastCodeGenerator; | 304 friend class FastCodeGenerator; |
| 302 friend class FullCodeGenSyntaxChecker; | 305 friend class FullCodeGenSyntaxChecker; |
| 303 | 306 |
| 304 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 307 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 305 }; | 308 }; |
| 306 | 309 |
| 307 | 310 |
| 308 } } // namespace v8::internal | 311 } } // namespace v8::internal |
| 309 | 312 |
| 310 #endif // V8_MIPS_CODEGEN_MIPS_H_ | 313 #endif // V8_MIPS_CODEGEN_MIPS_H_ |
| 311 | |
| OLD | NEW |