OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 void VisitDeclarations(ZoneList<Declaration*>* declarations); | 403 void VisitDeclarations(ZoneList<Declaration*>* declarations); |
404 void DeclareModules(Handle<FixedArray> descriptions); | 404 void DeclareModules(Handle<FixedArray> descriptions); |
405 void DeclareGlobals(Handle<FixedArray> pairs); | 405 void DeclareGlobals(Handle<FixedArray> pairs); |
406 int DeclareGlobalsFlags(); | 406 int DeclareGlobalsFlags(); |
407 | 407 |
408 // Generate code to allocate all (including nested) modules and contexts. | 408 // Generate code to allocate all (including nested) modules and contexts. |
409 // Because of recursive linking and the presence of module alias declarations, | 409 // Because of recursive linking and the presence of module alias declarations, |
410 // this has to be a separate pass _before_ populating or executing any module. | 410 // this has to be a separate pass _before_ populating or executing any module. |
411 void AllocateModules(ZoneList<Declaration*>* declarations); | 411 void AllocateModules(ZoneList<Declaration*>* declarations); |
412 | 412 |
| 413 // Generator code to return a fresh iterator result object. The "value" |
| 414 // property is set to a value popped from the stack, and "done" is set |
| 415 // according to the argument. |
| 416 void EmitReturnIteratorResult(bool done); |
| 417 |
413 // Try to perform a comparison as a fast inlined literal compare if | 418 // Try to perform a comparison as a fast inlined literal compare if |
414 // the operands allow it. Returns true if the compare operations | 419 // the operands allow it. Returns true if the compare operations |
415 // has been matched and all code generated; false otherwise. | 420 // has been matched and all code generated; false otherwise. |
416 bool TryLiteralCompare(CompareOperation* compare); | 421 bool TryLiteralCompare(CompareOperation* compare); |
417 | 422 |
418 // Platform-specific code for comparing the type of a value with | 423 // Platform-specific code for comparing the type of a value with |
419 // a given literal string. | 424 // a given literal string. |
420 void EmitLiteralCompareTypeof(Expression* expr, | 425 void EmitLiteralCompareTypeof(Expression* expr, |
421 Expression* sub_expr, | 426 Expression* sub_expr, |
422 Handle<String> check); | 427 Handle<String> check); |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 } | 868 } |
864 | 869 |
865 private: | 870 private: |
866 Zone* zone_; | 871 Zone* zone_; |
867 }; | 872 }; |
868 | 873 |
869 | 874 |
870 } } // namespace v8::internal | 875 } } // namespace v8::internal |
871 | 876 |
872 #endif // V8_FULL_CODEGEN_H_ | 877 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |