Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/full-codegen.h

Issue 9425045: Support fast case for-in in Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: port to x64&arm, cleanup Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 // Helper functions for generating inlined smi code for certain 493 // Helper functions for generating inlined smi code for certain
494 // binary operations. 494 // binary operations.
495 void EmitInlineSmiBinaryOp(BinaryOperation* expr, 495 void EmitInlineSmiBinaryOp(BinaryOperation* expr,
496 Token::Value op, 496 Token::Value op,
497 OverwriteMode mode, 497 OverwriteMode mode,
498 Expression* left, 498 Expression* left,
499 Expression* right); 499 Expression* right);
500 500
501 // Assign to the given expression as if via '='. The right-hand-side value 501 // Assign to the given expression as if via '='. The right-hand-side value
502 // is expected in the accumulator. 502 // is expected in the accumulator.
503 void EmitAssignment(Expression* expr, int bailout_ast_id); 503 void EmitAssignment(Expression* expr);
504 504
505 // Complete a variable assignment. The right-hand-side value is expected 505 // Complete a variable assignment. The right-hand-side value is expected
506 // in the accumulator. 506 // in the accumulator.
507 void EmitVariableAssignment(Variable* var, 507 void EmitVariableAssignment(Variable* var,
508 Token::Value op); 508 Token::Value op);
509 509
510 // Complete a named property assignment. The receiver is expected on top 510 // Complete a named property assignment. The receiver is expected on top
511 // of the stack and the right-hand-side value in the accumulator. 511 // of the stack and the right-hand-side value in the accumulator.
512 void EmitNamedPropertyAssignment(Assignment* expr); 512 void EmitNamedPropertyAssignment(Assignment* expr);
513 513
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 784
785 friend class NestedStatement; 785 friend class NestedStatement;
786 786
787 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 787 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
788 }; 788 };
789 789
790 790
791 } } // namespace v8::internal 791 } } // namespace v8::internal
792 792
793 #endif // V8_FULL_CODEGEN_H_ 793 #endif // V8_FULL_CODEGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698