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

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

Issue 2645313003: [async-iteration] implement Async-from-Sync Iterator (Closed)
Patch Set: rebase Created 3 years, 10 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/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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 } 180 }
181 181
182 Node* CodeAssembler::SmiConstant(int value) { 182 Node* CodeAssembler::SmiConstant(int value) {
183 return SmiConstant(Smi::FromInt(value)); 183 return SmiConstant(Smi::FromInt(value));
184 } 184 }
185 185
186 Node* CodeAssembler::HeapConstant(Handle<HeapObject> object) { 186 Node* CodeAssembler::HeapConstant(Handle<HeapObject> object) {
187 return raw_assembler()->HeapConstant(object); 187 return raw_assembler()->HeapConstant(object);
188 } 188 }
189 189
190 Node* CodeAssembler::CStringConstant(const char* str) {
jgruber 2017/02/17 12:28:23 Just an idea - maybe it'd make sense to add an opt
caitp 2017/02/17 14:56:10 I think most of the time in those situations we en
jgruber 2017/02/17 16:13:39 Hmm, I guess both aren't really satisfying. This i
191 return HeapConstant(factory()->NewStringFromAsciiChecked(str, TENURED));
192 }
193
190 Node* CodeAssembler::BooleanConstant(bool value) { 194 Node* CodeAssembler::BooleanConstant(bool value) {
191 return raw_assembler()->BooleanConstant(value); 195 return raw_assembler()->BooleanConstant(value);
192 } 196 }
193 197
194 Node* CodeAssembler::ExternalConstant(ExternalReference address) { 198 Node* CodeAssembler::ExternalConstant(ExternalReference address) {
195 return raw_assembler()->ExternalConstant(address); 199 return raw_assembler()->ExternalConstant(address);
196 } 200 }
197 201
198 Node* CodeAssembler::Float64Constant(double value) { 202 Node* CodeAssembler::Float64Constant(double value) {
199 return raw_assembler()->Float64Constant(value); 203 return raw_assembler()->Float64Constant(value);
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 } 852 }
849 } 853 }
850 } 854 }
851 855
852 bound_ = true; 856 bound_ = true;
853 } 857 }
854 858
855 } // namespace compiler 859 } // namespace compiler
856 } // namespace internal 860 } // namespace internal
857 } // namespace v8 861 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698