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

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

Issue 2695653005: 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/heap/objects-visiting.cc ('k') | src/ia32/interface-descriptors-ia32.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_IA32 5 #if V8_TARGET_ARCH_IA32
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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 __ j(equal, &generic_heap_number_comparison, Label::kNear); 966 __ j(equal, &generic_heap_number_comparison, Label::kNear);
967 if (cc != equal) { 967 if (cc != equal) {
968 __ mov(ecx, FieldOperand(eax, HeapObject::kMapOffset)); 968 __ mov(ecx, FieldOperand(eax, HeapObject::kMapOffset));
969 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset)); 969 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset));
970 // Call runtime on identical JSObjects. Otherwise return equal. 970 // Call runtime on identical JSObjects. Otherwise return equal.
971 __ cmpb(ecx, Immediate(FIRST_JS_RECEIVER_TYPE)); 971 __ cmpb(ecx, Immediate(FIRST_JS_RECEIVER_TYPE));
972 __ j(above_equal, &runtime_call, Label::kFar); 972 __ j(above_equal, &runtime_call, Label::kFar);
973 // Call runtime on identical symbols since we need to throw a TypeError. 973 // Call runtime on identical symbols since we need to throw a TypeError.
974 __ cmpb(ecx, Immediate(SYMBOL_TYPE)); 974 __ cmpb(ecx, Immediate(SYMBOL_TYPE));
975 __ j(equal, &runtime_call, Label::kFar); 975 __ j(equal, &runtime_call, Label::kFar);
976 // Call runtime on identical SIMD values since we must throw a TypeError.
977 __ cmpb(ecx, Immediate(SIMD128_VALUE_TYPE));
978 __ j(equal, &runtime_call, Label::kFar);
976 } 979 }
977 __ Move(eax, Immediate(Smi::FromInt(EQUAL))); 980 __ Move(eax, Immediate(Smi::FromInt(EQUAL)));
978 __ ret(0); 981 __ ret(0);
979 982
980 983
981 __ bind(&not_identical); 984 __ bind(&not_identical);
982 } 985 }
983 986
984 // Strict equality can quickly decide whether objects are equal. 987 // Strict equality can quickly decide whether objects are equal.
985 // Non-strict object equality is slower, so it is handled later in the stub. 988 // Non-strict object equality is slower, so it is handled later in the stub.
(...skipping 2355 matching lines...) Expand 10 before | Expand all | Expand 10 after
3341 kStackUnwindSpace, nullptr, return_value_operand, 3344 kStackUnwindSpace, nullptr, return_value_operand,
3342 NULL); 3345 NULL);
3343 } 3346 }
3344 3347
3345 #undef __ 3348 #undef __
3346 3349
3347 } // namespace internal 3350 } // namespace internal
3348 } // namespace v8 3351 } // namespace v8
3349 3352
3350 #endif // V8_TARGET_ARCH_IA32 3353 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap/objects-visiting.cc ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698