| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 kAccumulator, | 238 kAccumulator, |
| 239 kStack | 239 kStack |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 int SlotOffset(Slot* slot); | 242 int SlotOffset(Slot* slot); |
| 243 | 243 |
| 244 // Emit code to convert a pure value (in a register, slot, as a literal, | 244 // Emit code to convert a pure value (in a register, slot, as a literal, |
| 245 // or on top of the stack) into the result expected according to an | 245 // or on top of the stack) into the result expected according to an |
| 246 // expression context. | 246 // expression context. |
| 247 void Apply(Expression::Context context, Register reg); | 247 void Apply(Expression::Context context, Register reg); |
| 248 |
| 249 // Slot cannot have type Slot::LOOKUP. |
| 248 void Apply(Expression::Context context, Slot* slot); | 250 void Apply(Expression::Context context, Slot* slot); |
| 251 |
| 249 void Apply(Expression::Context context, Literal* lit); | 252 void Apply(Expression::Context context, Literal* lit); |
| 250 void ApplyTOS(Expression::Context context); | 253 void ApplyTOS(Expression::Context context); |
| 251 | 254 |
| 252 // Emit code to discard count elements from the top of stack, then convert | 255 // Emit code to discard count elements from the top of stack, then convert |
| 253 // a pure value into the result expected according to an expression | 256 // a pure value into the result expected according to an expression |
| 254 // context. | 257 // context. |
| 255 void DropAndApply(int count, Expression::Context context, Register reg); | 258 void DropAndApply(int count, Expression::Context context, Register reg); |
| 256 | 259 |
| 257 // Emit code to convert pure control flow to a pair of labels into the | 260 // Emit code to convert pure control flow to a pair of labels into the |
| 258 // result expected according to an expression context. | 261 // result expected according to an expression context. |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 | 436 |
| 434 friend class NestedStatement; | 437 friend class NestedStatement; |
| 435 | 438 |
| 436 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 439 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
| 437 }; | 440 }; |
| 438 | 441 |
| 439 | 442 |
| 440 } } // namespace v8::internal | 443 } } // namespace v8::internal |
| 441 | 444 |
| 442 #endif // V8_FAST_CODEGEN_H_ | 445 #endif // V8_FAST_CODEGEN_H_ |
| OLD | NEW |