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

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

Issue 2692933002: Revert of Remove SIMD.js from V8. (Closed)
Patch Set: Created 3 years, 10 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/x64/interface-descriptors-x64.cc ('k') | src/x87/interface-descriptors-x87.cc » ('j') | 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/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 __ j(equal, &generic_heap_number_comparison, Label::kNear); 785 __ j(equal, &generic_heap_number_comparison, Label::kNear);
786 if (cc != equal) { 786 if (cc != equal) {
787 __ mov(ecx, FieldOperand(eax, HeapObject::kMapOffset)); 787 __ mov(ecx, FieldOperand(eax, HeapObject::kMapOffset));
788 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset)); 788 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset));
789 // Call runtime on identical JSObjects. Otherwise return equal. 789 // Call runtime on identical JSObjects. Otherwise return equal.
790 __ cmpb(ecx, Immediate(FIRST_JS_RECEIVER_TYPE)); 790 __ cmpb(ecx, Immediate(FIRST_JS_RECEIVER_TYPE));
791 __ j(above_equal, &runtime_call, Label::kFar); 791 __ j(above_equal, &runtime_call, Label::kFar);
792 // Call runtime on identical symbols since we need to throw a TypeError. 792 // Call runtime on identical symbols since we need to throw a TypeError.
793 __ cmpb(ecx, Immediate(SYMBOL_TYPE)); 793 __ cmpb(ecx, Immediate(SYMBOL_TYPE));
794 __ j(equal, &runtime_call, Label::kFar); 794 __ j(equal, &runtime_call, Label::kFar);
795 // Call runtime on identical SIMD values since we must throw a TypeError.
796 __ cmpb(ecx, Immediate(SIMD128_VALUE_TYPE));
797 __ j(equal, &runtime_call, Label::kFar);
795 } 798 }
796 __ Move(eax, Immediate(Smi::FromInt(EQUAL))); 799 __ Move(eax, Immediate(Smi::FromInt(EQUAL)));
797 __ ret(0); 800 __ ret(0);
798 801
799 802
800 __ bind(&not_identical); 803 __ bind(&not_identical);
801 } 804 }
802 805
803 // Strict equality can quickly decide whether objects are equal. 806 // Strict equality can quickly decide whether objects are equal.
804 // Non-strict object equality is slower, so it is handled later in the stub. 807 // Non-strict object equality is slower, so it is handled later in the stub.
(...skipping 3091 matching lines...) Expand 10 before | Expand all | Expand 10 after
3896 kStackUnwindSpace, nullptr, return_value_operand, 3899 kStackUnwindSpace, nullptr, return_value_operand,
3897 NULL); 3900 NULL);
3898 } 3901 }
3899 3902
3900 #undef __ 3903 #undef __
3901 3904
3902 } // namespace internal 3905 } // namespace internal
3903 } // namespace v8 3906 } // namespace v8
3904 3907
3905 #endif // V8_TARGET_ARCH_X87 3908 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/interface-descriptors-x64.cc ('k') | src/x87/interface-descriptors-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698