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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 void Comparison(Condition cc, | 297 void Comparison(Condition cc, |
298 Expression* left, | 298 Expression* left, |
299 Expression* right, | 299 Expression* right, |
300 bool strict = false); | 300 bool strict = false); |
301 | 301 |
302 void SmiOperation(Token::Value op, | 302 void SmiOperation(Token::Value op, |
303 Handle<Object> value, | 303 Handle<Object> value, |
304 bool reversed, | 304 bool reversed, |
305 OverwriteMode mode); | 305 OverwriteMode mode); |
306 | 306 |
307 void CallWithArguments(ZoneList<Expression*>* arguments, int position); | 307 void CallWithArguments(ZoneList<Expression*>* arguments, |
| 308 CallFunctionFlags flags, |
| 309 int position); |
308 | 310 |
309 // Control flow | 311 // Control flow |
310 void Branch(bool if_true, JumpTarget* target); | 312 void Branch(bool if_true, JumpTarget* target); |
311 void CheckStack(); | 313 void CheckStack(); |
312 | 314 |
313 struct InlineRuntimeLUT { | 315 struct InlineRuntimeLUT { |
314 void (CodeGenerator::*method)(ZoneList<Expression*>*); | 316 void (CodeGenerator::*method)(ZoneList<Expression*>*); |
315 const char* name; | 317 const char* name; |
316 }; | 318 }; |
317 | 319 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 friend class VirtualFrame; | 427 friend class VirtualFrame; |
426 friend class JumpTarget; | 428 friend class JumpTarget; |
427 friend class Reference; | 429 friend class Reference; |
428 friend class FastCodeGenerator; | 430 friend class FastCodeGenerator; |
429 friend class CodeGenSelector; | 431 friend class CodeGenSelector; |
430 | 432 |
431 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 433 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
432 }; | 434 }; |
433 | 435 |
434 | 436 |
435 class CallFunctionStub: public CodeStub { | |
436 public: | |
437 CallFunctionStub(int argc, InLoopFlag in_loop) | |
438 : argc_(argc), in_loop_(in_loop) {} | |
439 | |
440 void Generate(MacroAssembler* masm); | |
441 | |
442 private: | |
443 int argc_; | |
444 InLoopFlag in_loop_; | |
445 | |
446 #if defined(DEBUG) | |
447 void Print() { PrintF("CallFunctionStub (argc %d)\n", argc_); } | |
448 #endif // defined(DEBUG) | |
449 | |
450 Major MajorKey() { return CallFunction; } | |
451 int MinorKey() { return argc_; } | |
452 InLoopFlag InLoop() { return in_loop_; } | |
453 }; | |
454 | |
455 | |
456 class GenericBinaryOpStub : public CodeStub { | 437 class GenericBinaryOpStub : public CodeStub { |
457 public: | 438 public: |
458 GenericBinaryOpStub(Token::Value op, | 439 GenericBinaryOpStub(Token::Value op, |
459 OverwriteMode mode, | 440 OverwriteMode mode, |
460 int constant_rhs = CodeGenerator::kUnknownIntValue) | 441 int constant_rhs = CodeGenerator::kUnknownIntValue) |
461 : op_(op), | 442 : op_(op), |
462 mode_(mode), | 443 mode_(mode), |
463 constant_rhs_(constant_rhs), | 444 constant_rhs_(constant_rhs), |
464 specialized_on_rhs_(RhsIsOneWeWantToOptimizeFor(op, constant_rhs)), | 445 specialized_on_rhs_(RhsIsOneWeWantToOptimizeFor(op, constant_rhs)), |
465 name_(NULL) { } | 446 name_(NULL) { } |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 constant_rhs_); | 507 constant_rhs_); |
527 } | 508 } |
528 } | 509 } |
529 #endif | 510 #endif |
530 }; | 511 }; |
531 | 512 |
532 | 513 |
533 } } // namespace v8::internal | 514 } } // namespace v8::internal |
534 | 515 |
535 #endif // V8_ARM_CODEGEN_ARM_H_ | 516 #endif // V8_ARM_CODEGEN_ARM_H_ |
OLD | NEW |