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

Side by Side Diff: src/x64/code-stubs-x64.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/v8.gyp ('k') | src/x64/interface-descriptors-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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 __ j(equal, &heap_number, Label::kNear); 859 __ j(equal, &heap_number, Label::kNear);
860 if (cc != equal) { 860 if (cc != equal) {
861 __ movp(rcx, FieldOperand(rax, HeapObject::kMapOffset)); 861 __ movp(rcx, FieldOperand(rax, HeapObject::kMapOffset));
862 __ movzxbl(rcx, FieldOperand(rcx, Map::kInstanceTypeOffset)); 862 __ movzxbl(rcx, FieldOperand(rcx, Map::kInstanceTypeOffset));
863 // Call runtime on identical objects. Otherwise return equal. 863 // Call runtime on identical objects. Otherwise return equal.
864 __ cmpb(rcx, Immediate(static_cast<uint8_t>(FIRST_JS_RECEIVER_TYPE))); 864 __ cmpb(rcx, Immediate(static_cast<uint8_t>(FIRST_JS_RECEIVER_TYPE)));
865 __ j(above_equal, &runtime_call, Label::kFar); 865 __ j(above_equal, &runtime_call, Label::kFar);
866 // Call runtime on identical symbols since we need to throw a TypeError. 866 // Call runtime on identical symbols since we need to throw a TypeError.
867 __ cmpb(rcx, Immediate(static_cast<uint8_t>(SYMBOL_TYPE))); 867 __ cmpb(rcx, Immediate(static_cast<uint8_t>(SYMBOL_TYPE)));
868 __ j(equal, &runtime_call, Label::kFar); 868 __ j(equal, &runtime_call, Label::kFar);
869 // Call runtime on identical SIMD values since we must throw a TypeError.
870 __ cmpb(rcx, Immediate(static_cast<uint8_t>(SIMD128_VALUE_TYPE)));
871 __ j(equal, &runtime_call, Label::kFar);
869 } 872 }
870 __ Set(rax, EQUAL); 873 __ Set(rax, EQUAL);
871 __ ret(0); 874 __ ret(0);
872 875
873 __ bind(&heap_number); 876 __ bind(&heap_number);
874 // It is a heap number, so return equal if it's not NaN. 877 // It is a heap number, so return equal if it's not NaN.
875 // For NaN, return 1 for every condition except greater and 878 // For NaN, return 1 for every condition except greater and
876 // greater-equal. Return -1 for them, so the comparison yields 879 // greater-equal. Return -1 for them, so the comparison yields
877 // false for all conditions except not-equal. 880 // false for all conditions except not-equal.
878 __ Set(rax, EQUAL); 881 __ Set(rax, EQUAL);
(...skipping 2435 matching lines...) Expand 10 before | Expand all | Expand 10 after
3314 kStackUnwindSpace, nullptr, return_value_operand, 3317 kStackUnwindSpace, nullptr, return_value_operand,
3315 NULL); 3318 NULL);
3316 } 3319 }
3317 3320
3318 #undef __ 3321 #undef __
3319 3322
3320 } // namespace internal 3323 } // namespace internal
3321 } // namespace v8 3324 } // namespace v8
3322 3325
3323 #endif // V8_TARGET_ARCH_X64 3326 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/v8.gyp ('k') | src/x64/interface-descriptors-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698