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

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 3 years, 12 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
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('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/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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 if (language_mode == SLOPPY) { 579 if (language_mode == SLOPPY) {
580 OutputStaKeyedPropertySloppy(object, key, feedback_slot); 580 OutputStaKeyedPropertySloppy(object, key, feedback_slot);
581 } else { 581 } else {
582 DCHECK_EQ(language_mode, STRICT); 582 DCHECK_EQ(language_mode, STRICT);
583 OutputStaKeyedPropertyStrict(object, key, feedback_slot); 583 OutputStaKeyedPropertyStrict(object, key, feedback_slot);
584 } 584 }
585 return *this; 585 return *this;
586 } 586 }
587 587
588 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateClosure(size_t entry, 588 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateClosure(size_t entry,
589 int flags) { 589 int slot, int flags) {
590 OutputCreateClosure(entry, flags); 590 OutputCreateClosure(entry, slot, flags);
591 return *this; 591 return *this;
592 } 592 }
593 593
594 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateBlockContext( 594 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateBlockContext(
595 Handle<ScopeInfo> scope_info) { 595 Handle<ScopeInfo> scope_info) {
596 size_t entry = GetConstantPoolEntry(scope_info); 596 size_t entry = GetConstantPoolEntry(scope_info);
597 OutputCreateBlockContext(entry); 597 OutputCreateBlockContext(entry);
598 return *this; 598 return *this;
599 } 599 }
600 600
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 RegisterList reg_list) { 1046 RegisterList reg_list) {
1047 DCHECK(RegisterListIsValid(reg_list)); 1047 DCHECK(RegisterListIsValid(reg_list));
1048 if (register_optimizer_) 1048 if (register_optimizer_)
1049 register_optimizer_->PrepareOutputRegisterList(reg_list); 1049 register_optimizer_->PrepareOutputRegisterList(reg_list);
1050 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1050 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1051 } 1051 }
1052 1052
1053 } // namespace interpreter 1053 } // namespace interpreter
1054 } // namespace internal 1054 } // namespace internal
1055 } // namespace v8 1055 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698