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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 457 // Support for compiling assignment expressions. |
458 void EmitSlotAssignment(Assignment* node); | 458 void EmitSlotAssignment(Assignment* node); |
| 459 void EmitNamedPropertyAssignment(Assignment* node); |
459 | 460 |
460 // Receiver is passed on the frame and not consumed. | 461 // Receiver is passed on the frame and not consumed. |
461 Result EmitNamedLoad(Handle<String> name, bool is_contextual); | 462 Result EmitNamedLoad(Handle<String> name, bool is_contextual); |
462 | 463 |
| 464 // If the store is contextual, value is passed on the frame and consumed. |
| 465 // Otherwise, receiver and value are passed on the frame and consumed. |
| 466 Result EmitNamedStore(Handle<String> name, bool is_contextual); |
| 467 |
463 // Load a property of an object, returning it in a Result. | 468 // Load a property of an object, returning it in a Result. |
464 // The object and the property name are passed on the stack, and | 469 // The object and the property name are passed on the stack, and |
465 // not changed. | 470 // not changed. |
466 Result EmitKeyedLoad(); | 471 Result EmitKeyedLoad(); |
467 | 472 |
468 // Special code for typeof expressions: Unfortunately, we must | 473 // Special code for typeof expressions: Unfortunately, we must |
469 // be careful when loading the expression in 'typeof' | 474 // be careful when loading the expression in 'typeof' |
470 // expressions. We are not allowed to throw reference errors for | 475 // expressions. We are not allowed to throw reference errors for |
471 // non-existing properties of the global object, so we must make it | 476 // non-existing properties of the global object, so we must make it |
472 // look like an explicit property access, instead of an access | 477 // look like an explicit property access, instead of an access |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 return ObjectBits::encode(object_.code()) | | 1070 return ObjectBits::encode(object_.code()) | |
1066 AddressBits::encode(addr_.code()) | | 1071 AddressBits::encode(addr_.code()) | |
1067 ScratchBits::encode(scratch_.code()); | 1072 ScratchBits::encode(scratch_.code()); |
1068 } | 1073 } |
1069 }; | 1074 }; |
1070 | 1075 |
1071 | 1076 |
1072 } } // namespace v8::internal | 1077 } } // namespace v8::internal |
1073 | 1078 |
1074 #endif // V8_X64_CODEGEN_X64_H_ | 1079 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |