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

Side by Side Diff: src/x87/code-stubs-x87.cc

Issue 1586013006: X87: [turbofan] avoid xchg instruction on Intel. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/crankshaft/x87/lithium-gap-resolver-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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after
3044 __ JumpIfNotRoot(ecx, Heap::kBooleanMapRootIndex, &miss, miss_distance); 3044 __ JumpIfNotRoot(ecx, Heap::kBooleanMapRootIndex, &miss, miss_distance);
3045 __ JumpIfNotRoot(ebx, Heap::kBooleanMapRootIndex, &miss, miss_distance); 3045 __ JumpIfNotRoot(ebx, Heap::kBooleanMapRootIndex, &miss, miss_distance);
3046 if (op() != Token::EQ_STRICT && is_strong(strength())) { 3046 if (op() != Token::EQ_STRICT && is_strong(strength())) {
3047 __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion); 3047 __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion);
3048 } else { 3048 } else {
3049 if (!Token::IsEqualityOp(op())) { 3049 if (!Token::IsEqualityOp(op())) {
3050 __ mov(eax, FieldOperand(eax, Oddball::kToNumberOffset)); 3050 __ mov(eax, FieldOperand(eax, Oddball::kToNumberOffset));
3051 __ AssertSmi(eax); 3051 __ AssertSmi(eax);
3052 __ mov(edx, FieldOperand(edx, Oddball::kToNumberOffset)); 3052 __ mov(edx, FieldOperand(edx, Oddball::kToNumberOffset));
3053 __ AssertSmi(edx); 3053 __ AssertSmi(edx);
3054 __ xchg(eax, edx); 3054 __ push(eax);
3055 __ mov(eax, edx);
3056 __ pop(edx);
3055 } 3057 }
3056 __ sub(eax, edx); 3058 __ sub(eax, edx);
3057 __ Ret(); 3059 __ Ret();
3058 } 3060 }
3059 3061
3060 __ bind(&miss); 3062 __ bind(&miss);
3061 GenerateMiss(masm); 3063 GenerateMiss(masm);
3062 } 3064 }
3063 3065
3064 3066
(...skipping 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after
5350 Operand(ebp, 7 * kPointerSize), NULL); 5352 Operand(ebp, 7 * kPointerSize), NULL);
5351 } 5353 }
5352 5354
5353 5355
5354 #undef __ 5356 #undef __
5355 5357
5356 } // namespace internal 5358 } // namespace internal
5357 } // namespace v8 5359 } // namespace v8
5358 5360
5359 #endif // V8_TARGET_ARCH_X87 5361 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-gap-resolver-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698