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

Side by Side Diff: src/x87/full-codegen-x87.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_X87 7 #if V8_TARGET_ARCH_X87
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 5143 matching lines...) Expand 10 before | Expand all | Expand 10 after
5154 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx); 5154 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx);
5155 __ j(above_equal, if_false); 5155 __ j(above_equal, if_false);
5156 // Check for undetectable objects => false. 5156 // Check for undetectable objects => false.
5157 __ test_b(FieldOperand(edx, Map::kBitFieldOffset), 5157 __ test_b(FieldOperand(edx, Map::kBitFieldOffset),
5158 1 << Map::kIsUndetectable); 5158 1 << Map::kIsUndetectable);
5159 Split(zero, if_true, if_false, fall_through); 5159 Split(zero, if_true, if_false, fall_through);
5160 } else if (String::Equals(check, factory->symbol_string())) { 5160 } else if (String::Equals(check, factory->symbol_string())) {
5161 __ JumpIfSmi(eax, if_false); 5161 __ JumpIfSmi(eax, if_false);
5162 __ CmpObjectType(eax, SYMBOL_TYPE, edx); 5162 __ CmpObjectType(eax, SYMBOL_TYPE, edx);
5163 Split(equal, if_true, if_false, fall_through); 5163 Split(equal, if_true, if_false, fall_through);
5164 } else if (String::Equals(check, factory->float32x4_string())) {
5165 __ JumpIfSmi(eax, if_false);
5166 __ CmpObjectType(eax, FLOAT32X4_TYPE, edx);
5167 Split(equal, if_true, if_false, fall_through);
5164 } else if (String::Equals(check, factory->boolean_string())) { 5168 } else if (String::Equals(check, factory->boolean_string())) {
5165 __ cmp(eax, isolate()->factory()->true_value()); 5169 __ cmp(eax, isolate()->factory()->true_value());
5166 __ j(equal, if_true); 5170 __ j(equal, if_true);
5167 __ cmp(eax, isolate()->factory()->false_value()); 5171 __ cmp(eax, isolate()->factory()->false_value());
5168 Split(equal, if_true, if_false, fall_through); 5172 Split(equal, if_true, if_false, fall_through);
5169 } else if (String::Equals(check, factory->undefined_string())) { 5173 } else if (String::Equals(check, factory->undefined_string())) {
5170 __ cmp(eax, isolate()->factory()->undefined_value()); 5174 __ cmp(eax, isolate()->factory()->undefined_value());
5171 __ j(equal, if_true); 5175 __ j(equal, if_true);
5172 __ JumpIfSmi(eax, if_false); 5176 __ JumpIfSmi(eax, if_false);
5173 // Check for undetectable objects => true. 5177 // Check for undetectable objects => true.
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
5491 Assembler::target_address_at(call_target_address, 5495 Assembler::target_address_at(call_target_address,
5492 unoptimized_code)); 5496 unoptimized_code));
5493 return OSR_AFTER_STACK_CHECK; 5497 return OSR_AFTER_STACK_CHECK;
5494 } 5498 }
5495 5499
5496 5500
5497 } // namespace internal 5501 } // namespace internal
5498 } // namespace v8 5502 } // namespace v8
5499 5503
5500 #endif // V8_TARGET_ARCH_X87 5504 #endif // V8_TARGET_ARCH_X87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698