| 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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 test(scratch, Immediate(StoreBuffer::kStoreBufferOverflowBit)); | 171 test(scratch, Immediate(StoreBuffer::kStoreBufferOverflowBit)); |
| 172 if (and_then == kReturnAtEnd) { | 172 if (and_then == kReturnAtEnd) { |
| 173 Label buffer_overflowed; | 173 Label buffer_overflowed; |
| 174 j(not_equal, &buffer_overflowed, Label::kNear); | 174 j(not_equal, &buffer_overflowed, Label::kNear); |
| 175 ret(0); | 175 ret(0); |
| 176 bind(&buffer_overflowed); | 176 bind(&buffer_overflowed); |
| 177 } else { | 177 } else { |
| 178 DCHECK(and_then == kFallThroughAtEnd); | 178 DCHECK(and_then == kFallThroughAtEnd); |
| 179 j(equal, &done, Label::kNear); | 179 j(equal, &done, Label::kNear); |
| 180 } | 180 } |
| 181 StoreBufferOverflowStub store_buffer_overflow = | 181 StoreBufferOverflowStub store_buffer_overflow(isolate()); |
| 182 StoreBufferOverflowStub(isolate()); | |
| 183 CallStub(&store_buffer_overflow); | 182 CallStub(&store_buffer_overflow); |
| 184 if (and_then == kReturnAtEnd) { | 183 if (and_then == kReturnAtEnd) { |
| 185 ret(0); | 184 ret(0); |
| 186 } else { | 185 } else { |
| 187 DCHECK(and_then == kFallThroughAtEnd); | 186 DCHECK(and_then == kFallThroughAtEnd); |
| 188 bind(&done); | 187 bind(&done); |
| 189 } | 188 } |
| 190 } | 189 } |
| 191 | 190 |
| 192 | 191 |
| (...skipping 3125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3318 if (ms.shift() > 0) sar(edx, ms.shift()); | 3317 if (ms.shift() > 0) sar(edx, ms.shift()); |
| 3319 mov(eax, dividend); | 3318 mov(eax, dividend); |
| 3320 shr(eax, 31); | 3319 shr(eax, 31); |
| 3321 add(edx, eax); | 3320 add(edx, eax); |
| 3322 } | 3321 } |
| 3323 | 3322 |
| 3324 | 3323 |
| 3325 } } // namespace v8::internal | 3324 } } // namespace v8::internal |
| 3326 | 3325 |
| 3327 #endif // V8_TARGET_ARCH_X87 | 3326 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |