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

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

Issue 22562002: Convert FastNewClosureStub into hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Nit fixin Created 7 years, 3 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/ia32/lithium-ia32.h ('k') | src/isolate.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 // 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 283
284 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) { 284 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) {
285 stream->Add("if typeof "); 285 stream->Add("if typeof ");
286 value()->PrintTo(stream); 286 value()->PrintTo(stream);
287 stream->Add(" == \"%s\" then B%d else B%d", 287 stream->Add(" == \"%s\" then B%d else B%d",
288 *hydrogen()->type_literal()->ToCString(), 288 *hydrogen()->type_literal()->ToCString(),
289 true_block_id(), false_block_id()); 289 true_block_id(), false_block_id());
290 } 290 }
291 291
292 292
293 void LStoreCodeEntry::PrintDataTo(StringStream* stream) {
294 stream->Add(" = ");
295 function()->PrintTo(stream);
296 stream->Add(".code_entry = ");
297 code_object()->PrintTo(stream);
298 }
299
300
293 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { 301 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) {
294 stream->Add(" = "); 302 stream->Add(" = ");
295 base_object()->PrintTo(stream); 303 base_object()->PrintTo(stream);
296 stream->Add(" + %d", offset()); 304 stream->Add(" + %d", offset());
297 } 305 }
298 306
299 307
300 void LCallConstantFunction::PrintDataTo(StringStream* stream) { 308 void LCallConstantFunction::PrintDataTo(StringStream* stream) {
301 stream->Add("#%d / ", arity()); 309 stream->Add("#%d / ", arity());
302 } 310 }
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 } 1151 }
1144 1152
1145 1153
1146 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { 1154 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) {
1147 ++argument_count_; 1155 ++argument_count_;
1148 LOperand* argument = UseAny(instr->argument()); 1156 LOperand* argument = UseAny(instr->argument());
1149 return new(zone()) LPushArgument(argument); 1157 return new(zone()) LPushArgument(argument);
1150 } 1158 }
1151 1159
1152 1160
1161 LInstruction* LChunkBuilder::DoStoreCodeEntry(
1162 HStoreCodeEntry* store_code_entry) {
1163 LOperand* function = UseRegister(store_code_entry->function());
1164 LOperand* code_object = UseTempRegister(store_code_entry->code_object());
1165 return new(zone()) LStoreCodeEntry(function, code_object);
1166 }
1167
1168
1153 LInstruction* LChunkBuilder::DoInnerAllocatedObject( 1169 LInstruction* LChunkBuilder::DoInnerAllocatedObject(
1154 HInnerAllocatedObject* inner_object) { 1170 HInnerAllocatedObject* inner_object) {
1155 LOperand* base_object = UseRegisterAtStart(inner_object->base_object()); 1171 LOperand* base_object = UseRegisterAtStart(inner_object->base_object());
1156 LInnerAllocatedObject* result = 1172 LInnerAllocatedObject* result =
1157 new(zone()) LInnerAllocatedObject(base_object); 1173 new(zone()) LInnerAllocatedObject(base_object);
1158 return DefineAsRegister(result); 1174 return DefineAsRegister(result);
1159 } 1175 }
1160 1176
1161 1177
1162 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) { 1178 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) {
(...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after
2723 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2739 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2724 LOperand* object = UseRegister(instr->object()); 2740 LOperand* object = UseRegister(instr->object());
2725 LOperand* index = UseTempRegister(instr->index()); 2741 LOperand* index = UseTempRegister(instr->index());
2726 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2742 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2727 } 2743 }
2728 2744
2729 2745
2730 } } // namespace v8::internal 2746 } } // namespace v8::internal
2731 2747
2732 #endif // V8_TARGET_ARCH_IA32 2748 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698