| 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_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
| 10 | 10 |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // Call stub on end of buffer. | 388 // Call stub on end of buffer. |
| 389 // Check for end of buffer. | 389 // Check for end of buffer. |
| 390 And(t8, scratch, Operand(StoreBuffer::kStoreBufferOverflowBit)); | 390 And(t8, scratch, Operand(StoreBuffer::kStoreBufferOverflowBit)); |
| 391 if (and_then == kFallThroughAtEnd) { | 391 if (and_then == kFallThroughAtEnd) { |
| 392 Branch(&done, eq, t8, Operand(zero_reg)); | 392 Branch(&done, eq, t8, Operand(zero_reg)); |
| 393 } else { | 393 } else { |
| 394 DCHECK(and_then == kReturnAtEnd); | 394 DCHECK(and_then == kReturnAtEnd); |
| 395 Ret(eq, t8, Operand(zero_reg)); | 395 Ret(eq, t8, Operand(zero_reg)); |
| 396 } | 396 } |
| 397 push(ra); | 397 push(ra); |
| 398 StoreBufferOverflowStub store_buffer_overflow = | 398 StoreBufferOverflowStub store_buffer_overflow(isolate(), fp_mode); |
| 399 StoreBufferOverflowStub(isolate(), fp_mode); | |
| 400 CallStub(&store_buffer_overflow); | 399 CallStub(&store_buffer_overflow); |
| 401 pop(ra); | 400 pop(ra); |
| 402 bind(&done); | 401 bind(&done); |
| 403 if (and_then == kReturnAtEnd) { | 402 if (and_then == kReturnAtEnd) { |
| 404 Ret(); | 403 Ret(); |
| 405 } | 404 } |
| 406 } | 405 } |
| 407 | 406 |
| 408 | 407 |
| 409 // ----------------------------------------------------------------------------- | 408 // ----------------------------------------------------------------------------- |
| (...skipping 5707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6117 } | 6116 } |
| 6118 if (ms.shift() > 0) sra(result, result, ms.shift()); | 6117 if (ms.shift() > 0) sra(result, result, ms.shift()); |
| 6119 srl(at, dividend, 31); | 6118 srl(at, dividend, 31); |
| 6120 Addu(result, result, Operand(at)); | 6119 Addu(result, result, Operand(at)); |
| 6121 } | 6120 } |
| 6122 | 6121 |
| 6123 | 6122 |
| 6124 } } // namespace v8::internal | 6123 } } // namespace v8::internal |
| 6125 | 6124 |
| 6126 #endif // V8_TARGET_ARCH_MIPS | 6125 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |