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

Unified Diff: src/code-stubs-hydrogen.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/bootstrapper.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs-hydrogen.cc
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
index b4c74abdd09acfeb38da4567b533491d5573ce52..67fc22dec0b949521c2794a1d209e2cba4b532d3 100644
--- a/src/code-stubs-hydrogen.cc
+++ b/src/code-stubs-hydrogen.cc
@@ -399,53 +399,50 @@ HValue* CodeStubGraphBuilder<TypeofStub>::BuildCodeStub() {
is_function.Else();
{
IfBuilder is_float32x4(this);
- is_float32x4.If<HCompareNumericAndBranch>(
- instance_type, Add<HConstant>(FLOAT32X4_TYPE), Token::EQ);
+ is_float32x4.If<HCompareObjectEqAndBranch>(
+ map, Add<HConstant>(factory->float32x4_map()));
is_float32x4.Then();
{ Push(Add<HConstant>(factory->float32x4_string())); }
is_float32x4.Else();
{
IfBuilder is_int32x4(this);
- is_int32x4.If<HCompareNumericAndBranch>(
- instance_type, Add<HConstant>(INT32X4_TYPE), Token::EQ);
+ is_int32x4.If<HCompareObjectEqAndBranch>(
+ map, Add<HConstant>(factory->int32x4_map()));
is_int32x4.Then();
{ Push(Add<HConstant>(factory->int32x4_string())); }
is_int32x4.Else();
{
IfBuilder is_bool32x4(this);
- is_bool32x4.If<HCompareNumericAndBranch>(
- instance_type, Add<HConstant>(BOOL32X4_TYPE), Token::EQ);
+ is_bool32x4.If<HCompareObjectEqAndBranch>(
+ map, Add<HConstant>(factory->bool32x4_map()));
is_bool32x4.Then();
{ Push(Add<HConstant>(factory->bool32x4_string())); }
is_bool32x4.Else();
{
IfBuilder is_int16x8(this);
- is_int16x8.If<HCompareNumericAndBranch>(
- instance_type, Add<HConstant>(INT16X8_TYPE), Token::EQ);
+ is_int16x8.If<HCompareObjectEqAndBranch>(
+ map, Add<HConstant>(factory->int16x8_map()));
is_int16x8.Then();
{ Push(Add<HConstant>(factory->int16x8_string())); }
is_int16x8.Else();
{
IfBuilder is_bool16x8(this);
- is_bool16x8.If<HCompareNumericAndBranch>(
- instance_type, Add<HConstant>(BOOL16X8_TYPE),
- Token::EQ);
+ is_bool16x8.If<HCompareObjectEqAndBranch>(
+ map, Add<HConstant>(factory->bool16x8_map()));
is_bool16x8.Then();
{ Push(Add<HConstant>(factory->bool16x8_string())); }
is_bool16x8.Else();
{
IfBuilder is_int8x16(this);
- is_int8x16.If<HCompareNumericAndBranch>(
- instance_type, Add<HConstant>(INT8X16_TYPE),
- Token::EQ);
+ is_int8x16.If<HCompareObjectEqAndBranch>(
+ map, Add<HConstant>(factory->int8x16_map()));
is_int8x16.Then();
{ Push(Add<HConstant>(factory->int8x16_string())); }
is_int8x16.Else();
{
IfBuilder is_bool8x16(this);
- is_bool8x16.If<HCompareNumericAndBranch>(
- instance_type, Add<HConstant>(BOOL8X16_TYPE),
- Token::EQ);
+ is_bool8x16.If<HCompareObjectEqAndBranch>(
+ map, Add<HConstant>(factory->bool8x16_map()));
is_bool8x16.Then();
{ Push(Add<HConstant>(factory->bool8x16_string())); }
is_bool8x16.Else();
« no previous file with comments | « src/bootstrapper.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698