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

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

Issue 148153010: Synchronize with r15701. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 stream->Add("= "); 318 stream->Add("= ");
319 constructor()->PrintTo(stream); 319 constructor()->PrintTo(stream);
320 stream->Add(" #%d / ", arity()); 320 stream->Add(" #%d / ", arity());
321 } 321 }
322 322
323 323
324 void LCallNewArray::PrintDataTo(StringStream* stream) { 324 void LCallNewArray::PrintDataTo(StringStream* stream) {
325 stream->Add("= "); 325 stream->Add("= ");
326 constructor()->PrintTo(stream); 326 constructor()->PrintTo(stream);
327 stream->Add(" #%d / ", arity()); 327 stream->Add(" #%d / ", arity());
328 ASSERT(hydrogen()->property_cell()->value()->IsSmi());
329 ElementsKind kind = hydrogen()->elements_kind(); 328 ElementsKind kind = hydrogen()->elements_kind();
330 stream->Add(" (%s) ", ElementsKindToString(kind)); 329 stream->Add(" (%s) ", ElementsKindToString(kind));
331 } 330 }
332 331
333 332
334 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { 333 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) {
335 arguments()->PrintTo(stream); 334 arguments()->PrintTo(stream);
336 stream->Add(" length "); 335 stream->Add(" length ");
337 length()->PrintTo(stream); 336 length()->PrintTo(stream);
338 stream->Add(" index "); 337 stream->Add(" index ");
(...skipping 2055 matching lines...) Expand 10 before | Expand all | Expand 10 after
2394 return AssignPointerMap(DefineAsRegister(result)); 2393 return AssignPointerMap(DefineAsRegister(result));
2395 } 2394 }
2396 2395
2397 2396
2398 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { 2397 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) {
2399 LOperand* string = UseRegisterAtStart(instr->value()); 2398 LOperand* string = UseRegisterAtStart(instr->value());
2400 return DefineAsRegister(new(zone()) LStringLength(string)); 2399 return DefineAsRegister(new(zone()) LStringLength(string));
2401 } 2400 }
2402 2401
2403 2402
2404 LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) {
2405 info()->MarkAsDeferredCalling();
2406 LAllocateObject* result =
2407 new(zone()) LAllocateObject(TempRegister(), TempRegister());
2408 return AssignPointerMap(DefineAsRegister(result));
2409 }
2410
2411
2412 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { 2403 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) {
2413 info()->MarkAsDeferredCalling(); 2404 info()->MarkAsDeferredCalling();
2414 LOperand* size = instr->size()->IsConstant() 2405 LOperand* size = instr->size()->IsConstant()
2415 ? UseConstant(instr->size()) 2406 ? UseConstant(instr->size())
2416 : UseTempRegister(instr->size()); 2407 : UseTempRegister(instr->size());
2417 LOperand* temp1 = TempRegister(); 2408 LOperand* temp1 = TempRegister();
2418 LOperand* temp2 = TempRegister(); 2409 LOperand* temp2 = TempRegister();
2419 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); 2410 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2);
2420 return AssignPointerMap(DefineAsRegister(result)); 2411 return AssignPointerMap(DefineAsRegister(result));
2421 } 2412 }
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2624 2615
2625 2616
2626 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2617 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2627 LOperand* object = UseRegister(instr->object()); 2618 LOperand* object = UseRegister(instr->object());
2628 LOperand* index = UseRegister(instr->index()); 2619 LOperand* index = UseRegister(instr->index());
2629 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2620 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2630 } 2621 }
2631 2622
2632 2623
2633 } } // namespace v8::internal 2624 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698