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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 enum MathOp { SIN, COS }; | 546 enum MathOp { SIN, COS }; |
547 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); | 547 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); |
548 inline void GenerateMathSin(ZoneList<Expression*>* args); | 548 inline void GenerateMathSin(ZoneList<Expression*>* args); |
549 inline void GenerateMathCos(ZoneList<Expression*>* args); | 549 inline void GenerateMathCos(ZoneList<Expression*>* args); |
550 | 550 |
551 // Methods used to indicate which source code is generated for. Source | 551 // Methods used to indicate which source code is generated for. Source |
552 // positions are collected by the assembler and emitted with the relocation | 552 // positions are collected by the assembler and emitted with the relocation |
553 // information. | 553 // information. |
554 void CodeForFunctionPosition(FunctionLiteral* fun); | 554 void CodeForFunctionPosition(FunctionLiteral* fun); |
555 void CodeForReturnPosition(FunctionLiteral* fun); | 555 void CodeForReturnPosition(FunctionLiteral* fun); |
556 void CodeForStatementPosition(AstNode* node); | 556 void CodeForStatementPosition(Statement* stmt); |
557 void CodeForSourcePosition(int pos); | 557 void CodeForSourcePosition(int pos); |
558 | 558 |
559 #ifdef DEBUG | 559 #ifdef DEBUG |
560 // True if the registers are valid for entry to a block. There should | 560 // True if the registers are valid for entry to a block. There should |
561 // be no frame-external references to (non-reserved) registers. | 561 // be no frame-external references to (non-reserved) registers. |
562 bool HasValidEntryRegisters(); | 562 bool HasValidEntryRegisters(); |
563 #endif | 563 #endif |
564 | 564 |
565 bool is_eval_; // Tells whether code is generated for eval. | 565 bool is_eval_; // Tells whether code is generated for eval. |
566 Handle<Script> script_; | 566 Handle<Script> script_; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 | FlagBits::encode(flags_) | 655 | FlagBits::encode(flags_) |
656 | SSE3Bits::encode(use_sse3_); | 656 | SSE3Bits::encode(use_sse3_); |
657 } | 657 } |
658 void Generate(MacroAssembler* masm); | 658 void Generate(MacroAssembler* masm); |
659 }; | 659 }; |
660 | 660 |
661 | 661 |
662 } } // namespace v8::internal | 662 } } // namespace v8::internal |
663 | 663 |
664 #endif // V8_IA32_CODEGEN_IA32_H_ | 664 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |