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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 void LoadGlobalReceiver(); | 416 void LoadGlobalReceiver(); |
417 | 417 |
418 // Generate code to push the value of an expression on top of the frame | 418 // Generate code to push the value of an expression on top of the frame |
419 // and then spill the frame fully to memory. This function is used | 419 // and then spill the frame fully to memory. This function is used |
420 // temporarily while the code generator is being transformed. | 420 // temporarily while the code generator is being transformed. |
421 void LoadAndSpill(Expression* expression, | 421 void LoadAndSpill(Expression* expression, |
422 TypeofState typeof_state = NOT_INSIDE_TYPEOF); | 422 TypeofState typeof_state = NOT_INSIDE_TYPEOF); |
423 | 423 |
424 // Read a value from a slot and leave it on top of the expression stack. | 424 // Read a value from a slot and leave it on top of the expression stack. |
425 void LoadFromSlot(Slot* slot, TypeofState typeof_state); | 425 void LoadFromSlot(Slot* slot, TypeofState typeof_state); |
| 426 void LoadFromSlotCheckForArguments(Slot* slot, TypeofState state); |
426 Result LoadFromGlobalSlotCheckExtensions(Slot* slot, | 427 Result LoadFromGlobalSlotCheckExtensions(Slot* slot, |
427 TypeofState typeof_state, | 428 TypeofState typeof_state, |
428 JumpTarget* slow); | 429 JumpTarget* slow); |
429 | 430 |
430 // Store the value on top of the expression stack into a slot, leaving the | 431 // Store the value on top of the expression stack into a slot, leaving the |
431 // value in place. | 432 // value in place. |
432 void StoreToSlot(Slot* slot, InitState init_state); | 433 void StoreToSlot(Slot* slot, InitState init_state); |
433 | 434 |
434 // Special code for typeof expressions: Unfortunately, we must | 435 // Special code for typeof expressions: Unfortunately, we must |
435 // be careful when loading the expression in 'typeof' | 436 // be careful when loading the expression in 'typeof' |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 friend class Reference; | 645 friend class Reference; |
645 friend class Result; | 646 friend class Result; |
646 | 647 |
647 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 648 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
648 }; | 649 }; |
649 | 650 |
650 | 651 |
651 } } // namespace v8::internal | 652 } } // namespace v8::internal |
652 | 653 |
653 #endif // V8_X64_CODEGEN_X64_H_ | 654 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |