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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-x64.h ('k') | no next file » | 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) { 257 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) {
258 stream->Add("if typeof "); 258 stream->Add("if typeof ");
259 value()->PrintTo(stream); 259 value()->PrintTo(stream);
260 stream->Add(" == \"%s\" then B%d else B%d", 260 stream->Add(" == \"%s\" then B%d else B%d",
261 *hydrogen()->type_literal()->ToCString(), 261 *hydrogen()->type_literal()->ToCString(),
262 true_block_id(), false_block_id()); 262 true_block_id(), false_block_id());
263 } 263 }
264 264
265 265
266 void LStoreCodeEntry::PrintDataTo(StringStream* stream) {
267 stream->Add(" = ");
268 function()->PrintTo(stream);
269 stream->Add(".code_entry = ");
270 code_object()->PrintTo(stream);
271 }
272
273
266 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { 274 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) {
267 stream->Add(" = "); 275 stream->Add(" = ");
268 base_object()->PrintTo(stream); 276 base_object()->PrintTo(stream);
269 stream->Add(" + %d", offset()); 277 stream->Add(" + %d", offset());
270 } 278 }
271 279
272 280
273 void LCallConstantFunction::PrintDataTo(StringStream* stream) { 281 void LCallConstantFunction::PrintDataTo(StringStream* stream) {
274 stream->Add("#%d / ", arity()); 282 stream->Add("#%d / ", arity());
275 } 283 }
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 } 1084 }
1077 1085
1078 1086
1079 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { 1087 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) {
1080 ++argument_count_; 1088 ++argument_count_;
1081 LOperand* argument = UseOrConstant(instr->argument()); 1089 LOperand* argument = UseOrConstant(instr->argument());
1082 return new(zone()) LPushArgument(argument); 1090 return new(zone()) LPushArgument(argument);
1083 } 1091 }
1084 1092
1085 1093
1094 LInstruction* LChunkBuilder::DoStoreCodeEntry(
1095 HStoreCodeEntry* store_code_entry) {
1096 LOperand* function = UseRegister(store_code_entry->function());
1097 LOperand* code_object = UseTempRegister(store_code_entry->code_object());
1098 return new(zone()) LStoreCodeEntry(function, code_object);
1099 }
1100
1101
1086 LInstruction* LChunkBuilder::DoInnerAllocatedObject( 1102 LInstruction* LChunkBuilder::DoInnerAllocatedObject(
1087 HInnerAllocatedObject* inner_object) { 1103 HInnerAllocatedObject* inner_object) {
1088 LOperand* base_object = UseRegisterAtStart(inner_object->base_object()); 1104 LOperand* base_object = UseRegisterAtStart(inner_object->base_object());
1089 LInnerAllocatedObject* result = 1105 LInnerAllocatedObject* result =
1090 new(zone()) LInnerAllocatedObject(base_object); 1106 new(zone()) LInnerAllocatedObject(base_object);
1091 return DefineAsRegister(result); 1107 return DefineAsRegister(result);
1092 } 1108 }
1093 1109
1094 1110
1095 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) { 1111 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) {
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after
2527 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2543 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2528 LOperand* object = UseRegister(instr->object()); 2544 LOperand* object = UseRegister(instr->object());
2529 LOperand* index = UseTempRegister(instr->index()); 2545 LOperand* index = UseTempRegister(instr->index());
2530 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2546 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2531 } 2547 }
2532 2548
2533 2549
2534 } } // namespace v8::internal 2550 } } // namespace v8::internal
2535 2551
2536 #endif // V8_TARGET_ARCH_X64 2552 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698