OLD | NEW |
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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) { | 254 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) { |
255 stream->Add("if typeof "); | 255 stream->Add("if typeof "); |
256 value()->PrintTo(stream); | 256 value()->PrintTo(stream); |
257 stream->Add(" == \"%s\" then B%d else B%d", | 257 stream->Add(" == \"%s\" then B%d else B%d", |
258 *hydrogen()->type_literal()->ToCString(), | 258 *hydrogen()->type_literal()->ToCString(), |
259 true_block_id(), false_block_id()); | 259 true_block_id(), false_block_id()); |
260 } | 260 } |
261 | 261 |
262 | 262 |
| 263 void LStoreCodeEntry::PrintDataTo(StringStream* stream) { |
| 264 stream->Add(" = "); |
| 265 function()->PrintTo(stream); |
| 266 stream->Add(".code_entry = "); |
| 267 code_object()->PrintTo(stream); |
| 268 } |
| 269 |
| 270 |
263 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { | 271 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { |
264 stream->Add(" = "); | 272 stream->Add(" = "); |
265 base_object()->PrintTo(stream); | 273 base_object()->PrintTo(stream); |
266 stream->Add(" + %d", offset()); | 274 stream->Add(" + %d", offset()); |
267 } | 275 } |
268 | 276 |
269 | 277 |
270 void LCallConstantFunction::PrintDataTo(StringStream* stream) { | 278 void LCallConstantFunction::PrintDataTo(StringStream* stream) { |
271 stream->Add("#%d / ", arity()); | 279 stream->Add("#%d / ", arity()); |
272 } | 280 } |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2584 | 2600 |
2585 | 2601 |
2586 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2602 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2587 LOperand* object = UseRegister(instr->object()); | 2603 LOperand* object = UseRegister(instr->object()); |
2588 LOperand* index = UseRegister(instr->index()); | 2604 LOperand* index = UseRegister(instr->index()); |
2589 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2605 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2590 } | 2606 } |
2591 | 2607 |
2592 | 2608 |
2593 } } // namespace v8::internal | 2609 } } // namespace v8::internal |
OLD | NEW |