| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 // the operands allow it. Returns true if the compare operations | 362 // the operands allow it. Returns true if the compare operations |
| 363 // has been matched and all code generated; false otherwise. | 363 // has been matched and all code generated; false otherwise. |
| 364 bool TryLiteralCompare(Token::Value op, | 364 bool TryLiteralCompare(Token::Value op, |
| 365 Expression* left, | 365 Expression* left, |
| 366 Expression* right, | 366 Expression* right, |
| 367 Label* if_true, | 367 Label* if_true, |
| 368 Label* if_false, | 368 Label* if_false, |
| 369 Label* fall_through); | 369 Label* fall_through); |
| 370 | 370 |
| 371 // Bailout support. | 371 // Bailout support. |
| 372 void PrepareForBailout(AstNode* node, State state); | 372 void PrepareForBailout(Expression* node, State state); |
| 373 void PrepareForBailoutForId(int id, State state); | 373 void PrepareForBailoutForId(int id, State state); |
| 374 | 374 |
| 375 // Record a call's return site offset, used to rebuild the frame if the | 375 // Record a call's return site offset, used to rebuild the frame if the |
| 376 // called function was inlined at the site. | 376 // called function was inlined at the site. |
| 377 void RecordJSReturnSite(Call* call); | 377 void RecordJSReturnSite(Call* call); |
| 378 | 378 |
| 379 // Prepare for bailout before a test (or compare) and branch. If | 379 // Prepare for bailout before a test (or compare) and branch. If |
| 380 // should_normalize, then the following comparison will not handle the | 380 // should_normalize, then the following comparison will not handle the |
| 381 // canonical JS true value so we will insert a (dead) test against true at | 381 // canonical JS true value so we will insert a (dead) test against true at |
| 382 // the actual bailout target from the optimized code. If not | 382 // the actual bailout target from the optimized code. If not |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 | 762 |
| 763 friend class NestedStatement; | 763 friend class NestedStatement; |
| 764 | 764 |
| 765 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 765 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
| 766 }; | 766 }; |
| 767 | 767 |
| 768 | 768 |
| 769 } } // namespace v8::internal | 769 } } // namespace v8::internal |
| 770 | 770 |
| 771 #endif // V8_FULL_CODEGEN_H_ | 771 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |