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

Unified Diff: src/full-codegen.h

Issue 553149: Implement simple fast-path code for functions containing this property stores and global variables. (Closed)
Patch Set: Incorporated codereview comments. Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/fast-codegen.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen.h
diff --git a/src/full-codegen.h b/src/full-codegen.h
index 3c8e198f5fc18892fe0908f1d6c8d9081cb4b17f..6688ff7c57c2fcda050f57df368c31571f1643c1 100644
--- a/src/full-codegen.h
+++ b/src/full-codegen.h
@@ -63,11 +63,16 @@ class FullCodeGenSyntaxChecker: public AstVisitor {
class FullCodeGenerator: public AstVisitor {
public:
+ enum Mode {
+ PRIMARY,
+ SECONDARY
+ };
+
FullCodeGenerator(MacroAssembler* masm, Handle<Script> script, bool is_eval)
: masm_(masm),
- function_(NULL),
script_(script),
is_eval_(is_eval),
+ function_(NULL),
nesting_stack_(NULL),
loop_depth_(0),
location_(kStack),
@@ -79,7 +84,7 @@ class FullCodeGenerator: public AstVisitor {
Handle<Script> script,
bool is_eval);
- void Generate(FunctionLiteral* fun);
+ void Generate(FunctionLiteral* fun, Mode mode);
private:
class Breakable;
@@ -422,9 +427,11 @@ class FullCodeGenerator: public AstVisitor {
void EmitLogicalOperation(BinaryOperation* expr);
MacroAssembler* masm_;
- FunctionLiteral* function_;
Handle<Script> script_;
bool is_eval_;
+
+ FunctionLiteral* function_;
+
Label return_label_;
NestedStatement* nesting_stack_;
int loop_depth_;
« no previous file with comments | « src/fast-codegen.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698