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

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

Issue 1884183002: First version of the new generators implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 8 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 #include "src/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 #include "src/compiler.h" 6 #include "src/compiler.h"
7 #include "src/interpreter/interpreter-intrinsics.h" 7 #include "src/interpreter/interpreter-intrinsics.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 } 889 }
890 890
891 891
892 BytecodeArrayBuilder& BytecodeArrayBuilder::Return() { 892 BytecodeArrayBuilder& BytecodeArrayBuilder::Return() {
893 SetReturnPosition(); 893 SetReturnPosition();
894 Output(Bytecode::kReturn); 894 Output(Bytecode::kReturn);
895 exit_seen_in_block_ = true; 895 exit_seen_in_block_ = true;
896 return *this; 896 return *this;
897 } 897 }
898 898
899 BytecodeArrayBuilder& BytecodeArrayBuilder::Illegal() {
900 Output(Bytecode::kIllegal);
901 return *this;
902 }
903
899 BytecodeArrayBuilder& BytecodeArrayBuilder::Debugger() { 904 BytecodeArrayBuilder& BytecodeArrayBuilder::Debugger() {
900 Output(Bytecode::kDebugger); 905 Output(Bytecode::kDebugger);
901 return *this; 906 return *this;
902 } 907 }
903 908
904 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( 909 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare(
905 Register cache_info_triple) { 910 Register cache_info_triple) {
906 OperandScale operand_scale = 911 OperandScale operand_scale =
907 OperandSizesToScale(SizeForRegisterOperand(cache_info_triple)); 912 OperandSizesToScale(SizeForRegisterOperand(cache_info_triple));
908 OutputScaled(Bytecode::kForInPrepare, operand_scale, 913 OutputScaled(Bytecode::kForInPrepare, operand_scale,
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 } 1489 }
1485 1490
1486 uint32_t BytecodeArrayBuilder::UnsignedOperand(size_t value) { 1491 uint32_t BytecodeArrayBuilder::UnsignedOperand(size_t value) {
1487 DCHECK_LE(value, kMaxUInt32); 1492 DCHECK_LE(value, kMaxUInt32);
1488 return static_cast<uint32_t>(value); 1493 return static_cast<uint32_t>(value);
1489 } 1494 }
1490 1495
1491 } // namespace interpreter 1496 } // namespace interpreter
1492 } // namespace internal 1497 } // namespace internal
1493 } // namespace v8 1498 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698