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

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 5180 matching lines...) Expand 10 before | Expand all | Expand 10 after
5191 // Check for undetectable objects => false. 5191 // Check for undetectable objects => false.
5192 __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdx); 5192 __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdx);
5193 __ j(above_equal, if_false); 5193 __ j(above_equal, if_false);
5194 __ testb(FieldOperand(rdx, Map::kBitFieldOffset), 5194 __ testb(FieldOperand(rdx, Map::kBitFieldOffset),
5195 Immediate(1 << Map::kIsUndetectable)); 5195 Immediate(1 << Map::kIsUndetectable));
5196 Split(zero, if_true, if_false, fall_through); 5196 Split(zero, if_true, if_false, fall_through);
5197 } else if (String::Equals(check, factory->symbol_string())) { 5197 } else if (String::Equals(check, factory->symbol_string())) {
5198 __ JumpIfSmi(rax, if_false); 5198 __ JumpIfSmi(rax, if_false);
5199 __ CmpObjectType(rax, SYMBOL_TYPE, rdx); 5199 __ CmpObjectType(rax, SYMBOL_TYPE, rdx);
5200 Split(equal, if_true, if_false, fall_through); 5200 Split(equal, if_true, if_false, fall_through);
5201 } else if (String::Equals(check, factory->float32x4_string())) {
5202 __ JumpIfSmi(rax, if_false);
5203 __ CmpObjectType(rax, FLOAT32X4_TYPE, rdx);
5204 Split(equal, if_true, if_false, fall_through);
5201 } else if (String::Equals(check, factory->boolean_string())) { 5205 } else if (String::Equals(check, factory->boolean_string())) {
5202 __ CompareRoot(rax, Heap::kTrueValueRootIndex); 5206 __ CompareRoot(rax, Heap::kTrueValueRootIndex);
5203 __ j(equal, if_true); 5207 __ j(equal, if_true);
5204 __ CompareRoot(rax, Heap::kFalseValueRootIndex); 5208 __ CompareRoot(rax, Heap::kFalseValueRootIndex);
5205 Split(equal, if_true, if_false, fall_through); 5209 Split(equal, if_true, if_false, fall_through);
5206 } else if (String::Equals(check, factory->undefined_string())) { 5210 } else if (String::Equals(check, factory->undefined_string())) {
5207 __ CompareRoot(rax, Heap::kUndefinedValueRootIndex); 5211 __ CompareRoot(rax, Heap::kUndefinedValueRootIndex);
5208 __ j(equal, if_true); 5212 __ j(equal, if_true);
5209 __ JumpIfSmi(rax, if_false); 5213 __ JumpIfSmi(rax, if_false);
5210 // Check for undetectable objects => true. 5214 // Check for undetectable objects => true.
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
5529 Assembler::target_address_at(call_target_address, 5533 Assembler::target_address_at(call_target_address,
5530 unoptimized_code)); 5534 unoptimized_code));
5531 return OSR_AFTER_STACK_CHECK; 5535 return OSR_AFTER_STACK_CHECK;
5532 } 5536 }
5533 5537
5534 5538
5535 } // namespace internal 5539 } // namespace internal
5536 } // namespace v8 5540 } // namespace v8
5537 5541
5538 #endif // V8_TARGET_ARCH_X64 5542 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698