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/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: 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_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 5105 matching lines...) Expand 10 before | Expand all | Expand 10 after
5116 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx); 5116 __ CmpObjectType(eax, FIRST_NONSTRING_TYPE, edx);
5117 __ j(above_equal, if_false); 5117 __ j(above_equal, if_false);
5118 // Check for undetectable objects => false. 5118 // Check for undetectable objects => false.
5119 __ test_b(FieldOperand(edx, Map::kBitFieldOffset), 5119 __ test_b(FieldOperand(edx, Map::kBitFieldOffset),
5120 1 << Map::kIsUndetectable); 5120 1 << Map::kIsUndetectable);
5121 Split(zero, if_true, if_false, fall_through); 5121 Split(zero, if_true, if_false, fall_through);
5122 } else if (String::Equals(check, factory->symbol_string())) { 5122 } else if (String::Equals(check, factory->symbol_string())) {
5123 __ JumpIfSmi(eax, if_false); 5123 __ JumpIfSmi(eax, if_false);
5124 __ CmpObjectType(eax, SYMBOL_TYPE, edx); 5124 __ CmpObjectType(eax, SYMBOL_TYPE, edx);
5125 Split(equal, if_true, if_false, fall_through); 5125 Split(equal, if_true, if_false, fall_through);
5126 } else if (String::Equals(check, factory->float32x4_string())) {
5127 __ JumpIfSmi(eax, if_false);
5128 __ CmpObjectType(eax, FLOAT32X4_TYPE, edx);
5129 Split(equal, if_true, if_false, fall_through);
5126 } else if (String::Equals(check, factory->boolean_string())) { 5130 } else if (String::Equals(check, factory->boolean_string())) {
5127 __ cmp(eax, isolate()->factory()->true_value()); 5131 __ cmp(eax, isolate()->factory()->true_value());
5128 __ j(equal, if_true); 5132 __ j(equal, if_true);
5129 __ cmp(eax, isolate()->factory()->false_value()); 5133 __ cmp(eax, isolate()->factory()->false_value());
5130 Split(equal, if_true, if_false, fall_through); 5134 Split(equal, if_true, if_false, fall_through);
5131 } else if (String::Equals(check, factory->undefined_string())) { 5135 } else if (String::Equals(check, factory->undefined_string())) {
5132 __ cmp(eax, isolate()->factory()->undefined_value()); 5136 __ cmp(eax, isolate()->factory()->undefined_value());
5133 __ j(equal, if_true); 5137 __ j(equal, if_true);
5134 __ JumpIfSmi(eax, if_false); 5138 __ JumpIfSmi(eax, if_false);
5135 // Check for undetectable objects => true. 5139 // Check for undetectable objects => true.
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
5451 Assembler::target_address_at(call_target_address, 5455 Assembler::target_address_at(call_target_address,
5452 unoptimized_code)); 5456 unoptimized_code));
5453 return OSR_AFTER_STACK_CHECK; 5457 return OSR_AFTER_STACK_CHECK;
5454 } 5458 }
5455 5459
5456 5460
5457 } // namespace internal 5461 } // namespace internal
5458 } // namespace v8 5462 } // namespace v8
5459 5463
5460 #endif // V8_TARGET_ARCH_X87 5464 #endif // V8_TARGET_ARCH_X87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698