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

Side by Side Diff: src/crankshaft/x64/lithium-x64.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 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/x64/lithium-x64.h ('k') | src/full-codegen/arm/full-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/x64/lithium-x64.h" 5 #include "src/crankshaft/x64/lithium-x64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 } 1217 }
1225 1218
1226 1219
1227 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { 1220 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) {
1228 LOperand* input = UseRegisterAtStart(instr->value()); 1221 LOperand* input = UseRegisterAtStart(instr->value());
1229 LMathPowHalf* result = new(zone()) LMathPowHalf(input); 1222 LMathPowHalf* result = new(zone()) LMathPowHalf(input);
1230 return DefineSameAsFirst(result); 1223 return DefineSameAsFirst(result);
1231 } 1224 }
1232 1225
1233 1226
1234 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) {
1235 LOperand* context = UseFixed(instr->context(), rsi);
1236 LOperand* constructor = UseFixed(instr->constructor(), rdi);
1237 LCallNew* result = new(zone()) LCallNew(context, constructor);
1238 return MarkAsCall(DefineFixed(result, rax), instr);
1239 }
1240
1241
1242 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) { 1227 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) {
1243 LOperand* context = UseFixed(instr->context(), rsi); 1228 LOperand* context = UseFixed(instr->context(), rsi);
1244 LOperand* constructor = UseFixed(instr->constructor(), rdi); 1229 LOperand* constructor = UseFixed(instr->constructor(), rdi);
1245 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); 1230 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor);
1246 return MarkAsCall(DefineFixed(result, rax), instr); 1231 return MarkAsCall(DefineFixed(result, rax), instr);
1247 } 1232 }
1248 1233
1249 1234
1250 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1235 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1251 LOperand* context = UseFixed(instr->context(), rsi); 1236 LOperand* context = UseFixed(instr->context(), rsi);
(...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after
2706 LAllocateBlockContext* result = 2691 LAllocateBlockContext* result =
2707 new(zone()) LAllocateBlockContext(context, function); 2692 new(zone()) LAllocateBlockContext(context, function);
2708 return MarkAsCall(DefineFixed(result, rsi), instr); 2693 return MarkAsCall(DefineFixed(result, rsi), instr);
2709 } 2694 }
2710 2695
2711 2696
2712 } // namespace internal 2697 } // namespace internal
2713 } // namespace v8 2698 } // namespace v8
2714 2699
2715 #endif // V8_TARGET_ARCH_X64 2700 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-x64.h ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698