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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 enum MathOp { SIN, COS }; | 363 enum MathOp { SIN, COS }; |
364 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); | 364 void GenerateFastMathOp(MathOp op, ZoneList<Expression*>* args); |
365 inline void GenerateMathSin(ZoneList<Expression*>* args); | 365 inline void GenerateMathSin(ZoneList<Expression*>* args); |
366 inline void GenerateMathCos(ZoneList<Expression*>* args); | 366 inline void GenerateMathCos(ZoneList<Expression*>* args); |
367 | 367 |
368 // Methods used to indicate which source code is generated for. Source | 368 // Methods used to indicate which source code is generated for. Source |
369 // positions are collected by the assembler and emitted with the relocation | 369 // positions are collected by the assembler and emitted with the relocation |
370 // information. | 370 // information. |
371 void CodeForFunctionPosition(FunctionLiteral* fun); | 371 void CodeForFunctionPosition(FunctionLiteral* fun); |
372 void CodeForReturnPosition(FunctionLiteral* fun); | 372 void CodeForReturnPosition(FunctionLiteral* fun); |
373 void CodeForStatementPosition(AstNode* node); | 373 void CodeForStatementPosition(Statement* node); |
374 void CodeForSourcePosition(int pos); | 374 void CodeForSourcePosition(int pos); |
375 | 375 |
376 #ifdef DEBUG | 376 #ifdef DEBUG |
377 // True if the registers are valid for entry to a block. | 377 // True if the registers are valid for entry to a block. |
378 bool HasValidEntryRegisters(); | 378 bool HasValidEntryRegisters(); |
379 #endif | 379 #endif |
380 | 380 |
381 bool is_eval_; // Tells whether code is generated for eval. | 381 bool is_eval_; // Tells whether code is generated for eval. |
382 | 382 |
383 Handle<Script> script_; | 383 Handle<Script> script_; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 constant_rhs_); | 497 constant_rhs_); |
498 } | 498 } |
499 } | 499 } |
500 #endif | 500 #endif |
501 }; | 501 }; |
502 | 502 |
503 | 503 |
504 } } // namespace v8::internal | 504 } } // namespace v8::internal |
505 | 505 |
506 #endif // V8_ARM_CODEGEN_ARM_H_ | 506 #endif // V8_ARM_CODEGEN_ARM_H_ |
OLD | NEW |