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

Side by Side Diff: src/compiler/code-assembler.cc

Issue 1904933002: Introduce bytecodes for assisting generator suspend and resume. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nix 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
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/interpreter/bytecode-array-builder.h » ('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/compiler/code-assembler.h" 5 #include "src/compiler/code-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript, a); 169 return raw_assembler_->TruncateFloat64ToInt32(TruncationMode::kJavaScript, a);
170 } 170 }
171 171
172 Node* CodeAssembler::ChangeUint32ToWord(Node* value) { 172 Node* CodeAssembler::ChangeUint32ToWord(Node* value) {
173 if (raw_assembler_->machine()->Is64()) { 173 if (raw_assembler_->machine()->Is64()) {
174 value = raw_assembler_->ChangeUint32ToUint64(value); 174 value = raw_assembler_->ChangeUint32ToUint64(value);
175 } 175 }
176 return value; 176 return value;
177 } 177 }
178 178
179 Node* CodeAssembler::ChangeInt32ToIntPtr(Node* value) {
180 if (raw_assembler_->machine()->Is64()) {
181 value = raw_assembler_->ChangeInt32ToInt64(value);
182 }
183 return value;
184 }
185
179 #define DEFINE_CODE_ASSEMBLER_UNARY_OP(name) \ 186 #define DEFINE_CODE_ASSEMBLER_UNARY_OP(name) \
180 Node* CodeAssembler::name(Node* a) { return raw_assembler_->name(a); } 187 Node* CodeAssembler::name(Node* a) { return raw_assembler_->name(a); }
181 CODE_ASSEMBLER_UNARY_OP_LIST(DEFINE_CODE_ASSEMBLER_UNARY_OP) 188 CODE_ASSEMBLER_UNARY_OP_LIST(DEFINE_CODE_ASSEMBLER_UNARY_OP)
182 #undef DEFINE_CODE_ASSEMBLER_UNARY_OP 189 #undef DEFINE_CODE_ASSEMBLER_UNARY_OP
183 190
184 Node* CodeAssembler::Load(MachineType rep, Node* base) { 191 Node* CodeAssembler::Load(MachineType rep, Node* base) {
185 return raw_assembler_->Load(rep, base); 192 return raw_assembler_->Load(rep, base);
186 } 193 }
187 194
188 Node* CodeAssembler::Load(MachineType rep, Node* base, Node* index) { 195 Node* CodeAssembler::Load(MachineType rep, Node* base, Node* index) {
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 } 695 }
689 } 696 }
690 } 697 }
691 698
692 bound_ = true; 699 bound_ = true;
693 } 700 }
694 701
695 } // namespace compiler 702 } // namespace compiler
696 } // namespace internal 703 } // namespace internal
697 } // namespace v8 704 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698