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

Side by Side Diff: src/a64/lithium-a64.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/a64/lithium-a64.h ('k') | src/a64/lithium-codegen-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 stream->Add("= "); 98 stream->Add("= ");
99 constructor()->PrintTo(stream); 99 constructor()->PrintTo(stream);
100 stream->Add(" #%d / ", arity()); 100 stream->Add(" #%d / ", arity());
101 } 101 }
102 102
103 103
104 void LCallNewArray::PrintDataTo(StringStream* stream) { 104 void LCallNewArray::PrintDataTo(StringStream* stream) {
105 stream->Add("= "); 105 stream->Add("= ");
106 constructor()->PrintTo(stream); 106 constructor()->PrintTo(stream);
107 stream->Add(" #%d / ", arity()); 107 stream->Add(" #%d / ", arity());
108 ASSERT(hydrogen()->property_cell()->value()->IsSmi());
109 ElementsKind kind = hydrogen()->elements_kind(); 108 ElementsKind kind = hydrogen()->elements_kind();
110 stream->Add(" (%s) ", ElementsKindToString(kind)); 109 stream->Add(" (%s) ", ElementsKindToString(kind));
111 } 110 }
112 111
113 112
114 void LClassOfTestAndBranch::PrintDataTo(StringStream* stream) { 113 void LClassOfTestAndBranch::PrintDataTo(StringStream* stream) {
115 stream->Add("if class_of_test("); 114 stream->Add("if class_of_test(");
116 value()->PrintTo(stream); 115 value()->PrintTo(stream);
117 stream->Add(", \"%o\") then B%d else B%d", 116 stream->Add(", \"%o\") then B%d else B%d",
118 *hydrogen()->class_name(), 117 *hydrogen()->class_name(),
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { 875 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) {
877 info()->MarkAsDeferredCalling(); 876 info()->MarkAsDeferredCalling();
878 LOperand* size = UseRegisterOrConstant(instr->size()); 877 LOperand* size = UseRegisterOrConstant(instr->size());
879 LOperand* temp1 = TempRegister(); 878 LOperand* temp1 = TempRegister();
880 LOperand* temp2 = TempRegister(); 879 LOperand* temp2 = TempRegister();
881 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); 880 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2);
882 return AssignPointerMap(DefineAsRegister(result)); 881 return AssignPointerMap(DefineAsRegister(result));
883 } 882 }
884 883
885 884
886 LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) {
887 info()->MarkAsDeferredCalling();
888 LAllocateObject* result =
889 new(zone()) LAllocateObject(TempRegister(), TempRegister());
890 return AssignPointerMap(DefineAsRegister(result));
891 }
892
893
894 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { 885 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) {
895 LOperand* function = UseFixed(instr->function(), x1); 886 LOperand* function = UseFixed(instr->function(), x1);
896 LOperand* receiver = UseFixed(instr->receiver(), x0); 887 LOperand* receiver = UseFixed(instr->receiver(), x0);
897 LOperand* length = UseFixed(instr->length(), x2); 888 LOperand* length = UseFixed(instr->length(), x2);
898 LOperand* elements = UseFixed(instr->elements(), x3); 889 LOperand* elements = UseFixed(instr->elements(), x3);
899 LApplyArguments* result = new(zone()) LApplyArguments(function, 890 LApplyArguments* result = new(zone()) LApplyArguments(function,
900 receiver, 891 receiver,
901 length, 892 length,
902 elements); 893 elements);
903 return MarkAsCall(DefineFixed(result, x0), instr, CAN_DEOPTIMIZE_EAGERLY); 894 return MarkAsCall(DefineFixed(result, x0), instr, CAN_DEOPTIMIZE_EAGERLY);
(...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after
2514 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2505 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2515 LOperand* receiver = UseRegister(instr->receiver()); 2506 LOperand* receiver = UseRegister(instr->receiver());
2516 LOperand* function = UseRegisterAtStart(instr->function()); 2507 LOperand* function = UseRegisterAtStart(instr->function());
2517 LOperand* temp = TempRegister(); 2508 LOperand* temp = TempRegister();
2518 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); 2509 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp);
2519 return AssignEnvironment(DefineAsRegister(result)); 2510 return AssignEnvironment(DefineAsRegister(result));
2520 } 2511 }
2521 2512
2522 2513
2523 } } // namespace v8::internal 2514 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/a64/lithium-a64.h ('k') | src/a64/lithium-codegen-a64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698