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

Side by Side Diff: src/compiler/js-native-context-specialization.cc

Issue 2519943002: Version 5.7.4.1 (cherry-pick) (Closed)
Patch Set: Created 4 years, 1 month 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/compiler/effect-control-linearizer.cc ('k') | src/compiler/opcodes.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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-native-context-specialization.h" 5 #include "src/compiler/js-native-context-specialization.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.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 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 simplified()->StoreField(AccessBuilder::ForMap()), receiver, 1187 simplified()->StoreField(AccessBuilder::ForMap()), receiver,
1188 jsgraph()->Constant(transition_map), effect, control); 1188 jsgraph()->Constant(transition_map), effect, control);
1189 } 1189 }
1190 effect = graph()->NewNode(simplified()->StoreField(field_access), storage, 1190 effect = graph()->NewNode(simplified()->StoreField(field_access), storage,
1191 value, effect, control); 1191 value, effect, control);
1192 if (access_info.HasTransitionMap()) { 1192 if (access_info.HasTransitionMap()) {
1193 effect = graph()->NewNode(common()->FinishRegion(), 1193 effect = graph()->NewNode(common()->FinishRegion(),
1194 jsgraph()->UndefinedConstant(), effect); 1194 jsgraph()->UndefinedConstant(), effect);
1195 } 1195 }
1196 } 1196 }
1197 } else if (access_info.IsFunctionPrototype()) {
1198 DCHECK_EQ(AccessMode::kLoad, access_mode);
1199 value = effect = graph()->NewNode(simplified()->LoadFunctionPrototype(),
1200 receiver, effect, control);
1201 } else { 1197 } else {
1202 DCHECK(access_info.IsGeneric()); 1198 DCHECK(access_info.IsGeneric());
1203 DCHECK_EQ(AccessMode::kStore, access_mode); 1199 DCHECK_EQ(AccessMode::kStore, access_mode);
1204 DCHECK_EQ(FeedbackVectorSlotKind::STORE_IC, vector->GetKind(slot)); 1200 DCHECK_EQ(FeedbackVectorSlotKind::STORE_IC, vector->GetKind(slot));
1205 Callable callable = 1201 Callable callable =
1206 CodeFactory::StoreICInOptimizedCode(isolate(), language_mode); 1202 CodeFactory::StoreICInOptimizedCode(isolate(), language_mode);
1207 const CallInterfaceDescriptor& descriptor = callable.descriptor(); 1203 const CallInterfaceDescriptor& descriptor = callable.descriptor();
1208 CallDescriptor* desc = Linkage::GetStubCallDescriptor( 1204 CallDescriptor* desc = Linkage::GetStubCallDescriptor(
1209 isolate(), graph()->zone(), descriptor, 1205 isolate(), graph()->zone(), descriptor,
1210 descriptor.GetStackParameterCount(), CallDescriptor::kNeedsFrameState, 1206 descriptor.GetStackParameterCount(), CallDescriptor::kNeedsFrameState,
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 return jsgraph()->javascript(); 1803 return jsgraph()->javascript();
1808 } 1804 }
1809 1805
1810 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { 1806 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const {
1811 return jsgraph()->simplified(); 1807 return jsgraph()->simplified();
1812 } 1808 }
1813 1809
1814 } // namespace compiler 1810 } // namespace compiler
1815 } // namespace internal 1811 } // namespace internal
1816 } // namespace v8 1812 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/effect-control-linearizer.cc ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698