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 2500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2511 ret(bytes_dropped); | 2511 ret(bytes_dropped); |
2512 } else { | 2512 } else { |
2513 pop(scratch); | 2513 pop(scratch); |
2514 add(esp, Immediate(bytes_dropped)); | 2514 add(esp, Immediate(bytes_dropped)); |
2515 push(scratch); | 2515 push(scratch); |
2516 ret(0); | 2516 ret(0); |
2517 } | 2517 } |
2518 } | 2518 } |
2519 | 2519 |
2520 | 2520 |
2521 void MacroAssembler::VerifyX87StackDepth(uint depth) { | 2521 void MacroAssembler::VerifyX87StackDepth(uint32_t depth) { |
2522 // Make sure the floating point stack is either empty or has depth items. | 2522 // Make sure the floating point stack is either empty or has depth items. |
2523 ASSERT(depth <= 7); | 2523 ASSERT(depth <= 7); |
2524 | 2524 |
2525 // The top-of-stack (tos) is 7 if there is one item pushed. | 2525 // The top-of-stack (tos) is 7 if there is one item pushed. |
2526 int tos = (8 - depth) % 8; | 2526 int tos = (8 - depth) % 8; |
2527 const int kTopMask = 0x3800; | 2527 const int kTopMask = 0x3800; |
2528 push(eax); | 2528 push(eax); |
2529 fwait(); | 2529 fwait(); |
2530 fnstsw_ax(); | 2530 fnstsw_ax(); |
2531 and_(eax, kTopMask); | 2531 and_(eax, kTopMask); |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3115 j(greater, &no_info_available); | 3115 j(greater, &no_info_available); |
3116 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), | 3116 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), |
3117 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); | 3117 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); |
3118 bind(&no_info_available); | 3118 bind(&no_info_available); |
3119 } | 3119 } |
3120 | 3120 |
3121 | 3121 |
3122 } } // namespace v8::internal | 3122 } } // namespace v8::internal |
3123 | 3123 |
3124 #endif // V8_TARGET_ARCH_IA32 | 3124 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |