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

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

Issue 338043: Make it more pleasant to work with expression locations in the... (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/arm/fast-codegen-arm.cc ('k') | src/fast-codegen.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 static Handle<Code> MakeCode(FunctionLiteral* fun, 45 static Handle<Code> MakeCode(FunctionLiteral* fun,
46 Handle<Script> script, 46 Handle<Script> script,
47 bool is_eval); 47 bool is_eval);
48 48
49 void Generate(FunctionLiteral* fun); 49 void Generate(FunctionLiteral* fun);
50 50
51 private: 51 private:
52 int SlotOffset(Slot* slot); 52 int SlotOffset(Slot* slot);
53 53
54 void Move(Location destination, Location source);
55
56 void Move(Location destination, Register source);
57 void Move(Location destination, Slot* source);
58 void Move(Location destination, Literal* source);
59
60 void Move(Register destination, Location source);
61 void Move(Slot* destination, Location source);
62
54 void VisitDeclarations(ZoneList<Declaration*>* declarations); 63 void VisitDeclarations(ZoneList<Declaration*>* declarations);
55 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* fun); 64 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* fun);
56 void DeclareGlobals(Handle<FixedArray> pairs); 65 void DeclareGlobals(Handle<FixedArray> pairs);
57 66
58 void SetFunctionPosition(FunctionLiteral* fun); 67 void SetFunctionPosition(FunctionLiteral* fun);
59 void SetReturnPosition(FunctionLiteral* fun); 68 void SetReturnPosition(FunctionLiteral* fun);
60 void SetStatementPosition(Statement* stmt); 69 void SetStatementPosition(Statement* stmt);
61 void SetSourcePosition(int pos); 70 void SetSourcePosition(int pos);
62 71
63 // AST node visit functions. 72 // AST node visit functions.
64 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); 73 #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
65 AST_NODE_LIST(DECLARE_VISIT) 74 AST_NODE_LIST(DECLARE_VISIT)
66 #undef DECLARE_VISIT 75 #undef DECLARE_VISIT
67 76
68 MacroAssembler* masm_; 77 MacroAssembler* masm_;
69 FunctionLiteral* function_; 78 FunctionLiteral* function_;
70 Handle<Script> script_; 79 Handle<Script> script_;
71 bool is_eval_; 80 bool is_eval_;
72 81
73 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); 82 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator);
74 }; 83 };
75 84
76 85
77 } } // namespace v8::internal 86 } } // namespace v8::internal
78 87
79 #endif // V8_FAST_CODEGEN_H_ 88 #endif // V8_FAST_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/fast-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698