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

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

Issue 384078: Fast-codegen: Added support for arguments in functions. (Closed)
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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // Drop the TOS, and store source to destination. 64 // Drop the TOS, and store source to destination.
65 // If destination is TOS, just overwrite TOS with source. 65 // If destination is TOS, just overwrite TOS with source.
66 void DropAndMove(Expression::Context destination, Register source); 66 void DropAndMove(Expression::Context destination, Register source);
67 67
68 // Test the JavaScript value in source as if in a test context, compile 68 // Test the JavaScript value in source as if in a test context, compile
69 // control flow to a pair of labels. 69 // control flow to a pair of labels.
70 void TestAndBranch(Register source, Label* true_label, Label* false_label); 70 void TestAndBranch(Register source, Label* true_label, Label* false_label);
71 71
72 void VisitDeclarations(ZoneList<Declaration*>* declarations); 72 void VisitDeclarations(ZoneList<Declaration*>* declarations);
73 void VisitCondition(Expression* expression, Label* on_true, Label* on_false);
Kevin Millikin (Chromium) 2009/11/12 14:23:13 Please do not call this Visit, because it's not pa
Lasse Reichstein 2009/11/13 08:54:37 I'll call it something else if I revisit the idea.
73 void DeclareGlobals(Handle<FixedArray> pairs); 74 void DeclareGlobals(Handle<FixedArray> pairs);
74 75
75 // Platform-specific return sequence 76 // Platform-specific return sequence
76 void EmitReturnSequence(int position); 77 void EmitReturnSequence(int position);
77 78
78 // Platform-specific code sequences for calls 79 // Platform-specific code sequences for calls
79 void EmitCallWithStub(Call* expr); 80 void EmitCallWithStub(Call* expr);
80 void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info); 81 void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info);
81 82
82 // Platform-specific support for compiling assignments. 83 // Platform-specific support for compiling assignments.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 Label* true_label_; 124 Label* true_label_;
124 Label* false_label_; 125 Label* false_label_;
125 126
126 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); 127 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator);
127 }; 128 };
128 129
129 130
130 } } // namespace v8::internal 131 } } // namespace v8::internal
131 132
132 #endif // V8_FAST_CODEGEN_H_ 133 #endif // V8_FAST_CODEGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698