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

Side by Side Diff: src/interpreter/bytecodes.h

Issue 1922523002: [Interpreter] Use FastCloneShallowObjectStub in CreateObjectLiteral bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Toon's comments Created 4 years, 7 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 #ifndef V8_INTERPRETER_BYTECODES_H_ 5 #ifndef V8_INTERPRETER_BYTECODES_H_
6 #define V8_INTERPRETER_BYTECODES_H_ 6 #define V8_INTERPRETER_BYTECODES_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 // Clients of this interface shouldn't depend on lots of interpreter internals. 10 // Clients of this interface shouldn't depend on lots of interpreter internals.
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 // OperandScale values. 576 // OperandScale values.
577 static bool BytecodeHasHandler(Bytecode bytecode, OperandScale operand_scale); 577 static bool BytecodeHasHandler(Bytecode bytecode, OperandScale operand_scale);
578 578
579 // Return the next larger operand scale. 579 // Return the next larger operand scale.
580 static OperandScale NextOperandScale(OperandScale operand_scale); 580 static OperandScale NextOperandScale(OperandScale operand_scale);
581 581
582 private: 582 private:
583 DISALLOW_IMPLICIT_CONSTRUCTORS(Bytecodes); 583 DISALLOW_IMPLICIT_CONSTRUCTORS(Bytecodes);
584 }; 584 };
585 585
586 class CreateObjectLiteralFlags {
587 public:
588 class FlagsBits : public BitField8<int, 0, 3> {};
589 class FastClonePropertiesCountBits : public BitField8<int, 3, 3> {};
590 };
591
586 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 592 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
587 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 593 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
588 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 594 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
589 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 595 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
590 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 596 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
591 597
592 } // namespace interpreter 598 } // namespace interpreter
593 } // namespace internal 599 } // namespace internal
594 } // namespace v8 600 } // namespace v8
595 601
596 #endif // V8_INTERPRETER_BYTECODES_H_ 602 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698