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_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 testp(scratch, Immediate(StoreBuffer::kStoreBufferOverflowBit)); | 228 testp(scratch, Immediate(StoreBuffer::kStoreBufferOverflowBit)); |
229 if (and_then == kReturnAtEnd) { | 229 if (and_then == kReturnAtEnd) { |
230 Label buffer_overflowed; | 230 Label buffer_overflowed; |
231 j(not_equal, &buffer_overflowed, Label::kNear); | 231 j(not_equal, &buffer_overflowed, Label::kNear); |
232 ret(0); | 232 ret(0); |
233 bind(&buffer_overflowed); | 233 bind(&buffer_overflowed); |
234 } else { | 234 } else { |
235 DCHECK(and_then == kFallThroughAtEnd); | 235 DCHECK(and_then == kFallThroughAtEnd); |
236 j(equal, &done, Label::kNear); | 236 j(equal, &done, Label::kNear); |
237 } | 237 } |
238 StoreBufferOverflowStub store_buffer_overflow = | 238 StoreBufferOverflowStub store_buffer_overflow(isolate(), save_fp); |
239 StoreBufferOverflowStub(isolate(), save_fp); | |
240 CallStub(&store_buffer_overflow); | 239 CallStub(&store_buffer_overflow); |
241 if (and_then == kReturnAtEnd) { | 240 if (and_then == kReturnAtEnd) { |
242 ret(0); | 241 ret(0); |
243 } else { | 242 } else { |
244 DCHECK(and_then == kFallThroughAtEnd); | 243 DCHECK(and_then == kFallThroughAtEnd); |
245 bind(&done); | 244 bind(&done); |
246 } | 245 } |
247 } | 246 } |
248 | 247 |
249 | 248 |
(...skipping 5126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5376 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift())); | 5375 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift())); |
5377 movl(rax, dividend); | 5376 movl(rax, dividend); |
5378 shrl(rax, Immediate(31)); | 5377 shrl(rax, Immediate(31)); |
5379 addl(rdx, rax); | 5378 addl(rdx, rax); |
5380 } | 5379 } |
5381 | 5380 |
5382 | 5381 |
5383 } } // namespace v8::internal | 5382 } } // namespace v8::internal |
5384 | 5383 |
5385 #endif // V8_TARGET_ARCH_X64 | 5384 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |