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

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

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Back out changes to include/v8.h Created 5 years, 5 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/hydrogen-instructions.cc ('k') | src/ia32/full-codegen-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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 __ j(equal, &generic_heap_number_comparison, Label::kNear); 1697 __ j(equal, &generic_heap_number_comparison, Label::kNear);
1698 if (cc != equal) { 1698 if (cc != equal) {
1699 __ mov(ecx, FieldOperand(eax, HeapObject::kMapOffset)); 1699 __ mov(ecx, FieldOperand(eax, HeapObject::kMapOffset));
1700 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset)); 1700 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset));
1701 // Call runtime on identical JSObjects. Otherwise return equal. 1701 // Call runtime on identical JSObjects. Otherwise return equal.
1702 __ cmpb(ecx, static_cast<uint8_t>(FIRST_SPEC_OBJECT_TYPE)); 1702 __ cmpb(ecx, static_cast<uint8_t>(FIRST_SPEC_OBJECT_TYPE));
1703 __ j(above_equal, &runtime_call, Label::kFar); 1703 __ j(above_equal, &runtime_call, Label::kFar);
1704 // Call runtime on identical symbols since we need to throw a TypeError. 1704 // Call runtime on identical symbols since we need to throw a TypeError.
1705 __ cmpb(ecx, static_cast<uint8_t>(SYMBOL_TYPE)); 1705 __ cmpb(ecx, static_cast<uint8_t>(SYMBOL_TYPE));
1706 __ j(equal, &runtime_call, Label::kFar); 1706 __ j(equal, &runtime_call, Label::kFar);
1707 // Call runtime on identical SIMD values since we must throw a TypeError.
1708 __ cmpb(ecx, static_cast<uint8_t>(FLOAT32X4_TYPE));
1709 __ j(equal, &runtime_call, Label::kFar);
1707 if (is_strong(strength())) { 1710 if (is_strong(strength())) {
1708 // We have already tested for smis and heap numbers, so if both 1711 // We have already tested for smis and heap numbers, so if both
1709 // arguments are not strings we must proceed to the slow case. 1712 // arguments are not strings we must proceed to the slow case.
1710 __ test(ecx, Immediate(kIsNotStringMask)); 1713 __ test(ecx, Immediate(kIsNotStringMask));
1711 __ j(not_zero, &runtime_call, Label::kFar); 1714 __ j(not_zero, &runtime_call, Label::kFar);
1712 } 1715 }
1713 } 1716 }
1714 __ Move(eax, Immediate(Smi::FromInt(EQUAL))); 1717 __ Move(eax, Immediate(Smi::FromInt(EQUAL)));
1715 __ ret(0); 1718 __ ret(0);
1716 1719
(...skipping 3765 matching lines...) Expand 10 before | Expand all | Expand 10 after
5482 Operand(ebp, 7 * kPointerSize), NULL); 5485 Operand(ebp, 7 * kPointerSize), NULL);
5483 } 5486 }
5484 5487
5485 5488
5486 #undef __ 5489 #undef __
5487 5490
5488 } // namespace internal 5491 } // namespace internal
5489 } // namespace v8 5492 } // namespace v8
5490 5493
5491 #endif // V8_TARGET_ARCH_IA32 5494 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698