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

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

Issue 23618007: MIPS: Convert FastNewClosureStub into hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/lithium-mips.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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) { 259 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) {
260 stream->Add("if typeof "); 260 stream->Add("if typeof ");
261 value()->PrintTo(stream); 261 value()->PrintTo(stream);
262 stream->Add(" == \"%s\" then B%d else B%d", 262 stream->Add(" == \"%s\" then B%d else B%d",
263 *hydrogen()->type_literal()->ToCString(), 263 *hydrogen()->type_literal()->ToCString(),
264 true_block_id(), false_block_id()); 264 true_block_id(), false_block_id());
265 } 265 }
266 266
267 267
268 void LStoreCodeEntry::PrintDataTo(StringStream* stream) {
269 stream->Add(" = ");
270 function()->PrintTo(stream);
271 stream->Add(".code_entry = ");
272 code_object()->PrintTo(stream);
273 }
274
275
268 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { 276 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) {
269 stream->Add(" = "); 277 stream->Add(" = ");
270 base_object()->PrintTo(stream); 278 base_object()->PrintTo(stream);
271 stream->Add(" + %d", offset()); 279 stream->Add(" + %d", offset());
272 } 280 }
273 281
274 282
275 void LCallConstantFunction::PrintDataTo(StringStream* stream) { 283 void LCallConstantFunction::PrintDataTo(StringStream* stream) {
276 stream->Add("#%d / ", arity()); 284 stream->Add("#%d / ", arity());
277 } 285 }
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 } 1080 }
1073 1081
1074 1082
1075 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { 1083 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) {
1076 ++argument_count_; 1084 ++argument_count_;
1077 LOperand* argument = Use(instr->argument()); 1085 LOperand* argument = Use(instr->argument());
1078 return new(zone()) LPushArgument(argument); 1086 return new(zone()) LPushArgument(argument);
1079 } 1087 }
1080 1088
1081 1089
1090 LInstruction* LChunkBuilder::DoStoreCodeEntry(
1091 HStoreCodeEntry* store_code_entry) {
1092 LOperand* function = UseRegister(store_code_entry->function());
1093 LOperand* code_object = UseTempRegister(store_code_entry->code_object());
1094 return new(zone()) LStoreCodeEntry(function, code_object);
1095 }
1096
1097
1082 LInstruction* LChunkBuilder::DoInnerAllocatedObject( 1098 LInstruction* LChunkBuilder::DoInnerAllocatedObject(
1083 HInnerAllocatedObject* inner_object) { 1099 HInnerAllocatedObject* inner_object) {
1084 LOperand* base_object = UseRegisterAtStart(inner_object->base_object()); 1100 LOperand* base_object = UseRegisterAtStart(inner_object->base_object());
1085 LInnerAllocatedObject* result = 1101 LInnerAllocatedObject* result =
1086 new(zone()) LInnerAllocatedObject(base_object); 1102 new(zone()) LInnerAllocatedObject(base_object);
1087 return DefineAsRegister(result); 1103 return DefineAsRegister(result);
1088 } 1104 }
1089 1105
1090 1106
1091 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) { 1107 LInstruction* LChunkBuilder::DoThisFunction(HThisFunction* instr) {
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after
2499 2515
2500 2516
2501 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2517 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2502 LOperand* object = UseRegister(instr->object()); 2518 LOperand* object = UseRegister(instr->object());
2503 LOperand* index = UseRegister(instr->index()); 2519 LOperand* index = UseRegister(instr->index());
2504 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2520 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2505 } 2521 }
2506 2522
2507 2523
2508 } } // namespace v8::internal 2524 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698