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

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: samevalue.js tweak. 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 5140 matching lines...) Expand 10 before | Expand all | Expand 10 after
5151 // Check for undetectable objects => false. 5151 // Check for undetectable objects => false.
5152 __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdx); 5152 __ CmpObjectType(rax, FIRST_NONSTRING_TYPE, rdx);
5153 __ j(above_equal, if_false); 5153 __ j(above_equal, if_false);
5154 __ testb(FieldOperand(rdx, Map::kBitFieldOffset), 5154 __ testb(FieldOperand(rdx, Map::kBitFieldOffset),
5155 Immediate(1 << Map::kIsUndetectable)); 5155 Immediate(1 << Map::kIsUndetectable));
5156 Split(zero, if_true, if_false, fall_through); 5156 Split(zero, if_true, if_false, fall_through);
5157 } else if (String::Equals(check, factory->symbol_string())) { 5157 } else if (String::Equals(check, factory->symbol_string())) {
5158 __ JumpIfSmi(rax, if_false); 5158 __ JumpIfSmi(rax, if_false);
5159 __ CmpObjectType(rax, SYMBOL_TYPE, rdx); 5159 __ CmpObjectType(rax, SYMBOL_TYPE, rdx);
5160 Split(equal, if_true, if_false, fall_through); 5160 Split(equal, if_true, if_false, fall_through);
5161 } else if (String::Equals(check, factory->float32x4_string())) {
5162 __ JumpIfSmi(rax, if_false);
5163 __ CmpObjectType(rax, FLOAT32X4_TYPE, rdx);
5164 Split(equal, if_true, if_false, fall_through);
5161 } else if (String::Equals(check, factory->boolean_string())) { 5165 } else if (String::Equals(check, factory->boolean_string())) {
5162 __ CompareRoot(rax, Heap::kTrueValueRootIndex); 5166 __ CompareRoot(rax, Heap::kTrueValueRootIndex);
5163 __ j(equal, if_true); 5167 __ j(equal, if_true);
5164 __ CompareRoot(rax, Heap::kFalseValueRootIndex); 5168 __ CompareRoot(rax, Heap::kFalseValueRootIndex);
5165 Split(equal, if_true, if_false, fall_through); 5169 Split(equal, if_true, if_false, fall_through);
5166 } else if (String::Equals(check, factory->undefined_string())) { 5170 } else if (String::Equals(check, factory->undefined_string())) {
5167 __ CompareRoot(rax, Heap::kUndefinedValueRootIndex); 5171 __ CompareRoot(rax, Heap::kUndefinedValueRootIndex);
5168 __ j(equal, if_true); 5172 __ j(equal, if_true);
5169 __ JumpIfSmi(rax, if_false); 5173 __ JumpIfSmi(rax, if_false);
5170 // Check for undetectable objects => true. 5174 // Check for undetectable objects => true.
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
5487 Assembler::target_address_at(call_target_address, 5491 Assembler::target_address_at(call_target_address,
5488 unoptimized_code)); 5492 unoptimized_code));
5489 return OSR_AFTER_STACK_CHECK; 5493 return OSR_AFTER_STACK_CHECK;
5490 } 5494 }
5491 5495
5492 5496
5493 } // namespace internal 5497 } // namespace internal
5494 } // namespace v8 5498 } // namespace v8
5495 5499
5496 #endif // V8_TARGET_ARCH_X64 5500 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698