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

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

Issue 340037: Support for calls on named and keyed properties of the form:... (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/codegen-ia32.h » ('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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void Move(Expression::Context destination, Literal* source); 56 void Move(Expression::Context destination, Literal* source);
57 57
58 // Drop the TOS, and store source to destination. 58 // Drop the TOS, and store source to destination.
59 // If destination is TOS, just overwrite TOS with source. 59 // If destination is TOS, just overwrite TOS with source.
60 void DropAndMove(Expression::Context destination, Register source); 60 void DropAndMove(Expression::Context destination, Register source);
61 61
62 void VisitDeclarations(ZoneList<Declaration*>* declarations); 62 void VisitDeclarations(ZoneList<Declaration*>* declarations);
63 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* fun); 63 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* fun);
64 void DeclareGlobals(Handle<FixedArray> pairs); 64 void DeclareGlobals(Handle<FixedArray> pairs);
65 65
66 void EmitCallWithStub(Call* expr);
67 void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info);
68
66 void SetFunctionPosition(FunctionLiteral* fun); 69 void SetFunctionPosition(FunctionLiteral* fun);
67 void SetReturnPosition(FunctionLiteral* fun); 70 void SetReturnPosition(FunctionLiteral* fun);
68 void SetStatementPosition(Statement* stmt); 71 void SetStatementPosition(Statement* stmt);
69 void SetSourcePosition(int pos); 72 void SetSourcePosition(int pos);
70 73
71 // AST node visit functions. 74 // AST node visit functions.
72 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); 75 #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
73 AST_NODE_LIST(DECLARE_VISIT) 76 AST_NODE_LIST(DECLARE_VISIT)
74 #undef DECLARE_VISIT 77 #undef DECLARE_VISIT
75 78
76 // Handles the shortcutted logical binary operations in VisitBinaryOperation. 79 // Handles the shortcutted logical binary operations in VisitBinaryOperation.
77 void EmitLogicalOperation(BinaryOperation* expr); 80 void EmitLogicalOperation(BinaryOperation* expr);
78 81
79 MacroAssembler* masm_; 82 MacroAssembler* masm_;
80 FunctionLiteral* function_; 83 FunctionLiteral* function_;
81 Handle<Script> script_; 84 Handle<Script> script_;
82 bool is_eval_; 85 bool is_eval_;
86 Label return_label_;
83 87
84 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); 88 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator);
85 }; 89 };
86 90
87 91
88 } } // namespace v8::internal 92 } } // namespace v8::internal
89 93
90 #endif // V8_FAST_CODEGEN_H_ 94 #endif // V8_FAST_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/ia32/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698