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

Side by Side Diff: src/crankshaft/arm/lithium-arm.cc

Issue 1469793002: [builtins] Sanitize the machinery around Construct calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mips64 fix. Created 5 years, 1 month 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/crankshaft/arm/lithium-arm.h ('k') | src/crankshaft/arm/lithium-codegen-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/crankshaft/arm/lithium-arm.h" 5 #include "src/crankshaft/arm/lithium-arm.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" 9 #include "src/crankshaft/arm/lithium-codegen-arm.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } 291 }
292 292
293 293
294 void LInvokeFunction::PrintDataTo(StringStream* stream) { 294 void LInvokeFunction::PrintDataTo(StringStream* stream) {
295 stream->Add("= "); 295 stream->Add("= ");
296 function()->PrintTo(stream); 296 function()->PrintTo(stream);
297 stream->Add(" #%d / ", arity()); 297 stream->Add(" #%d / ", arity());
298 } 298 }
299 299
300 300
301 void LCallNew::PrintDataTo(StringStream* stream) {
302 stream->Add("= ");
303 constructor()->PrintTo(stream);
304 stream->Add(" #%d / ", arity());
305 }
306
307
308 void LCallNewArray::PrintDataTo(StringStream* stream) { 301 void LCallNewArray::PrintDataTo(StringStream* stream) {
309 stream->Add("= "); 302 stream->Add("= ");
310 constructor()->PrintTo(stream); 303 constructor()->PrintTo(stream);
311 stream->Add(" #%d / ", arity()); 304 stream->Add(" #%d / ", arity());
312 ElementsKind kind = hydrogen()->elements_kind(); 305 ElementsKind kind = hydrogen()->elements_kind();
313 stream->Add(" (%s) ", ElementsKindToString(kind)); 306 stream->Add(" (%s) ", ElementsKindToString(kind));
314 } 307 }
315 308
316 309
317 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 310 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 } 1199 }
1207 1200
1208 1201
1209 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { 1202 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) {
1210 LOperand* input = UseRegisterAtStart(instr->value()); 1203 LOperand* input = UseRegisterAtStart(instr->value());
1211 LMathPowHalf* result = new(zone()) LMathPowHalf(input); 1204 LMathPowHalf* result = new(zone()) LMathPowHalf(input);
1212 return DefineAsRegister(result); 1205 return DefineAsRegister(result);
1213 } 1206 }
1214 1207
1215 1208
1216 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) {
1217 LOperand* context = UseFixed(instr->context(), cp);
1218 LOperand* constructor = UseFixed(instr->constructor(), r1);
1219 LCallNew* result = new(zone()) LCallNew(context, constructor);
1220 return MarkAsCall(DefineFixed(result, r0), instr);
1221 }
1222
1223
1224 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) { 1209 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) {
1225 LOperand* context = UseFixed(instr->context(), cp); 1210 LOperand* context = UseFixed(instr->context(), cp);
1226 LOperand* constructor = UseFixed(instr->constructor(), r1); 1211 LOperand* constructor = UseFixed(instr->constructor(), r1);
1227 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); 1212 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor);
1228 return MarkAsCall(DefineFixed(result, r0), instr); 1213 return MarkAsCall(DefineFixed(result, r0), instr);
1229 } 1214 }
1230 1215
1231 1216
1232 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1217 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1233 LOperand* context = UseFixed(instr->context(), cp); 1218 LOperand* context = UseFixed(instr->context(), cp);
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 HAllocateBlockContext* instr) { 2643 HAllocateBlockContext* instr) {
2659 LOperand* context = UseFixed(instr->context(), cp); 2644 LOperand* context = UseFixed(instr->context(), cp);
2660 LOperand* function = UseRegisterAtStart(instr->function()); 2645 LOperand* function = UseRegisterAtStart(instr->function());
2661 LAllocateBlockContext* result = 2646 LAllocateBlockContext* result =
2662 new(zone()) LAllocateBlockContext(context, function); 2647 new(zone()) LAllocateBlockContext(context, function);
2663 return MarkAsCall(DefineFixed(result, cp), instr); 2648 return MarkAsCall(DefineFixed(result, cp), instr);
2664 } 2649 }
2665 2650
2666 } // namespace internal 2651 } // namespace internal
2667 } // namespace v8 2652 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-arm.h ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698