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

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

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Andreas' review comments 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
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_X87 7 #if V8_TARGET_ARCH_X87
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 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 __ j(equal, &generic_heap_number_comparison, Label::kNear); 1390 __ j(equal, &generic_heap_number_comparison, Label::kNear);
1391 if (cc != equal) { 1391 if (cc != equal) {
1392 __ mov(ecx, FieldOperand(eax, HeapObject::kMapOffset)); 1392 __ mov(ecx, FieldOperand(eax, HeapObject::kMapOffset));
1393 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset)); 1393 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset));
1394 // Call runtime on identical JSObjects. Otherwise return equal. 1394 // Call runtime on identical JSObjects. Otherwise return equal.
1395 __ cmpb(ecx, static_cast<uint8_t>(FIRST_SPEC_OBJECT_TYPE)); 1395 __ cmpb(ecx, static_cast<uint8_t>(FIRST_SPEC_OBJECT_TYPE));
1396 __ j(above_equal, &runtime_call, Label::kFar); 1396 __ j(above_equal, &runtime_call, Label::kFar);
1397 // Call runtime on identical symbols since we need to throw a TypeError. 1397 // Call runtime on identical symbols since we need to throw a TypeError.
1398 __ cmpb(ecx, static_cast<uint8_t>(SYMBOL_TYPE)); 1398 __ cmpb(ecx, static_cast<uint8_t>(SYMBOL_TYPE));
1399 __ j(equal, &runtime_call, Label::kFar); 1399 __ j(equal, &runtime_call, Label::kFar);
1400 // Call runtime on identical SIMD values since we must throw a TypeError.
1401 __ cmpb(ecx, static_cast<uint8_t>(FLOAT32X4_TYPE));
1402 __ j(equal, &runtime_call, Label::kFar);
1400 if (is_strong(strength())) { 1403 if (is_strong(strength())) {
1401 // We have already tested for smis and heap numbers, so if both 1404 // We have already tested for smis and heap numbers, so if both
1402 // arguments are not strings we must proceed to the slow case. 1405 // arguments are not strings we must proceed to the slow case.
1403 __ test(ecx, Immediate(kIsNotStringMask)); 1406 __ test(ecx, Immediate(kIsNotStringMask));
1404 __ j(not_zero, &runtime_call, Label::kFar); 1407 __ j(not_zero, &runtime_call, Label::kFar);
1405 } 1408 }
1406 } 1409 }
1407 __ Move(eax, Immediate(Smi::FromInt(EQUAL))); 1410 __ Move(eax, Immediate(Smi::FromInt(EQUAL)));
1408 __ ret(0); 1411 __ ret(0);
1409 1412
(...skipping 3728 matching lines...) Expand 10 before | Expand all | Expand 10 after
5138 Operand(ebp, 7 * kPointerSize), NULL); 5141 Operand(ebp, 7 * kPointerSize), NULL);
5139 } 5142 }
5140 5143
5141 5144
5142 #undef __ 5145 #undef __
5143 5146
5144 } // namespace internal 5147 } // namespace internal
5145 } // namespace v8 5148 } // namespace v8
5146 5149
5147 #endif // V8_TARGET_ARCH_X87 5150 #endif // V8_TARGET_ARCH_X87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698