| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1100 ASSERT(ExitFrameConstants::kCallerFPOffset == 0 * kPointerSize); | 1100 ASSERT(ExitFrameConstants::kCallerFPOffset == 0 * kPointerSize); |
| 1101 push(ebp); | 1101 push(ebp); |
| 1102 mov(ebp, esp); | 1102 mov(ebp, esp); |
| 1103 | 1103 |
| 1104 // Reserve room for entry stack pointer and push the code object. | 1104 // Reserve room for entry stack pointer and push the code object. |
| 1105 ASSERT(ExitFrameConstants::kSPOffset == -1 * kPointerSize); | 1105 ASSERT(ExitFrameConstants::kSPOffset == -1 * kPointerSize); |
| 1106 push(Immediate(0)); // Saved entry sp, patched before call. | 1106 push(Immediate(0)); // Saved entry sp, patched before call. |
| 1107 push(Immediate(CodeObject())); // Accessed from ExitFrame::code_slot. | 1107 push(Immediate(CodeObject())); // Accessed from ExitFrame::code_slot. |
| 1108 | 1108 |
| 1109 // Save the frame pointer and the context in top. | 1109 // Save the frame pointer and the context in top. |
| 1110 ExternalReference c_entry_fp_address(Isolate::kCEntryFPAddress, | 1110 ExternalReference c_entry_fp_address(Isolate::kCEntryFPAddress, isolate()); |
| 1111 isolate()); | 1111 ExternalReference context_address(Isolate::kContextAddress, isolate()); |
| 1112 ExternalReference context_address(Isolate::kContextAddress, | |
| 1113 isolate()); | |
| 1114 mov(Operand::StaticVariable(c_entry_fp_address), ebp); | 1112 mov(Operand::StaticVariable(c_entry_fp_address), ebp); |
| 1115 mov(Operand::StaticVariable(context_address), esi); | 1113 mov(Operand::StaticVariable(context_address), esi); |
| 1116 } | 1114 } |
| 1117 | 1115 |
| 1118 | 1116 |
| 1119 void MacroAssembler::EnterExitFrameEpilogue(int argc, bool save_doubles) { | 1117 void MacroAssembler::EnterExitFrameEpilogue(int argc, bool save_doubles) { |
| 1120 // Optionally save all XMM registers. | 1118 // Optionally save all XMM registers. |
| 1121 if (save_doubles) { | 1119 if (save_doubles) { |
| 1122 CpuFeatureScope scope(this, SSE2); | 1120 CpuFeatureScope scope(this, SSE2); |
| 1123 int space = XMMRegister::kNumRegisters * kDoubleSize + argc * kPointerSize; | 1121 int space = XMMRegister::kNumRegisters * kDoubleSize + argc * kPointerSize; |
| (...skipping 2569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3693 cmp(scratch1, Immediate(DICTIONARY_ELEMENTS)); | 3691 cmp(scratch1, Immediate(DICTIONARY_ELEMENTS)); |
| 3694 j(equal, found); | 3692 j(equal, found); |
| 3695 mov(current, FieldOperand(current, Map::kPrototypeOffset)); | 3693 mov(current, FieldOperand(current, Map::kPrototypeOffset)); |
| 3696 cmp(current, Immediate(factory->null_value())); | 3694 cmp(current, Immediate(factory->null_value())); |
| 3697 j(not_equal, &loop_again); | 3695 j(not_equal, &loop_again); |
| 3698 } | 3696 } |
| 3699 | 3697 |
| 3700 } } // namespace v8::internal | 3698 } } // namespace v8::internal |
| 3701 | 3699 |
| 3702 #endif // V8_TARGET_ARCH_IA32 | 3700 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |