| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); | 54 void Move(Location destination, Register source); |
| 57 void Move(Location destination, Slot* source); | 55 void Move(Location destination, Slot* source); |
| 58 void Move(Location destination, Literal* source); | 56 void Move(Location destination, Literal* source); |
| 59 | 57 |
| 60 void Move(Register destination, Location source); | 58 void Move(Register destination, Location source); |
| 61 void Move(Slot* destination, Location source); | 59 void Move(Slot* destination, Location source); |
| 62 | 60 |
| 63 // Drop the TOS, and store source to destination. | 61 // Drop the TOS, and store source to destination. |
| 64 // If destination is TOS, just overwrite TOS with source. | 62 // If destination is TOS, just overwrite TOS with source. |
| 65 void DropAndMove(Location destination, Register source); | 63 void DropAndMove(Location destination, Register source); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 83 Handle<Script> script_; | 81 Handle<Script> script_; |
| 84 bool is_eval_; | 82 bool is_eval_; |
| 85 | 83 |
| 86 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); | 84 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); |
| 87 }; | 85 }; |
| 88 | 86 |
| 89 | 87 |
| 90 } } // namespace v8::internal | 88 } } // namespace v8::internal |
| 91 | 89 |
| 92 #endif // V8_FAST_CODEGEN_H_ | 90 #endif // V8_FAST_CODEGEN_H_ |
| OLD | NEW |