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/ia32/full-codegen-ia32.cc

Issue 1160443009: Add SIMD.Float32x4 functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tests working. 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/ia32/code-stubs-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.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 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_IA32 7 #if V8_TARGET_ARCH_IA32
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 5135 matching lines...) Expand 10 before | Expand all | Expand 10 after
5146 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx); 5146 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx);
5147 __ j(above_equal, if_false); 5147 __ j(above_equal, if_false);
5148 // Check for undetectable objects => false. 5148 // Check for undetectable objects => false.
5149 __ test_b(FieldOperand(edx, Map::kBitFieldOffset), 5149 __ test_b(FieldOperand(edx, Map::kBitFieldOffset),
5150 1 << Map::kIsUndetectable); 5150 1 << Map::kIsUndetectable);
5151 Split(zero, if_true, if_false, fall_through); 5151 Split(zero, if_true, if_false, fall_through);
5152 } else if (String::Equals(check, factory->symbol_string())) { 5152 } else if (String::Equals(check, factory->symbol_string())) {
5153 __ JumpIfSmi(eax, if_false); 5153 __ JumpIfSmi(eax, if_false);
5154 __ CmpObjectType(eax, SYMBOL_TYPE, edx); 5154 __ CmpObjectType(eax, SYMBOL_TYPE, edx);
5155 Split(equal, if_true, if_false, fall_through); 5155 Split(equal, if_true, if_false, fall_through);
5156 } else if (String::Equals(check, factory->float32x4_string())) {
5157 __ JumpIfSmi(eax, if_false);
5158 __ CmpObjectType(eax, FLOAT32X4_TYPE, edx);
5159 Split(equal, if_true, if_false, fall_through);
5156 } else if (String::Equals(check, factory->boolean_string())) { 5160 } else if (String::Equals(check, factory->boolean_string())) {
5157 __ cmp(eax, isolate()->factory()->true_value()); 5161 __ cmp(eax, isolate()->factory()->true_value());
5158 __ j(equal, if_true); 5162 __ j(equal, if_true);
5159 __ cmp(eax, isolate()->factory()->false_value()); 5163 __ cmp(eax, isolate()->factory()->false_value());
5160 Split(equal, if_true, if_false, fall_through); 5164 Split(equal, if_true, if_false, fall_through);
5161 } else if (String::Equals(check, factory->undefined_string())) { 5165 } else if (String::Equals(check, factory->undefined_string())) {
5162 __ cmp(eax, isolate()->factory()->undefined_value()); 5166 __ cmp(eax, isolate()->factory()->undefined_value());
5163 __ j(equal, if_true); 5167 __ j(equal, if_true);
5164 __ JumpIfSmi(eax, if_false); 5168 __ JumpIfSmi(eax, if_false);
5165 // Check for undetectable objects => true. 5169 // Check for undetectable objects => true.
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
5483 Assembler::target_address_at(call_target_address, 5487 Assembler::target_address_at(call_target_address,
5484 unoptimized_code)); 5488 unoptimized_code));
5485 return OSR_AFTER_STACK_CHECK; 5489 return OSR_AFTER_STACK_CHECK;
5486 } 5490 }
5487 5491
5488 5492
5489 } // namespace internal 5493 } // namespace internal
5490 } // namespace v8 5494 } // namespace v8
5491 5495
5492 #endif // V8_TARGET_ARCH_IA32 5496 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698