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

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

Issue 19207002: Reland deprecation of HAllocateObject in favor of HAllocate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 2382 matching lines...) Expand 10 before | Expand all | Expand 10 after
2393 return AssignPointerMap(DefineAsRegister(result)); 2393 return AssignPointerMap(DefineAsRegister(result));
2394 } 2394 }
2395 2395
2396 2396
2397 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { 2397 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) {
2398 LOperand* string = UseRegisterAtStart(instr->value()); 2398 LOperand* string = UseRegisterAtStart(instr->value());
2399 return DefineAsRegister(new(zone()) LStringLength(string)); 2399 return DefineAsRegister(new(zone()) LStringLength(string));
2400 } 2400 }
2401 2401
2402 2402
2403 LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) {
2404 info()->MarkAsDeferredCalling();
2405 LAllocateObject* result =
2406 new(zone()) LAllocateObject(TempRegister(), TempRegister());
2407 return AssignPointerMap(DefineAsRegister(result));
2408 }
2409
2410
2411 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { 2403 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) {
2412 info()->MarkAsDeferredCalling(); 2404 info()->MarkAsDeferredCalling();
2413 LOperand* size = instr->size()->IsConstant() 2405 LOperand* size = instr->size()->IsConstant()
2414 ? UseConstant(instr->size()) 2406 ? UseConstant(instr->size())
2415 : UseTempRegister(instr->size()); 2407 : UseTempRegister(instr->size());
2416 LOperand* temp1 = TempRegister(); 2408 LOperand* temp1 = TempRegister();
2417 LOperand* temp2 = TempRegister(); 2409 LOperand* temp2 = TempRegister();
2418 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); 2410 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2);
2419 return AssignPointerMap(DefineAsRegister(result)); 2411 return AssignPointerMap(DefineAsRegister(result));
2420 } 2412 }
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2623 2615
2624 2616
2625 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2617 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2626 LOperand* object = UseRegister(instr->object()); 2618 LOperand* object = UseRegister(instr->object());
2627 LOperand* index = UseRegister(instr->index()); 2619 LOperand* index = UseRegister(instr->index());
2628 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2620 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2629 } 2621 }
2630 2622
2631 2623
2632 } } // 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