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

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

Issue 1219943002: Expose SIMD.Float32x4 type to Javascript. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Back out changes to include/v8.h 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 5144 matching lines...) Expand 10 before | Expand all | Expand 10 after
5155 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx); 5155 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx);
5156 __ j(above_equal, if_false); 5156 __ j(above_equal, if_false);
5157 // Check for undetectable objects => false. 5157 // Check for undetectable objects => false.
5158 __ test_b(FieldOperand(edx, Map::kBitFieldOffset), 5158 __ test_b(FieldOperand(edx, Map::kBitFieldOffset),
5159 1 << Map::kIsUndetectable); 5159 1 << Map::kIsUndetectable);
5160 Split(zero, if_true, if_false, fall_through); 5160 Split(zero, if_true, if_false, fall_through);
5161 } else if (String::Equals(check, factory->symbol_string())) { 5161 } else if (String::Equals(check, factory->symbol_string())) {
5162 __ JumpIfSmi(eax, if_false); 5162 __ JumpIfSmi(eax, if_false);
5163 __ CmpObjectType(eax, SYMBOL_TYPE, edx); 5163 __ CmpObjectType(eax, SYMBOL_TYPE, edx);
5164 Split(equal, if_true, if_false, fall_through); 5164 Split(equal, if_true, if_false, fall_through);
5165 } else if (String::Equals(check, factory->float32x4_string())) {
5166 __ JumpIfSmi(eax, if_false);
5167 __ CmpObjectType(eax, FLOAT32X4_TYPE, edx);
5168 Split(equal, if_true, if_false, fall_through);
5165 } else if (String::Equals(check, factory->boolean_string())) { 5169 } else if (String::Equals(check, factory->boolean_string())) {
5166 __ cmp(eax, isolate()->factory()->true_value()); 5170 __ cmp(eax, isolate()->factory()->true_value());
5167 __ j(equal, if_true); 5171 __ j(equal, if_true);
5168 __ cmp(eax, isolate()->factory()->false_value()); 5172 __ cmp(eax, isolate()->factory()->false_value());
5169 Split(equal, if_true, if_false, fall_through); 5173 Split(equal, if_true, if_false, fall_through);
5170 } else if (String::Equals(check, factory->undefined_string())) { 5174 } else if (String::Equals(check, factory->undefined_string())) {
5171 __ cmp(eax, isolate()->factory()->undefined_value()); 5175 __ cmp(eax, isolate()->factory()->undefined_value());
5172 __ j(equal, if_true); 5176 __ j(equal, if_true);
5173 __ JumpIfSmi(eax, if_false); 5177 __ JumpIfSmi(eax, if_false);
5174 // Check for undetectable objects => true. 5178 // Check for undetectable objects => true.
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
5490 Assembler::target_address_at(call_target_address, 5494 Assembler::target_address_at(call_target_address,
5491 unoptimized_code)); 5495 unoptimized_code));
5492 return OSR_AFTER_STACK_CHECK; 5496 return OSR_AFTER_STACK_CHECK;
5493 } 5497 }
5494 5498
5495 5499
5496 } // namespace internal 5500 } // namespace internal
5497 } // namespace v8 5501 } // namespace v8
5498 5502
5499 #endif // V8_TARGET_ARCH_IA32 5503 #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