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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 void EmitCallWithStub(Call* expr); | 264 void EmitCallWithStub(Call* expr); |
265 void EmitCallWithIC(Call* expr, Handle<Object> name, RelocInfo::Mode mode); | 265 void EmitCallWithIC(Call* expr, Handle<Object> name, RelocInfo::Mode mode); |
266 | 266 |
267 // Platform-specific code for loading variables. | 267 // Platform-specific code for loading variables. |
268 void EmitVariableLoad(Variable* expr, Expression::Context context); | 268 void EmitVariableLoad(Variable* expr, Expression::Context context); |
269 | 269 |
270 // Platform-specific support for compiling assignments. | 270 // Platform-specific support for compiling assignments. |
271 | 271 |
272 // Load a value from a named property. | 272 // Load a value from a named property. |
273 // The receiver is left on the stack by the IC. | 273 // The receiver is left on the stack by the IC. |
274 void EmitNamedPropertyLoad(Property* expr, Expression::Context context); | 274 void EmitNamedPropertyLoad(Property* expr); |
275 | 275 |
276 // Load a value from a keyed property. | 276 // Load a value from a keyed property. |
277 // The receiver and the key is left on the stack by the IC. | 277 // The receiver and the key is left on the stack by the IC. |
278 void EmitKeyedPropertyLoad(Property* expr, Expression::Context context); | 278 void EmitKeyedPropertyLoad(Property* expr); |
279 | 279 |
280 // Apply the compound assignment operator. Expects both operands on top | 280 // Apply the compound assignment operator. Expects both operands on top |
281 // of the stack. | 281 // of the stack. |
282 void EmitCompoundAssignmentOp(Token::Value op, Expression::Context context); | 282 void EmitCompoundAssignmentOp(Token::Value op, Expression::Context context); |
283 | 283 |
284 // Complete a variable assignment. The right-hand-side value is expected | 284 // Complete a variable assignment. The right-hand-side value is expected |
285 // on top of the stack. | 285 // on top of the stack. |
286 void EmitVariableAssignment(Variable* var, Expression::Context context); | 286 void EmitVariableAssignment(Variable* var, Expression::Context context); |
287 | 287 |
288 // Complete a named property assignment. The receiver and right-hand-side | 288 // Complete a named property assignment. The receiver and right-hand-side |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 | 343 |
344 friend class NestedStatement; | 344 friend class NestedStatement; |
345 | 345 |
346 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); | 346 DISALLOW_COPY_AND_ASSIGN(FastCodeGenerator); |
347 }; | 347 }; |
348 | 348 |
349 | 349 |
350 } } // namespace v8::internal | 350 } } // namespace v8::internal |
351 | 351 |
352 #endif // V8_FAST_CODEGEN_H_ | 352 #endif // V8_FAST_CODEGEN_H_ |
OLD | NEW |