| 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_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.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(isolate()); | 182 StoreBufferOverflowStub store_buffer_overflow(isolate(), kDontSaveFPRegs); |
| 183 CallStub(&store_buffer_overflow); | 183 CallStub(&store_buffer_overflow); |
| 184 if (and_then == kReturnAtEnd) { | 184 if (and_then == kReturnAtEnd) { |
| 185 ret(0); | 185 ret(0); |
| 186 } else { | 186 } else { |
| 187 DCHECK(and_then == kFallThroughAtEnd); | 187 DCHECK(and_then == kFallThroughAtEnd); |
| 188 bind(&done); | 188 bind(&done); |
| 189 } | 189 } |
| 190 } | 190 } |
| 191 | 191 |
| 192 | 192 |
| (...skipping 3125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3318 if (ms.shift() > 0) sar(edx, ms.shift()); | 3318 if (ms.shift() > 0) sar(edx, ms.shift()); |
| 3319 mov(eax, dividend); | 3319 mov(eax, dividend); |
| 3320 shr(eax, 31); | 3320 shr(eax, 31); |
| 3321 add(edx, eax); | 3321 add(edx, eax); |
| 3322 } | 3322 } |
| 3323 | 3323 |
| 3324 | 3324 |
| 3325 } } // namespace v8::internal | 3325 } } // namespace v8::internal |
| 3326 | 3326 |
| 3327 #endif // V8_TARGET_ARCH_X87 | 3327 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |