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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 1273353003: [simd.js] Single SIMD128_VALUE_TYPE for all Simd128Values. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow check failures. REBASE. 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
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/code-stubs-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 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/double.h" 8 #include "src/double.h"
9 #include "src/elements.h" 9 #include "src/elements.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 return heap->boolean_string(); 1319 return heap->boolean_string();
1320 } 1320 }
1321 if (unique.IsKnownGlobal(heap->null_value())) { 1321 if (unique.IsKnownGlobal(heap->null_value())) {
1322 return heap->object_string(); 1322 return heap->object_string();
1323 } 1323 }
1324 DCHECK(unique.IsKnownGlobal(heap->undefined_value())); 1324 DCHECK(unique.IsKnownGlobal(heap->undefined_value()));
1325 return heap->undefined_string(); 1325 return heap->undefined_string();
1326 } 1326 }
1327 case SYMBOL_TYPE: 1327 case SYMBOL_TYPE:
1328 return heap->symbol_string(); 1328 return heap->symbol_string();
1329 case FLOAT32X4_TYPE: 1329 case SIMD128_VALUE_TYPE: {
1330 return heap->float32x4_string(); 1330 Unique<Map> map = constant->ObjectMap();
1331 case INT32X4_TYPE: 1331 #define SIMD128_TYPE(TYPE, Type, type, lane_count, lane_type) \
1332 return heap->int32x4_string(); 1332 if (map.IsKnownGlobal(heap->type##_map())) { \
1333 case BOOL32X4_TYPE: 1333 return heap->type##_string(); \
1334 return heap->bool32x4_string(); 1334 }
1335 case INT16X8_TYPE: 1335 SIMD128_TYPES(SIMD128_TYPE)
1336 return heap->int16x8_string(); 1336 #undef SIMD128_TYPE
1337 case BOOL16X8_TYPE: 1337 UNREACHABLE();
1338 return heap->bool16x8_string(); 1338 return nullptr;
1339 case INT8X16_TYPE: 1339 }
1340 return heap->int8x16_string();
1341 case BOOL8X16_TYPE:
1342 return heap->bool8x16_string();
1343 case JS_FUNCTION_TYPE: 1340 case JS_FUNCTION_TYPE:
1344 case JS_FUNCTION_PROXY_TYPE: 1341 case JS_FUNCTION_PROXY_TYPE:
1345 return heap->function_string(); 1342 return heap->function_string();
1346 default: 1343 default:
1347 return heap->object_string(); 1344 return heap->object_string();
1348 } 1345 }
1349 } 1346 }
1350 1347
1351 1348
1352 bool HTypeofIsAndBranch::KnownSuccessorBlock(HBasicBlock** block) { 1349 bool HTypeofIsAndBranch::KnownSuccessorBlock(HBasicBlock** block) {
(...skipping 3394 matching lines...) Expand 10 before | Expand all | Expand 10 after
4747 case HObjectAccess::kExternalMemory: 4744 case HObjectAccess::kExternalMemory:
4748 os << "[external-memory]"; 4745 os << "[external-memory]";
4749 break; 4746 break;
4750 } 4747 }
4751 4748
4752 return os << "@" << access.offset(); 4749 return os << "@" << access.offset();
4753 } 4750 }
4754 4751
4755 } // namespace internal 4752 } // namespace internal
4756 } // namespace v8 4753 } // namespace v8
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698