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

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: 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/x87/code-stubs-x87.cc ('k') | src/x87/lithium-codegen-x87.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_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 5134 matching lines...) Expand 10 before | Expand all | Expand 10 after
5145 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx); 5145 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx);
5146 __ j(above_equal, if_false); 5146 __ j(above_equal, if_false);
5147 // Check for undetectable objects => false. 5147 // Check for undetectable objects => false.
5148 __ test_b(FieldOperand(edx, Map::kBitFieldOffset), 5148 __ test_b(FieldOperand(edx, Map::kBitFieldOffset),
5149 1 << Map::kIsUndetectable); 5149 1 << Map::kIsUndetectable);
5150 Split(zero, if_true, if_false, fall_through); 5150 Split(zero, if_true, if_false, fall_through);
5151 } else if (String::Equals(check, factory->symbol_string())) { 5151 } else if (String::Equals(check, factory->symbol_string())) {
5152 __ JumpIfSmi(eax, if_false); 5152 __ JumpIfSmi(eax, if_false);
5153 __ CmpObjectType(eax, SYMBOL_TYPE, edx); 5153 __ CmpObjectType(eax, SYMBOL_TYPE, edx);
5154 Split(equal, if_true, if_false, fall_through); 5154 Split(equal, if_true, if_false, fall_through);
5155 } else if (String::Equals(check, factory->float32x4_string())) {
5156 __ JumpIfSmi(eax, if_false);
5157 __ CmpObjectType(eax, FLOAT32X4_TYPE, edx);
5158 Split(equal, if_true, if_false, fall_through);
5155 } else if (String::Equals(check, factory->boolean_string())) { 5159 } else if (String::Equals(check, factory->boolean_string())) {
5156 __ cmp(eax, isolate()->factory()->true_value()); 5160 __ cmp(eax, isolate()->factory()->true_value());
5157 __ j(equal, if_true); 5161 __ j(equal, if_true);
5158 __ cmp(eax, isolate()->factory()->false_value()); 5162 __ cmp(eax, isolate()->factory()->false_value());
5159 Split(equal, if_true, if_false, fall_through); 5163 Split(equal, if_true, if_false, fall_through);
5160 } else if (String::Equals(check, factory->undefined_string())) { 5164 } else if (String::Equals(check, factory->undefined_string())) {
5161 __ cmp(eax, isolate()->factory()->undefined_value()); 5165 __ cmp(eax, isolate()->factory()->undefined_value());
5162 __ j(equal, if_true); 5166 __ j(equal, if_true);
5163 __ JumpIfSmi(eax, if_false); 5167 __ JumpIfSmi(eax, if_false);
5164 // Check for undetectable objects => true. 5168 // Check for undetectable objects => true.
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
5480 Assembler::target_address_at(call_target_address, 5484 Assembler::target_address_at(call_target_address,
5481 unoptimized_code)); 5485 unoptimized_code));
5482 return OSR_AFTER_STACK_CHECK; 5486 return OSR_AFTER_STACK_CHECK;
5483 } 5487 }
5484 5488
5485 5489
5486 } // namespace internal 5490 } // namespace internal
5487 } // namespace v8 5491 } // namespace v8
5488 5492
5489 #endif // V8_TARGET_ARCH_X87 5493 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698