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

Side by Side Diff: src/crankshaft/mips/lithium-mips.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/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.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/mips/lithium-mips.h" 5 #include "src/crankshaft/mips/lithium-mips.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 } 298 }
299 299
300 300
301 void LInvokeFunction::PrintDataTo(StringStream* stream) { 301 void LInvokeFunction::PrintDataTo(StringStream* stream) {
302 stream->Add("= "); 302 stream->Add("= ");
303 function()->PrintTo(stream); 303 function()->PrintTo(stream);
304 stream->Add(" #%d / ", arity()); 304 stream->Add(" #%d / ", arity());
305 } 305 }
306 306
307 307
308 void LCallNew::PrintDataTo(StringStream* stream) {
309 stream->Add("= ");
310 constructor()->PrintTo(stream);
311 stream->Add(" #%d / ", arity());
312 }
313
314
315 void LCallNewArray::PrintDataTo(StringStream* stream) { 308 void LCallNewArray::PrintDataTo(StringStream* stream) {
316 stream->Add("= "); 309 stream->Add("= ");
317 constructor()->PrintTo(stream); 310 constructor()->PrintTo(stream);
318 stream->Add(" #%d / ", arity()); 311 stream->Add(" #%d / ", arity());
319 ElementsKind kind = hydrogen()->elements_kind(); 312 ElementsKind kind = hydrogen()->elements_kind();
320 stream->Add(" (%s) ", ElementsKindToString(kind)); 313 stream->Add(" (%s) ", ElementsKindToString(kind));
321 } 314 }
322 315
323 316
324 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 317 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 1207
1215 1208
1216 LInstruction* LChunkBuilder::DoMathRound(HUnaryMathOperation* instr) { 1209 LInstruction* LChunkBuilder::DoMathRound(HUnaryMathOperation* instr) {
1217 LOperand* input = UseRegister(instr->value()); 1210 LOperand* input = UseRegister(instr->value());
1218 LOperand* temp = TempDoubleRegister(); 1211 LOperand* temp = TempDoubleRegister();
1219 LMathRound* result = new(zone()) LMathRound(input, temp); 1212 LMathRound* result = new(zone()) LMathRound(input, temp);
1220 return AssignEnvironment(DefineAsRegister(result)); 1213 return AssignEnvironment(DefineAsRegister(result));
1221 } 1214 }
1222 1215
1223 1216
1224 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) {
1225 LOperand* context = UseFixed(instr->context(), cp);
1226 LOperand* constructor = UseFixed(instr->constructor(), a1);
1227 LCallNew* result = new(zone()) LCallNew(context, constructor);
1228 return MarkAsCall(DefineFixed(result, v0), instr);
1229 }
1230
1231
1232 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) { 1217 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) {
1233 LOperand* context = UseFixed(instr->context(), cp); 1218 LOperand* context = UseFixed(instr->context(), cp);
1234 LOperand* constructor = UseFixed(instr->constructor(), a1); 1219 LOperand* constructor = UseFixed(instr->constructor(), a1);
1235 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); 1220 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor);
1236 return MarkAsCall(DefineFixed(result, v0), instr); 1221 return MarkAsCall(DefineFixed(result, v0), instr);
1237 } 1222 }
1238 1223
1239 1224
1240 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { 1225 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) {
1241 LOperand* context = UseFixed(instr->context(), cp); 1226 LOperand* context = UseFixed(instr->context(), cp);
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
2608 LOperand* function = UseRegisterAtStart(instr->function()); 2593 LOperand* function = UseRegisterAtStart(instr->function());
2609 LAllocateBlockContext* result = 2594 LAllocateBlockContext* result =
2610 new(zone()) LAllocateBlockContext(context, function); 2595 new(zone()) LAllocateBlockContext(context, function);
2611 return MarkAsCall(DefineFixed(result, cp), instr); 2596 return MarkAsCall(DefineFixed(result, cp), instr);
2612 } 2597 }
2613 2598
2614 } // namespace internal 2599 } // namespace internal
2615 } // namespace v8 2600 } // namespace v8
2616 2601
2617 #endif // V8_TARGET_ARCH_MIPS 2602 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698