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

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

Issue 1471623005: PPC: [builtins] Sanitize the machinery around Construct calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/ppc/lithium-ppc.h ('k') | src/full-codegen/ppc/full-codegen-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ppc/lithium-ppc.h" 5 #include "src/crankshaft/ppc/lithium-ppc.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/lithium-inl.h" 10 #include "src/crankshaft/lithium-inl.h"
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 } 304 }
305 305
306 306
307 void LInvokeFunction::PrintDataTo(StringStream* stream) { 307 void LInvokeFunction::PrintDataTo(StringStream* stream) {
308 stream->Add("= "); 308 stream->Add("= ");
309 function()->PrintTo(stream); 309 function()->PrintTo(stream);
310 stream->Add(" #%d / ", arity()); 310 stream->Add(" #%d / ", arity());
311 } 311 }
312 312
313 313
314 void LCallNew::PrintDataTo(StringStream* stream) {
315 stream->Add("= ");
316 constructor()->PrintTo(stream);
317 stream->Add(" #%d / ", arity());
318 }
319
320
321 void LCallNewArray::PrintDataTo(StringStream* stream) { 314 void LCallNewArray::PrintDataTo(StringStream* stream) {
322 stream->Add("= "); 315 stream->Add("= ");
323 constructor()->PrintTo(stream); 316 constructor()->PrintTo(stream);
324 stream->Add(" #%d / ", arity()); 317 stream->Add(" #%d / ", arity());
325 ElementsKind kind = hydrogen()->elements_kind(); 318 ElementsKind kind = hydrogen()->elements_kind();
326 stream->Add(" (%s) ", ElementsKindToString(kind)); 319 stream->Add(" (%s) ", ElementsKindToString(kind));
327 } 320 }
328 321
329 322
330 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 323 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 } 1208 }
1216 1209
1217 1210
1218 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { 1211 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) {
1219 LOperand* input = UseRegisterAtStart(instr->value()); 1212 LOperand* input = UseRegisterAtStart(instr->value());
1220 LMathPowHalf* result = new (zone()) LMathPowHalf(input); 1213 LMathPowHalf* result = new (zone()) LMathPowHalf(input);
1221 return DefineAsRegister(result); 1214 return DefineAsRegister(result);
1222 } 1215 }
1223 1216
1224 1217
1225 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) {
1226 LOperand* context = UseFixed(instr->context(), cp);
1227 LOperand* constructor = UseFixed(instr->constructor(), r4);
1228 LCallNew* result = new (zone()) LCallNew(context, constructor);
1229 return MarkAsCall(DefineFixed(result, r3), instr);
1230 }
1231
1232
1233 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) { 1218 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) {
1234 LOperand* context = UseFixed(instr->context(), cp); 1219 LOperand* context = UseFixed(instr->context(), cp);
1235 LOperand* constructor = UseFixed(instr->constructor(), r4); 1220 LOperand* constructor = UseFixed(instr->constructor(), r4);
1236 LCallNewArray* result = new (zone()) LCallNewArray(context, constructor); 1221 LCallNewArray* result = new (zone()) LCallNewArray(context, constructor);
1237 return MarkAsCall(DefineFixed(result, r3), instr); 1222 return MarkAsCall(DefineFixed(result, r3), instr);
1238 } 1223 }
1239 1224
1240 1225
1241 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1226 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1242 LOperand* context = UseFixed(instr->context(), cp); 1227 LOperand* context = UseFixed(instr->context(), cp);
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
2609 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2594 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2610 HAllocateBlockContext* instr) { 2595 HAllocateBlockContext* instr) {
2611 LOperand* context = UseFixed(instr->context(), cp); 2596 LOperand* context = UseFixed(instr->context(), cp);
2612 LOperand* function = UseRegisterAtStart(instr->function()); 2597 LOperand* function = UseRegisterAtStart(instr->function());
2613 LAllocateBlockContext* result = 2598 LAllocateBlockContext* result =
2614 new (zone()) LAllocateBlockContext(context, function); 2599 new (zone()) LAllocateBlockContext(context, function);
2615 return MarkAsCall(DefineFixed(result, cp), instr); 2600 return MarkAsCall(DefineFixed(result, cp), instr);
2616 } 2601 }
2617 } // namespace internal 2602 } // namespace internal
2618 } // namespace v8 2603 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.h ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698