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

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

Issue 2586463002: Add CreateDataPropertyInLiteralFlags. (Closed)
Patch Set: Address review comments. 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
« 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 return *this; 547 return *this;
548 } 548 }
549 549
550 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadKeyedProperty( 550 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadKeyedProperty(
551 Register object, int feedback_slot) { 551 Register object, int feedback_slot) {
552 OutputLdaKeyedProperty(object, feedback_slot); 552 OutputLdaKeyedProperty(object, feedback_slot);
553 return *this; 553 return *this;
554 } 554 }
555 555
556 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral( 556 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreDataPropertyInLiteral(
557 Register object, Register name, Register value, Register attrs) { 557 Register object, Register name, Register value,
558 OutputStaDataPropertyInLiteral(object, name, value, attrs); 558 DataPropertyInLiteralFlags flags) {
559 OutputStaDataPropertyInLiteral(object, name, value, flags);
559 return *this; 560 return *this;
560 } 561 }
561 562
562 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty( 563 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreNamedProperty(
563 Register object, const Handle<Name> name, int feedback_slot, 564 Register object, const Handle<Name> name, int feedback_slot,
564 LanguageMode language_mode) { 565 LanguageMode language_mode) {
565 size_t name_index = GetConstantPoolEntry(name); 566 size_t name_index = GetConstantPoolEntry(name);
566 if (language_mode == SLOPPY) { 567 if (language_mode == SLOPPY) {
567 OutputStaNamedPropertySloppy(object, name_index, feedback_slot); 568 OutputStaNamedPropertySloppy(object, name_index, feedback_slot);
568 } else { 569 } else {
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 RegisterList reg_list) { 1041 RegisterList reg_list) {
1041 DCHECK(RegisterListIsValid(reg_list)); 1042 DCHECK(RegisterListIsValid(reg_list));
1042 if (register_optimizer_) 1043 if (register_optimizer_)
1043 register_optimizer_->PrepareOutputRegisterList(reg_list); 1044 register_optimizer_->PrepareOutputRegisterList(reg_list);
1044 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1045 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1045 } 1046 }
1046 1047
1047 } // namespace interpreter 1048 } // namespace interpreter
1048 } // namespace internal 1049 } // namespace internal
1049 } // namespace v8 1050 } // 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