OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2138 ret(bytes_dropped); | 2138 ret(bytes_dropped); |
2139 } else { | 2139 } else { |
2140 pop(scratch); | 2140 pop(scratch); |
2141 add(esp, Immediate(bytes_dropped)); | 2141 add(esp, Immediate(bytes_dropped)); |
2142 push(scratch); | 2142 push(scratch); |
2143 ret(0); | 2143 ret(0); |
2144 } | 2144 } |
2145 } | 2145 } |
2146 | 2146 |
2147 | 2147 |
2148 | |
2149 | |
2150 void MacroAssembler::Drop(int stack_elements) { | 2148 void MacroAssembler::Drop(int stack_elements) { |
2151 if (stack_elements > 0) { | 2149 if (stack_elements > 0) { |
2152 add(esp, Immediate(stack_elements * kPointerSize)); | 2150 add(esp, Immediate(stack_elements * kPointerSize)); |
2153 } | 2151 } |
2154 } | 2152 } |
2155 | 2153 |
2156 | 2154 |
2157 void MacroAssembler::Move(Register dst, Register src) { | 2155 void MacroAssembler::Move(Register dst, Register src) { |
2158 if (!dst.is(src)) { | 2156 if (!dst.is(src)) { |
2159 mov(dst, src); | 2157 mov(dst, src); |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2638 cmp(length, Operand(bitmap_scratch, MemoryChunk::kSizeOffset)); | 2636 cmp(length, Operand(bitmap_scratch, MemoryChunk::kSizeOffset)); |
2639 Check(less_equal, "Live Bytes Count overflow chunk size"); | 2637 Check(less_equal, "Live Bytes Count overflow chunk size"); |
2640 } | 2638 } |
2641 | 2639 |
2642 bind(&done); | 2640 bind(&done); |
2643 } | 2641 } |
2644 | 2642 |
2645 } } // namespace v8::internal | 2643 } } // namespace v8::internal |
2646 | 2644 |
2647 #endif // V8_TARGET_ARCH_IA32 | 2645 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |