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

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 2504153002: [TypeFeedbackVector] Root literal arrays in function literals slots (Closed)
Patch Set: REBASE. Created 4 years 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/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 #include "src/globals.h" 7 #include "src/globals.h"
8 #include "src/interpreter/bytecode-array-writer.h" 8 #include "src/interpreter/bytecode-array-writer.h"
9 #include "src/interpreter/bytecode-dead-code-optimizer.h" 9 #include "src/interpreter/bytecode-dead-code-optimizer.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 if (language_mode == SLOPPY) { 567 if (language_mode == SLOPPY) {
568 OutputStaKeyedPropertySloppy(object, key, feedback_slot); 568 OutputStaKeyedPropertySloppy(object, key, feedback_slot);
569 } else { 569 } else {
570 DCHECK_EQ(language_mode, STRICT); 570 DCHECK_EQ(language_mode, STRICT);
571 OutputStaKeyedPropertyStrict(object, key, feedback_slot); 571 OutputStaKeyedPropertyStrict(object, key, feedback_slot);
572 } 572 }
573 return *this; 573 return *this;
574 } 574 }
575 575
576 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateClosure(size_t entry, 576 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateClosure(size_t entry,
577 int flags) { 577 int slot, int flags) {
578 OutputCreateClosure(entry, flags); 578 OutputCreateClosure(entry, slot, flags);
579 return *this; 579 return *this;
580 } 580 }
581 581
582 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateBlockContext( 582 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateBlockContext(
583 Handle<ScopeInfo> scope_info) { 583 Handle<ScopeInfo> scope_info) {
584 size_t entry = GetConstantPoolEntry(scope_info); 584 size_t entry = GetConstantPoolEntry(scope_info);
585 OutputCreateBlockContext(entry); 585 OutputCreateBlockContext(entry);
586 return *this; 586 return *this;
587 } 587 }
588 588
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 RegisterList reg_list) { 1026 RegisterList reg_list) {
1027 DCHECK(RegisterListIsValid(reg_list)); 1027 DCHECK(RegisterListIsValid(reg_list));
1028 if (register_optimizer_) 1028 if (register_optimizer_)
1029 register_optimizer_->PrepareOutputRegisterList(reg_list); 1029 register_optimizer_->PrepareOutputRegisterList(reg_list);
1030 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1030 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1031 } 1031 }
1032 1032
1033 } // namespace interpreter 1033 } // namespace interpreter
1034 } // namespace internal 1034 } // namespace internal
1035 } // namespace v8 1035 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698