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

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

Issue 534883002: X87: Minor-key-ify four stubs. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@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
« no previous file with comments | « src/x87/code-stubs-x87.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 "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
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
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
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698