| OLD | NEW |
| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 89 } |
| 90 | 90 |
| 91 | 91 |
| 92 void LCallConstantFunction::PrintDataTo(StringStream* stream) { | 92 void LCallConstantFunction::PrintDataTo(StringStream* stream) { |
| 93 stream->Add("#%d / ", arity()); | 93 stream->Add("#%d / ", arity()); |
| 94 } | 94 } |
| 95 | 95 |
| 96 | 96 |
| 97 void LCallNamed::PrintDataTo(StringStream* stream) { | 97 void LCallNamed::PrintDataTo(StringStream* stream) { |
| 98 SmartArrayPointer<char> name_string = name()->ToCString(); | 98 SmartArrayPointer<char> name_string = name()->ToCString(); |
| 99 stream->Add("%s #%d / ", *name_string, arity()); | 99 stream->Add("%s #%d / ", name_string.get(), arity()); |
| 100 } | 100 } |
| 101 | 101 |
| 102 | 102 |
| 103 void LCallKeyed::PrintDataTo(StringStream* stream) { | 103 void LCallKeyed::PrintDataTo(StringStream* stream) { |
| 104 stream->Add("[x2] #%d / ", arity()); | 104 stream->Add("[x2] #%d / ", arity()); |
| 105 } | 105 } |
| 106 | 106 |
| 107 | 107 |
| 108 void LCallKnownGlobal::PrintDataTo(StringStream* stream) { | 108 void LCallKnownGlobal::PrintDataTo(StringStream* stream) { |
| 109 stream->Add("#%d / ", arity()); | 109 stream->Add("#%d / ", arity()); |
| 110 } | 110 } |
| 111 | 111 |
| 112 | 112 |
| 113 void LCallGlobal::PrintDataTo(StringStream* stream) { | 113 void LCallGlobal::PrintDataTo(StringStream* stream) { |
| 114 SmartArrayPointer<char> name_string = name()->ToCString(); | 114 SmartArrayPointer<char> name_string = name()->ToCString(); |
| 115 stream->Add("%s #%d / ", *name_string, arity()); | 115 stream->Add("%s #%d / ", name_string.get(), arity()); |
| 116 } | 116 } |
| 117 | 117 |
| 118 | 118 |
| 119 void LCallNew::PrintDataTo(StringStream* stream) { | 119 void LCallNew::PrintDataTo(StringStream* stream) { |
| 120 stream->Add("= "); | 120 stream->Add("= "); |
| 121 constructor()->PrintTo(stream); | 121 constructor()->PrintTo(stream); |
| 122 stream->Add(" #%d / ", arity()); | 122 stream->Add(" #%d / ", arity()); |
| 123 } | 123 } |
| 124 | 124 |
| 125 | 125 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 stream->Add("if is_smi("); | 245 stream->Add("if is_smi("); |
| 246 value()->PrintTo(stream); | 246 value()->PrintTo(stream); |
| 247 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); | 247 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); |
| 248 } | 248 } |
| 249 | 249 |
| 250 | 250 |
| 251 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) { | 251 void LTypeofIsAndBranch::PrintDataTo(StringStream* stream) { |
| 252 stream->Add("if typeof "); | 252 stream->Add("if typeof "); |
| 253 value()->PrintTo(stream); | 253 value()->PrintTo(stream); |
| 254 stream->Add(" == \"%s\" then B%d else B%d", | 254 stream->Add(" == \"%s\" then B%d else B%d", |
| 255 *hydrogen()->type_literal()->ToCString(), | 255 hydrogen()->type_literal()->ToCString().get(), |
| 256 true_block_id(), false_block_id()); | 256 true_block_id(), false_block_id()); |
| 257 } | 257 } |
| 258 | 258 |
| 259 | 259 |
| 260 void LIsUndetectableAndBranch::PrintDataTo(StringStream* stream) { | 260 void LIsUndetectableAndBranch::PrintDataTo(StringStream* stream) { |
| 261 stream->Add("if is_undetectable("); | 261 stream->Add("if is_undetectable("); |
| 262 value()->PrintTo(stream); | 262 value()->PrintTo(stream); |
| 263 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); | 263 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); |
| 264 } | 264 } |
| 265 | 265 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 object()->PrintTo(stream); | 320 object()->PrintTo(stream); |
| 321 hydrogen()->access().PrintTo(stream); | 321 hydrogen()->access().PrintTo(stream); |
| 322 stream->Add(" <- "); | 322 stream->Add(" <- "); |
| 323 value()->PrintTo(stream); | 323 value()->PrintTo(stream); |
| 324 } | 324 } |
| 325 | 325 |
| 326 | 326 |
| 327 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 327 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
| 328 object()->PrintTo(stream); | 328 object()->PrintTo(stream); |
| 329 stream->Add("."); | 329 stream->Add("."); |
| 330 stream->Add(*String::cast(*name())->ToCString()); | 330 stream->Add(String::cast(*name())->ToCString().get()); |
| 331 stream->Add(" <- "); | 331 stream->Add(" <- "); |
| 332 value()->PrintTo(stream); | 332 value()->PrintTo(stream); |
| 333 } | 333 } |
| 334 | 334 |
| 335 | 335 |
| 336 void LStringCompareAndBranch::PrintDataTo(StringStream* stream) { | 336 void LStringCompareAndBranch::PrintDataTo(StringStream* stream) { |
| 337 stream->Add("if string_compare("); | 337 stream->Add("if string_compare("); |
| 338 left()->PrintTo(stream); | 338 left()->PrintTo(stream); |
| 339 right()->PrintTo(stream); | 339 right()->PrintTo(stream); |
| 340 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); | 340 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); |
| (...skipping 2226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2567 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2567 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2568 LOperand* receiver = UseRegister(instr->receiver()); | 2568 LOperand* receiver = UseRegister(instr->receiver()); |
| 2569 LOperand* function = UseRegisterAtStart(instr->function()); | 2569 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2570 LOperand* temp = TempRegister(); | 2570 LOperand* temp = TempRegister(); |
| 2571 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); | 2571 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); |
| 2572 return AssignEnvironment(DefineAsRegister(result)); | 2572 return AssignEnvironment(DefineAsRegister(result)); |
| 2573 } | 2573 } |
| 2574 | 2574 |
| 2575 | 2575 |
| 2576 } } // namespace v8::internal | 2576 } } // namespace v8::internal |
| OLD | NEW |