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 <limits.h> // For LONG_MIN, LONG_MAX. | 5 #include <limits.h> // For LONG_MIN, LONG_MAX. |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 // Check for end of buffer. | 393 // Check for end of buffer. |
394 And(t8, scratch, Operand(StoreBuffer::kStoreBufferOverflowBit)); | 394 And(t8, scratch, Operand(StoreBuffer::kStoreBufferOverflowBit)); |
395 DCHECK(!scratch.is(t8)); | 395 DCHECK(!scratch.is(t8)); |
396 if (and_then == kFallThroughAtEnd) { | 396 if (and_then == kFallThroughAtEnd) { |
397 Branch(&done, eq, t8, Operand(zero_reg)); | 397 Branch(&done, eq, t8, Operand(zero_reg)); |
398 } else { | 398 } else { |
399 DCHECK(and_then == kReturnAtEnd); | 399 DCHECK(and_then == kReturnAtEnd); |
400 Ret(eq, t8, Operand(zero_reg)); | 400 Ret(eq, t8, Operand(zero_reg)); |
401 } | 401 } |
402 push(ra); | 402 push(ra); |
403 StoreBufferOverflowStub store_buffer_overflow = | 403 StoreBufferOverflowStub store_buffer_overflow(isolate(), fp_mode); |
404 StoreBufferOverflowStub(isolate(), fp_mode); | |
405 CallStub(&store_buffer_overflow); | 404 CallStub(&store_buffer_overflow); |
406 pop(ra); | 405 pop(ra); |
407 bind(&done); | 406 bind(&done); |
408 if (and_then == kReturnAtEnd) { | 407 if (and_then == kReturnAtEnd) { |
409 Ret(); | 408 Ret(); |
410 } | 409 } |
411 } | 410 } |
412 | 411 |
413 | 412 |
414 // ----------------------------------------------------------------------------- | 413 // ----------------------------------------------------------------------------- |
(...skipping 5687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6102 } | 6101 } |
6103 if (ms.shift() > 0) sra(result, result, ms.shift()); | 6102 if (ms.shift() > 0) sra(result, result, ms.shift()); |
6104 srl(at, dividend, 31); | 6103 srl(at, dividend, 31); |
6105 Addu(result, result, Operand(at)); | 6104 Addu(result, result, Operand(at)); |
6106 } | 6105 } |
6107 | 6106 |
6108 | 6107 |
6109 } } // namespace v8::internal | 6108 } } // namespace v8::internal |
6110 | 6109 |
6111 #endif // V8_TARGET_ARCH_MIPS64 | 6110 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |