| 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 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* fun); | |
| 74 void DeclareGlobals(Handle<FixedArray> pairs); | 73 void DeclareGlobals(Handle<FixedArray> pairs); |
| 75 | 74 |
| 76 void EmitCallWithStub(Call* expr); | 75 void EmitCallWithStub(Call* expr); |
| 77 void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info); | 76 void EmitCallWithIC(Call* expr, RelocInfo::Mode reloc_info); |
| 78 | 77 |
| 79 // Platform-specific support for compiling assignments. | 78 // Platform-specific support for compiling assignments. |
| 80 | 79 |
| 81 // Complete a variable assignment. The right-hand-side value is expected | 80 // Complete a variable assignment. The right-hand-side value is expected |
| 82 // on top of the stack. | 81 // on top of the stack. |
| 83 void EmitVariableAssignment(Assignment* expr); | 82 void EmitVariableAssignment(Assignment* expr); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 Label* true_label_; | 119 Label* true_label_; |
| 121 Label* false_label_; | 120 Label* false_label_; |
| 122 | 121 |
| 123 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); | 122 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); |
| 124 }; | 123 }; |
| 125 | 124 |
| 126 | 125 |
| 127 } } // namespace v8::internal | 126 } } // namespace v8::internal |
| 128 | 127 |
| 129 #endif // V8_FAST_CODEGEN_H_ | 128 #endif // V8_FAST_CODEGEN_H_ |
| OLD | NEW |