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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 void LoadInSafeInt32Mode(Expression* expr, BreakTarget* unsafe_bailout); | 458 void LoadInSafeInt32Mode(Expression* expr, BreakTarget* unsafe_bailout); |
459 void LoadWithSafeInt32ModeDisabled(Expression* expr); | 459 void LoadWithSafeInt32ModeDisabled(Expression* expr); |
460 | 460 |
461 // Read a value from a slot and leave it on top of the expression stack. | 461 // Read a value from a slot and leave it on top of the expression stack. |
462 Result LoadFromSlot(Slot* slot, TypeofState typeof_state); | 462 Result LoadFromSlot(Slot* slot, TypeofState typeof_state); |
463 Result LoadFromSlotCheckForArguments(Slot* slot, TypeofState typeof_state); | 463 Result LoadFromSlotCheckForArguments(Slot* slot, TypeofState typeof_state); |
464 Result LoadFromGlobalSlotCheckExtensions(Slot* slot, | 464 Result LoadFromGlobalSlotCheckExtensions(Slot* slot, |
465 TypeofState typeof_state, | 465 TypeofState typeof_state, |
466 JumpTarget* slow); | 466 JumpTarget* slow); |
467 | 467 |
| 468 // Support for loading from local/global variables and arguments |
| 469 // whose location is known unless they are shadowed by |
| 470 // eval-introduced bindings. Generates no code for unsupported slot |
| 471 // types and therefore expects to fall through to the slow jump target. |
| 472 void EmitDynamicLoadFromSlotFastCase(Slot* slot, |
| 473 TypeofState typeof_state, |
| 474 Result* result, |
| 475 JumpTarget* slow, |
| 476 JumpTarget* done); |
| 477 |
468 // Store the value on top of the expression stack into a slot, leaving the | 478 // Store the value on top of the expression stack into a slot, leaving the |
469 // value in place. | 479 // value in place. |
470 void StoreToSlot(Slot* slot, InitState init_state); | 480 void StoreToSlot(Slot* slot, InitState init_state); |
471 | 481 |
472 // Support for compiling assignment expressions. | 482 // Support for compiling assignment expressions. |
473 void EmitSlotAssignment(Assignment* node); | 483 void EmitSlotAssignment(Assignment* node); |
474 void EmitNamedPropertyAssignment(Assignment* node); | 484 void EmitNamedPropertyAssignment(Assignment* node); |
475 void EmitKeyedPropertyAssignment(Assignment* node); | 485 void EmitKeyedPropertyAssignment(Assignment* node); |
476 | 486 |
477 // Receiver is passed on the frame and consumed. | 487 // Receiver is passed on the frame and consumed. |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 return ObjectBits::encode(object_.code()) | | 1115 return ObjectBits::encode(object_.code()) | |
1106 AddressBits::encode(addr_.code()) | | 1116 AddressBits::encode(addr_.code()) | |
1107 ScratchBits::encode(scratch_.code()); | 1117 ScratchBits::encode(scratch_.code()); |
1108 } | 1118 } |
1109 }; | 1119 }; |
1110 | 1120 |
1111 | 1121 |
1112 } } // namespace v8::internal | 1122 } } // namespace v8::internal |
1113 | 1123 |
1114 #endif // V8_IA32_CODEGEN_IA32_H_ | 1124 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |