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

Side by Side Diff: src/compiler/instruction.cc

Issue 1259203002: [turbofan] Implement tail calls with differing stack parameter counts (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix bugs in frameless tail calls Created 5 years, 4 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 "src/compiler/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/instruction.h" 7 #include "src/compiler/instruction.h"
8 #include "src/compiler/schedule.h" 8 #include "src/compiler/schedule.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 for (auto const block : *blocks) { 489 for (auto const block : *blocks) {
490 if (block->IsDeferred()) { 490 if (block->IsDeferred()) {
491 block->set_ao_number(RpoNumber::FromInt(ao++)); 491 block->set_ao_number(RpoNumber::FromInt(ao++));
492 } 492 }
493 } 493 }
494 } 494 }
495 495
496 496
497 InstructionSequence::InstructionSequence(Isolate* isolate, 497 InstructionSequence::InstructionSequence(Isolate* isolate,
498 Zone* instruction_zone, 498 Zone* instruction_zone,
499 InstructionBlocks* instruction_blocks) 499 InstructionBlocks* instruction_blocks,
500 Frame* frame)
500 : isolate_(isolate), 501 : isolate_(isolate),
501 zone_(instruction_zone), 502 zone_(instruction_zone),
502 instruction_blocks_(instruction_blocks), 503 instruction_blocks_(instruction_blocks),
504 frame_(frame),
503 source_positions_(zone()), 505 source_positions_(zone()),
504 block_starts_(zone()), 506 block_starts_(zone()),
505 constants_(ConstantMap::key_compare(), 507 constants_(ConstantMap::key_compare(),
506 ConstantMap::allocator_type(zone())), 508 ConstantMap::allocator_type(zone())),
507 immediates_(zone()), 509 immediates_(zone()),
508 instructions_(zone()), 510 instructions_(zone()),
509 next_virtual_register_(0), 511 next_virtual_register_(0),
510 reference_maps_(zone()), 512 reference_maps_(zone()),
511 representations_(zone()), 513 representations_(zone()),
512 deoptimization_entries_(zone()) { 514 deoptimization_entries_(zone()) {
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 os << " B" << succ.ToInt(); 810 os << " B" << succ.ToInt();
809 } 811 }
810 os << "\n"; 812 os << "\n";
811 } 813 }
812 return os; 814 return os;
813 } 815 }
814 816
815 } // namespace compiler 817 } // namespace compiler
816 } // namespace internal 818 } // namespace internal
817 } // namespace v8 819 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698