OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |