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

Side by Side Diff: src/x64/code-stubs-x64.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/types.cc ('k') | src/x64/full-codegen-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after
1569 __ j(equal, &heap_number, Label::kNear); 1569 __ j(equal, &heap_number, Label::kNear);
1570 if (cc != equal) { 1570 if (cc != equal) {
1571 __ movp(rcx, FieldOperand(rax, HeapObject::kMapOffset)); 1571 __ movp(rcx, FieldOperand(rax, HeapObject::kMapOffset));
1572 __ movzxbl(rcx, FieldOperand(rcx, Map::kInstanceTypeOffset)); 1572 __ movzxbl(rcx, FieldOperand(rcx, Map::kInstanceTypeOffset));
1573 // Call runtime on identical objects. Otherwise return equal. 1573 // Call runtime on identical objects. Otherwise return equal.
1574 __ cmpb(rcx, Immediate(static_cast<uint8_t>(FIRST_SPEC_OBJECT_TYPE))); 1574 __ cmpb(rcx, Immediate(static_cast<uint8_t>(FIRST_SPEC_OBJECT_TYPE)));
1575 __ j(above_equal, &runtime_call, Label::kFar); 1575 __ j(above_equal, &runtime_call, Label::kFar);
1576 // Call runtime on identical symbols since we need to throw a TypeError. 1576 // Call runtime on identical symbols since we need to throw a TypeError.
1577 __ cmpb(rcx, Immediate(static_cast<uint8_t>(SYMBOL_TYPE))); 1577 __ cmpb(rcx, Immediate(static_cast<uint8_t>(SYMBOL_TYPE)));
1578 __ j(equal, &runtime_call, Label::kFar); 1578 __ j(equal, &runtime_call, Label::kFar);
1579 // Call runtime on identical SIMD values since we must throw a TypeError.
1580 __ cmpb(rcx, Immediate(static_cast<uint8_t>(FLOAT32X4_TYPE)));
1581 __ j(equal, &runtime_call, Label::kFar);
1579 if (is_strong(strength())) { 1582 if (is_strong(strength())) {
1580 // We have already tested for smis and heap numbers, so if both 1583 // We have already tested for smis and heap numbers, so if both
1581 // arguments are not strings we must proceed to the slow case. 1584 // arguments are not strings we must proceed to the slow case.
1582 __ testb(rcx, Immediate(kIsNotStringMask)); 1585 __ testb(rcx, Immediate(kIsNotStringMask));
1583 __ j(not_zero, &runtime_call, Label::kFar); 1586 __ j(not_zero, &runtime_call, Label::kFar);
1584 } 1587 }
1585 } 1588 }
1586 __ Set(rax, EQUAL); 1589 __ Set(rax, EQUAL);
1587 __ ret(0); 1590 __ ret(0);
1588 1591
(...skipping 3840 matching lines...) Expand 10 before | Expand all | Expand 10 after
5429 kStackSpace, nullptr, return_value_operand, NULL); 5432 kStackSpace, nullptr, return_value_operand, NULL);
5430 } 5433 }
5431 5434
5432 5435
5433 #undef __ 5436 #undef __
5434 5437
5435 } // namespace internal 5438 } // namespace internal
5436 } // namespace v8 5439 } // namespace v8
5437 5440
5438 #endif // V8_TARGET_ARCH_X64 5441 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/types.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698