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

Side by Side Diff: src/hydrogen-instructions.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 #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 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 std::ostream& HReturn::PrintDataTo(std::ostream& os) const { // NOLINT 1151 std::ostream& HReturn::PrintDataTo(std::ostream& os) const { // NOLINT
1152 return os << NameOf(value()) << " (pop " << NameOf(parameter_count()) 1152 return os << NameOf(value()) << " (pop " << NameOf(parameter_count())
1153 << " values)"; 1153 << " values)";
1154 } 1154 }
1155 1155
1156 1156
1157 Representation HBranch::observed_input_representation(int index) { 1157 Representation HBranch::observed_input_representation(int index) {
1158 if (expected_input_types_.Contains(ToBooleanStub::NULL_TYPE) || 1158 if (expected_input_types_.Contains(ToBooleanStub::NULL_TYPE) ||
1159 expected_input_types_.Contains(ToBooleanStub::SPEC_OBJECT) || 1159 expected_input_types_.Contains(ToBooleanStub::SPEC_OBJECT) ||
1160 expected_input_types_.Contains(ToBooleanStub::STRING) || 1160 expected_input_types_.Contains(ToBooleanStub::STRING) ||
1161 expected_input_types_.Contains(ToBooleanStub::SYMBOL)) { 1161 expected_input_types_.Contains(ToBooleanStub::SYMBOL) ||
1162 expected_input_types_.Contains(ToBooleanStub::SIMD_VALUE)) {
1162 return Representation::Tagged(); 1163 return Representation::Tagged();
1163 } 1164 }
1164 if (expected_input_types_.Contains(ToBooleanStub::UNDEFINED)) { 1165 if (expected_input_types_.Contains(ToBooleanStub::UNDEFINED)) {
1165 if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) { 1166 if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) {
1166 return Representation::Double(); 1167 return Representation::Double();
1167 } 1168 }
1168 return Representation::Tagged(); 1169 return Representation::Tagged();
1169 } 1170 }
1170 if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) { 1171 if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) {
1171 return Representation::Double(); 1172 return Representation::Double();
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 return heap->boolean_string(); 1317 return heap->boolean_string();
1317 } 1318 }
1318 if (unique.IsKnownGlobal(heap->null_value())) { 1319 if (unique.IsKnownGlobal(heap->null_value())) {
1319 return heap->object_string(); 1320 return heap->object_string();
1320 } 1321 }
1321 DCHECK(unique.IsKnownGlobal(heap->undefined_value())); 1322 DCHECK(unique.IsKnownGlobal(heap->undefined_value()));
1322 return heap->undefined_string(); 1323 return heap->undefined_string();
1323 } 1324 }
1324 case SYMBOL_TYPE: 1325 case SYMBOL_TYPE:
1325 return heap->symbol_string(); 1326 return heap->symbol_string();
1327 case FLOAT32X4_TYPE:
1328 return heap->float32x4_string();
1326 case JS_FUNCTION_TYPE: 1329 case JS_FUNCTION_TYPE:
1327 case JS_FUNCTION_PROXY_TYPE: 1330 case JS_FUNCTION_PROXY_TYPE:
1328 return heap->function_string(); 1331 return heap->function_string();
1329 default: 1332 default:
1330 return heap->object_string(); 1333 return heap->object_string();
1331 } 1334 }
1332 } 1335 }
1333 1336
1334 1337
1335 bool HTypeofIsAndBranch::KnownSuccessorBlock(HBasicBlock** block) { 1338 bool HTypeofIsAndBranch::KnownSuccessorBlock(HBasicBlock** block) {
(...skipping 3372 matching lines...) Expand 10 before | Expand all | Expand 10 after
4708 case HObjectAccess::kExternalMemory: 4711 case HObjectAccess::kExternalMemory:
4709 os << "[external-memory]"; 4712 os << "[external-memory]";
4710 break; 4713 break;
4711 } 4714 }
4712 4715
4713 return os << "@" << access.offset(); 4716 return os << "@" << access.offset();
4714 } 4717 }
4715 4718
4716 } // namespace internal 4719 } // namespace internal
4717 } // namespace v8 4720 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | test/mjsunit/object-toprimitive.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698