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

Side by Side Diff: src/compiler/bytecode-graph-builder.cc

Issue 2619773002: [turbofan] Use feedback from StoreDataPropertyInLiteral. (Closed)
Patch Set: Delete comment. Created 3 years, 11 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 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/bytecode-graph-builder.h" 5 #include "src/compiler/bytecode-graph-builder.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compilation-info.h" 9 #include "src/compilation-info.h"
10 #include "src/compiler/compiler-source-position-table.h" 10 #include "src/compiler/compiler-source-position-table.h"
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 745
746 void BytecodeGraphBuilder::VisitStaGlobalSloppy() { 746 void BytecodeGraphBuilder::VisitStaGlobalSloppy() {
747 BuildStoreGlobal(LanguageMode::SLOPPY); 747 BuildStoreGlobal(LanguageMode::SLOPPY);
748 } 748 }
749 749
750 void BytecodeGraphBuilder::VisitStaGlobalStrict() { 750 void BytecodeGraphBuilder::VisitStaGlobalStrict() {
751 BuildStoreGlobal(LanguageMode::STRICT); 751 BuildStoreGlobal(LanguageMode::STRICT);
752 } 752 }
753 753
754 void BytecodeGraphBuilder::VisitStaDataPropertyInLiteral() { 754 void BytecodeGraphBuilder::VisitStaDataPropertyInLiteral() {
755 PrepareEagerCheckpoint();
756
755 Node* object = 757 Node* object =
756 environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0)); 758 environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0));
757 Node* name = 759 Node* name =
758 environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(1)); 760 environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(1));
759 Node* value = environment()->LookupAccumulator(); 761 Node* value = environment()->LookupAccumulator();
760 int flags = bytecode_iterator().GetFlagOperand(2); 762 int flags = bytecode_iterator().GetFlagOperand(2);
761 VectorSlotPair feedback = 763 VectorSlotPair feedback =
762 CreateVectorSlotPair(bytecode_iterator().GetIndexOperand(3)); 764 CreateVectorSlotPair(bytecode_iterator().GetIndexOperand(3));
763 765
764 const Operator* op = javascript()->StoreDataPropertyInLiteral(feedback); 766 const Operator* op = javascript()->StoreDataPropertyInLiteral(feedback);
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
2266 it->source_position().ScriptOffset(), start_position_.InliningId())); 2268 it->source_position().ScriptOffset(), start_position_.InliningId()));
2267 it->Advance(); 2269 it->Advance();
2268 } else { 2270 } else {
2269 DCHECK_GT(it->code_offset(), offset); 2271 DCHECK_GT(it->code_offset(), offset);
2270 } 2272 }
2271 } 2273 }
2272 2274
2273 } // namespace compiler 2275 } // namespace compiler
2274 } // namespace internal 2276 } // namespace internal
2275 } // namespace v8 2277 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698