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

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

Issue 2684043002: [turbofan] Use fast stub for ForInPrepare and ForInNext (Closed)
Patch Set: add missing SmiUntag and remove ForInNext RT function 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 CallDescriptor* desc = raw_assembler()->call_descriptor(); 253 CallDescriptor* desc = raw_assembler()->call_descriptor();
254 DCHECK(desc->IsJSFunctionCall()); 254 DCHECK(desc->IsJSFunctionCall());
255 return Parameter(Linkage::GetJSCallContextParamIndex( 255 return Parameter(Linkage::GetJSCallContextParamIndex(
256 static_cast<int>(desc->JSParameterCount()))); 256 static_cast<int>(desc->JSParameterCount())));
257 } 257 }
258 258
259 void CodeAssembler::Return(Node* value) { 259 void CodeAssembler::Return(Node* value) {
260 return raw_assembler()->Return(value); 260 return raw_assembler()->Return(value);
261 } 261 }
262 262
263 void CodeAssembler::Return(Node* value1, Node* value2) {
264 return raw_assembler()->Return(value1, value2);
265 }
266
267 void CodeAssembler::Return(Node* value1, Node* value2, Node* value3) {
268 return raw_assembler()->Return(value1, value2, value3);
269 }
270
263 void CodeAssembler::PopAndReturn(Node* pop, Node* value) { 271 void CodeAssembler::PopAndReturn(Node* pop, Node* value) {
264 return raw_assembler()->PopAndReturn(pop, value); 272 return raw_assembler()->PopAndReturn(pop, value);
265 } 273 }
266 274
267 void CodeAssembler::DebugBreak() { raw_assembler()->DebugBreak(); } 275 void CodeAssembler::DebugBreak() { raw_assembler()->DebugBreak(); }
268 276
269 void CodeAssembler::Comment(const char* format, ...) { 277 void CodeAssembler::Comment(const char* format, ...) {
270 if (!FLAG_code_comments) return; 278 if (!FLAG_code_comments) return;
271 char buffer[4 * KB]; 279 char buffer[4 * KB];
272 StringBuilder builder(buffer, arraysize(buffer)); 280 StringBuilder builder(buffer, arraysize(buffer));
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 } 848 }
841 } 849 }
842 } 850 }
843 851
844 bound_ = true; 852 bound_ = true;
845 } 853 }
846 854
847 } // namespace compiler 855 } // namespace compiler
848 } // namespace internal 856 } // namespace internal
849 } // namespace v8 857 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698