OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/arm64/lithium-codegen-arm64.h" | 9 #include "src/arm64/lithium-codegen-arm64.h" |
10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { | 290 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { |
291 object()->PrintTo(stream); | 291 object()->PrintTo(stream); |
292 stream->Add("["); | 292 stream->Add("["); |
293 key()->PrintTo(stream); | 293 key()->PrintTo(stream); |
294 stream->Add("] <- "); | 294 stream->Add("] <- "); |
295 value()->PrintTo(stream); | 295 value()->PrintTo(stream); |
296 } | 296 } |
297 | 297 |
298 | 298 |
299 void LLoadGlobalViaContext::PrintDataTo(StringStream* stream) { | 299 void LLoadGlobalViaContext::PrintDataTo(StringStream* stream) { |
300 stream->Add(String::cast(*name())->ToCString().get()); | 300 stream->Add("depth:%d slot:%d", depth(), slot_index()); |
301 stream->Add(" depth:%d slot:%d", depth(), slot_index()); | |
302 } | 301 } |
303 | 302 |
304 | 303 |
305 void LStoreNamedField::PrintDataTo(StringStream* stream) { | 304 void LStoreNamedField::PrintDataTo(StringStream* stream) { |
306 object()->PrintTo(stream); | 305 object()->PrintTo(stream); |
307 std::ostringstream os; | 306 std::ostringstream os; |
308 os << hydrogen()->access(); | 307 os << hydrogen()->access(); |
309 stream->Add(os.str().c_str()); | 308 stream->Add(os.str().c_str()); |
310 stream->Add(" <- "); | 309 stream->Add(" <- "); |
311 value()->PrintTo(stream); | 310 value()->PrintTo(stream); |
312 } | 311 } |
313 | 312 |
314 | 313 |
315 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 314 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
316 object()->PrintTo(stream); | 315 object()->PrintTo(stream); |
317 stream->Add("."); | 316 stream->Add("."); |
318 stream->Add(String::cast(*name())->ToCString().get()); | 317 stream->Add(String::cast(*name())->ToCString().get()); |
319 stream->Add(" <- "); | 318 stream->Add(" <- "); |
320 value()->PrintTo(stream); | 319 value()->PrintTo(stream); |
321 } | 320 } |
322 | 321 |
323 | 322 |
324 void LStoreGlobalViaContext::PrintDataTo(StringStream* stream) { | 323 void LStoreGlobalViaContext::PrintDataTo(StringStream* stream) { |
325 stream->Add(String::cast(*name())->ToCString().get()); | 324 stream->Add("depth:%d slot:%d <- ", depth(), slot_index()); |
326 stream->Add(" <- "); | |
327 value()->PrintTo(stream); | 325 value()->PrintTo(stream); |
328 stream->Add(" depth:%d slot:%d", depth(), slot_index()); | |
329 } | 326 } |
330 | 327 |
331 | 328 |
332 void LStringCompareAndBranch::PrintDataTo(StringStream* stream) { | 329 void LStringCompareAndBranch::PrintDataTo(StringStream* stream) { |
333 stream->Add("if string_compare("); | 330 stream->Add("if string_compare("); |
334 left()->PrintTo(stream); | 331 left()->PrintTo(stream); |
335 right()->PrintTo(stream); | 332 right()->PrintTo(stream); |
336 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); | 333 stream->Add(") then B%d else B%d", true_block_id(), false_block_id()); |
337 } | 334 } |
338 | 335 |
(...skipping 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2815 LOperand* context = UseFixed(instr->context(), cp); | 2812 LOperand* context = UseFixed(instr->context(), cp); |
2816 LOperand* function = UseRegisterAtStart(instr->function()); | 2813 LOperand* function = UseRegisterAtStart(instr->function()); |
2817 LAllocateBlockContext* result = | 2814 LAllocateBlockContext* result = |
2818 new(zone()) LAllocateBlockContext(context, function); | 2815 new(zone()) LAllocateBlockContext(context, function); |
2819 return MarkAsCall(DefineFixed(result, cp), instr); | 2816 return MarkAsCall(DefineFixed(result, cp), instr); |
2820 } | 2817 } |
2821 | 2818 |
2822 | 2819 |
2823 } // namespace internal | 2820 } // namespace internal |
2824 } // namespace v8 | 2821 } // namespace v8 |
OLD | NEW |