OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 void EmitDynamicLoadFromSlotFastCase(Slot* slot, | 447 void EmitDynamicLoadFromSlotFastCase(Slot* slot, |
448 TypeofState typeof_state, | 448 TypeofState typeof_state, |
449 Result* result, | 449 Result* result, |
450 JumpTarget* slow, | 450 JumpTarget* slow, |
451 JumpTarget* done); | 451 JumpTarget* done); |
452 | 452 |
453 // Store the value on top of the expression stack into a slot, leaving the | 453 // Store the value on top of the expression stack into a slot, leaving the |
454 // value in place. | 454 // value in place. |
455 void StoreToSlot(Slot* slot, InitState init_state); | 455 void StoreToSlot(Slot* slot, InitState init_state); |
456 | 456 |
| 457 // Support for compiling assignment expressions. |
| 458 void EmitSlotAssignment(Assignment* node); |
| 459 |
457 // Receiver is passed on the frame and not consumed. | 460 // Receiver is passed on the frame and not consumed. |
458 Result EmitNamedLoad(Handle<String> name, bool is_contextual); | 461 Result EmitNamedLoad(Handle<String> name, bool is_contextual); |
459 | 462 |
460 // Load a property of an object, returning it in a Result. | 463 // Load a property of an object, returning it in a Result. |
461 // The object and the property name are passed on the stack, and | 464 // The object and the property name are passed on the stack, and |
462 // not changed. | 465 // not changed. |
463 Result EmitKeyedLoad(); | 466 Result EmitKeyedLoad(); |
464 | 467 |
465 // Special code for typeof expressions: Unfortunately, we must | 468 // Special code for typeof expressions: Unfortunately, we must |
466 // be careful when loading the expression in 'typeof' | 469 // be careful when loading the expression in 'typeof' |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1062 return ObjectBits::encode(object_.code()) | | 1065 return ObjectBits::encode(object_.code()) | |
1063 AddressBits::encode(addr_.code()) | | 1066 AddressBits::encode(addr_.code()) | |
1064 ScratchBits::encode(scratch_.code()); | 1067 ScratchBits::encode(scratch_.code()); |
1065 } | 1068 } |
1066 }; | 1069 }; |
1067 | 1070 |
1068 | 1071 |
1069 } } // namespace v8::internal | 1072 } } // namespace v8::internal |
1070 | 1073 |
1071 #endif // V8_X64_CODEGEN_X64_H_ | 1074 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |