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/compiler/code-assembler.cc

Issue 2645313003: [async-iteration] implement Async-from-Sync Iterator (Closed)
Patch Set: cleanmerge 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
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/compiler/types.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/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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 181 }
182 182
183 Node* CodeAssembler::SmiConstant(int value) { 183 Node* CodeAssembler::SmiConstant(int value) {
184 return SmiConstant(Smi::FromInt(value)); 184 return SmiConstant(Smi::FromInt(value));
185 } 185 }
186 186
187 Node* CodeAssembler::HeapConstant(Handle<HeapObject> object) { 187 Node* CodeAssembler::HeapConstant(Handle<HeapObject> object) {
188 return raw_assembler()->HeapConstant(object); 188 return raw_assembler()->HeapConstant(object);
189 } 189 }
190 190
191 Node* CodeAssembler::CStringConstant(const char* str) {
192 return HeapConstant(factory()->NewStringFromAsciiChecked(str, TENURED));
193 }
194
191 Node* CodeAssembler::BooleanConstant(bool value) { 195 Node* CodeAssembler::BooleanConstant(bool value) {
192 return raw_assembler()->BooleanConstant(value); 196 return raw_assembler()->BooleanConstant(value);
193 } 197 }
194 198
195 Node* CodeAssembler::ExternalConstant(ExternalReference address) { 199 Node* CodeAssembler::ExternalConstant(ExternalReference address) {
196 return raw_assembler()->ExternalConstant(address); 200 return raw_assembler()->ExternalConstant(address);
197 } 201 }
198 202
199 Node* CodeAssembler::Float64Constant(double value) { 203 Node* CodeAssembler::Float64Constant(double value) {
200 return raw_assembler()->Float64Constant(value); 204 return raw_assembler()->Float64Constant(value);
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 } 858 }
855 } 859 }
856 } 860 }
857 861
858 bound_ = true; 862 bound_ = true;
859 } 863 }
860 864
861 } // namespace compiler 865 } // namespace compiler
862 } // namespace internal 866 } // namespace internal
863 } // namespace v8 867 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/compiler/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698