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/compiler/js-create-lowering.cc

Issue 2043183003: Replace all remaining Oddball checks with new function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: simplifying checks Created 4 years, 6 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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/compiler/js-create-lowering.h" 5 #include "src/compiler/js-create-lowering.h"
6 6
7 #include "src/allocation-site-scopes.h" 7 #include "src/allocation-site-scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/compilation-dependencies.h" 9 #include "src/compilation-dependencies.h"
10 #include "src/compiler/access-builder.h" 10 #include "src/compiler/access-builder.h"
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 effect, control); 960 effect, control);
961 effect = graph()->NewNode( 961 effect = graph()->NewNode(
962 simplified()->StoreField(AccessBuilder::ForHeapNumberValue()), 962 simplified()->StoreField(AccessBuilder::ForHeapNumberValue()),
963 value, jsgraph()->Constant( 963 value, jsgraph()->Constant(
964 Handle<HeapNumber>::cast(boilerplate_value)->value()), 964 Handle<HeapNumber>::cast(boilerplate_value)->value()),
965 effect, control); 965 effect, control);
966 value = effect = 966 value = effect =
967 graph()->NewNode(common()->FinishRegion(), value, effect); 967 graph()->NewNode(common()->FinishRegion(), value, effect);
968 } else if (property_details.representation().IsSmi()) { 968 } else if (property_details.representation().IsSmi()) {
969 // Ensure that value is stored as smi. 969 // Ensure that value is stored as smi.
970 value = boilerplate_value->IsUninitialized() 970 value = boilerplate_value->IsUninitialized(isolate())
971 ? jsgraph()->ZeroConstant() 971 ? jsgraph()->ZeroConstant()
972 : jsgraph()->Constant(boilerplate_value); 972 : jsgraph()->Constant(boilerplate_value);
973 } else { 973 } else {
974 value = jsgraph()->Constant(boilerplate_value); 974 value = jsgraph()->Constant(boilerplate_value);
975 } 975 }
976 } 976 }
977 inobject_fields.push_back(std::make_pair(access, value)); 977 inobject_fields.push_back(std::make_pair(access, value));
978 } 978 }
979 979
980 // Fill slack at the end of the boilerplate object with filler maps. 980 // Fill slack at the end of the boilerplate object with filler maps.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 return jsgraph()->simplified(); 1127 return jsgraph()->simplified();
1128 } 1128 }
1129 1129
1130 MachineOperatorBuilder* JSCreateLowering::machine() const { 1130 MachineOperatorBuilder* JSCreateLowering::machine() const {
1131 return jsgraph()->machine(); 1131 return jsgraph()->machine();
1132 } 1132 }
1133 1133
1134 } // namespace compiler 1134 } // namespace compiler
1135 } // namespace internal 1135 } // namespace internal
1136 } // namespace v8 1136 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | src/compiler/js-graph.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698