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

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

Issue 2510743002: [interpreter] Bytecode for StaDataPropertyInLiteral. (Closed)
Patch Set: Add comment and move interpreter function. 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/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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 OutputLdaNamedProperty(object, name_index, feedback_slot); 534 OutputLdaNamedProperty(object, name_index, feedback_slot);
535 return *this; 535 return *this;
536 } 536 }
537 537
538 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadKeyedProperty( 538 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadKeyedProperty(
539 Register object, int feedback_slot) { 539 Register object, int feedback_slot) {
540 OutputLdaKeyedProperty(object, feedback_slot); 540 OutputLdaKeyedProperty(object, feedback_slot);
541 return *this; 541 return *this;
542 } 542 }
543 543
544 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral(
545 Register object, Register name, Register value, Register attrs) {
546 OutputStaDataPropertyInLiteral(object, name, value, attrs);
547 return *this;
548 }
549
544 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( 550 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty(
545 Register object, const Handle<Name> name, int feedback_slot, 551 Register object, const Handle<Name> name, int feedback_slot,
546 LanguageMode language_mode) { 552 LanguageMode language_mode) {
547 size_t name_index = GetConstantPoolEntry(name); 553 size_t name_index = GetConstantPoolEntry(name);
548 if (language_mode == SLOPPY) { 554 if (language_mode == SLOPPY) {
549 OutputStaNamedPropertySloppy(object, name_index, feedback_slot); 555 OutputStaNamedPropertySloppy(object, name_index, feedback_slot);
550 } else { 556 } else {
551 DCHECK_EQ(language_mode, STRICT); 557 DCHECK_EQ(language_mode, STRICT);
552 OutputStaNamedPropertyStrict(object, name_index, feedback_slot); 558 OutputStaNamedPropertyStrict(object, name_index, feedback_slot);
553 } 559 }
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 RegisterList reg_list) { 1014 RegisterList reg_list) {
1009 DCHECK(RegisterListIsValid(reg_list)); 1015 DCHECK(RegisterListIsValid(reg_list));
1010 if (register_optimizer_) 1016 if (register_optimizer_)
1011 register_optimizer_->PrepareOutputRegisterList(reg_list); 1017 register_optimizer_->PrepareOutputRegisterList(reg_list);
1012 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1018 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1013 } 1019 }
1014 1020
1015 } // namespace interpreter 1021 } // namespace interpreter
1016 } // namespace internal 1022 } // namespace internal
1017 } // namespace v8 1023 } // 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