Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(783)

Side by Side Diff: src/mips64/macro-assembler-mips64.cc

Issue 531033003: MIPS: Minor-key-ify four stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698