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

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

Issue 342019: Add binary operations to fast compiler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « src/compiler.cc ('k') | src/ia32/fast-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void SetFunctionPosition(FunctionLiteral* fun); 71 void SetFunctionPosition(FunctionLiteral* fun);
72 void SetReturnPosition(FunctionLiteral* fun); 72 void SetReturnPosition(FunctionLiteral* fun);
73 void SetStatementPosition(Statement* stmt); 73 void SetStatementPosition(Statement* stmt);
74 void SetSourcePosition(int pos); 74 void SetSourcePosition(int pos);
75 75
76 // AST node visit functions. 76 // AST node visit functions.
77 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); 77 #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
78 AST_NODE_LIST(DECLARE_VISIT) 78 AST_NODE_LIST(DECLARE_VISIT)
79 #undef DECLARE_VISIT 79 #undef DECLARE_VISIT
80 80
81 // Handles the shortcutted logical binary operations in VisitBinaryOperation.
82 void EmitLogicalOperation(BinaryOperation* expr);
83
81 MacroAssembler* masm_; 84 MacroAssembler* masm_;
82 FunctionLiteral* function_; 85 FunctionLiteral* function_;
83 Handle<Script> script_; 86 Handle<Script> script_;
84 bool is_eval_; 87 bool is_eval_;
85 88
86 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); 89 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator);
87 }; 90 };
88 91
89 92
90 } } // namespace v8::internal 93 } } // namespace v8::internal
91 94
92 #endif // V8_FAST_CODEGEN_H_ 95 #endif // V8_FAST_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/ia32/fast-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698