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

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

Issue 1250733005: SIMD.js Add the other SIMD Phase 1 types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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 4986 matching lines...) Expand 10 before | Expand all | Expand 10 after
4997 1 << Map::kIsUndetectable); 4997 1 << Map::kIsUndetectable);
4998 Split(zero, if_true, if_false, fall_through); 4998 Split(zero, if_true, if_false, fall_through);
4999 } else if (String::Equals(check, factory->symbol_string())) { 4999 } else if (String::Equals(check, factory->symbol_string())) {
5000 __ JumpIfSmi(eax, if_false); 5000 __ JumpIfSmi(eax, if_false);
5001 __ CmpObjectType(eax, SYMBOL_TYPE, edx); 5001 __ CmpObjectType(eax, SYMBOL_TYPE, edx);
5002 Split(equal, if_true, if_false, fall_through); 5002 Split(equal, if_true, if_false, fall_through);
5003 } else if (String::Equals(check, factory->float32x4_string())) { 5003 } else if (String::Equals(check, factory->float32x4_string())) {
5004 __ JumpIfSmi(eax, if_false); 5004 __ JumpIfSmi(eax, if_false);
5005 __ CmpObjectType(eax, FLOAT32X4_TYPE, edx); 5005 __ CmpObjectType(eax, FLOAT32X4_TYPE, edx);
5006 Split(equal, if_true, if_false, fall_through); 5006 Split(equal, if_true, if_false, fall_through);
5007 } else if (String::Equals(check, factory->int32x4_string())) {
5008 __ JumpIfSmi(eax, if_false);
5009 __ CmpObjectType(eax, INT32X4_TYPE, edx);
5010 Split(equal, if_true, if_false, fall_through);
5011 } else if (String::Equals(check, factory->bool32x4_string())) {
5012 __ JumpIfSmi(eax, if_false);
5013 __ CmpObjectType(eax, BOOL32X4_TYPE, edx);
5014 Split(equal, if_true, if_false, fall_through);
5015 } else if (String::Equals(check, factory->int16x8_string())) {
5016 __ JumpIfSmi(eax, if_false);
5017 __ CmpObjectType(eax, INT16X8_TYPE, edx);
5018 Split(equal, if_true, if_false, fall_through);
5019 } else if (String::Equals(check, factory->bool16x8_string())) {
5020 __ JumpIfSmi(eax, if_false);
5021 __ CmpObjectType(eax, BOOL16X8_TYPE, edx);
5022 Split(equal, if_true, if_false, fall_through);
5023 } else if (String::Equals(check, factory->int8x16_string())) {
5024 __ JumpIfSmi(eax, if_false);
5025 __ CmpObjectType(eax, INT8X16_TYPE, edx);
5026 Split(equal, if_true, if_false, fall_through);
5027 } else if (String::Equals(check, factory->bool8x16_string())) {
5028 __ JumpIfSmi(eax, if_false);
5029 __ CmpObjectType(eax, BOOL8X16_TYPE, edx);
5030 Split(equal, if_true, if_false, fall_through);
5007 } else if (String::Equals(check, factory->boolean_string())) { 5031 } else if (String::Equals(check, factory->boolean_string())) {
5008 __ cmp(eax, isolate()->factory()->true_value()); 5032 __ cmp(eax, isolate()->factory()->true_value());
5009 __ j(equal, if_true); 5033 __ j(equal, if_true);
5010 __ cmp(eax, isolate()->factory()->false_value()); 5034 __ cmp(eax, isolate()->factory()->false_value());
5011 Split(equal, if_true, if_false, fall_through); 5035 Split(equal, if_true, if_false, fall_through);
5012 } else if (String::Equals(check, factory->undefined_string())) { 5036 } else if (String::Equals(check, factory->undefined_string())) {
5013 __ cmp(eax, isolate()->factory()->undefined_value()); 5037 __ cmp(eax, isolate()->factory()->undefined_value());
5014 __ j(equal, if_true); 5038 __ j(equal, if_true);
5015 __ JumpIfSmi(eax, if_false); 5039 __ JumpIfSmi(eax, if_false);
5016 // Check for undetectable objects => true. 5040 // Check for undetectable objects => true.
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
5332 Assembler::target_address_at(call_target_address, 5356 Assembler::target_address_at(call_target_address,
5333 unoptimized_code)); 5357 unoptimized_code));
5334 return OSR_AFTER_STACK_CHECK; 5358 return OSR_AFTER_STACK_CHECK;
5335 } 5359 }
5336 5360
5337 5361
5338 } // namespace internal 5362 } // namespace internal
5339 } // namespace v8 5363 } // namespace v8
5340 5364
5341 #endif // V8_TARGET_ARCH_X87 5365 #endif // V8_TARGET_ARCH_X87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698