OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 test(scratch, Immediate(StoreBuffer::kStoreBufferOverflowBit)); | 172 test(scratch, Immediate(StoreBuffer::kStoreBufferOverflowBit)); |
173 if (and_then == kReturnAtEnd) { | 173 if (and_then == kReturnAtEnd) { |
174 Label buffer_overflowed; | 174 Label buffer_overflowed; |
175 j(not_equal, &buffer_overflowed, Label::kNear); | 175 j(not_equal, &buffer_overflowed, Label::kNear); |
176 ret(0); | 176 ret(0); |
177 bind(&buffer_overflowed); | 177 bind(&buffer_overflowed); |
178 } else { | 178 } else { |
179 DCHECK(and_then == kFallThroughAtEnd); | 179 DCHECK(and_then == kFallThroughAtEnd); |
180 j(equal, &done, Label::kNear); | 180 j(equal, &done, Label::kNear); |
181 } | 181 } |
182 StoreBufferOverflowStub store_buffer_overflow = | 182 StoreBufferOverflowStub store_buffer_overflow(isolate(), save_fp); |
183 StoreBufferOverflowStub(isolate(), save_fp); | |
184 CallStub(&store_buffer_overflow); | 183 CallStub(&store_buffer_overflow); |
185 if (and_then == kReturnAtEnd) { | 184 if (and_then == kReturnAtEnd) { |
186 ret(0); | 185 ret(0); |
187 } else { | 186 } else { |
188 DCHECK(and_then == kFallThroughAtEnd); | 187 DCHECK(and_then == kFallThroughAtEnd); |
189 bind(&done); | 188 bind(&done); |
190 } | 189 } |
191 } | 190 } |
192 | 191 |
193 | 192 |
(...skipping 3237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3431 if (ms.shift() > 0) sar(edx, ms.shift()); | 3430 if (ms.shift() > 0) sar(edx, ms.shift()); |
3432 mov(eax, dividend); | 3431 mov(eax, dividend); |
3433 shr(eax, 31); | 3432 shr(eax, 31); |
3434 add(edx, eax); | 3433 add(edx, eax); |
3435 } | 3434 } |
3436 | 3435 |
3437 | 3436 |
3438 } } // namespace v8::internal | 3437 } } // namespace v8::internal |
3439 | 3438 |
3440 #endif // V8_TARGET_ARCH_IA32 | 3439 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |