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

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

Issue 868883002: Remove the dependency of Zone on Isolate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation issues Created 5 years, 11 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
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector-impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 } 423 }
424 } 424 }
425 for (auto const block : *blocks) { 425 for (auto const block : *blocks) {
426 if (block->IsDeferred()) { 426 if (block->IsDeferred()) {
427 block->set_ao_number(BasicBlock::RpoNumber::FromInt(ao++)); 427 block->set_ao_number(BasicBlock::RpoNumber::FromInt(ao++));
428 } 428 }
429 } 429 }
430 } 430 }
431 431
432 432
433 InstructionSequence::InstructionSequence(Zone* instruction_zone, 433 InstructionSequence::InstructionSequence(Isolate* isolate,
434 Zone* instruction_zone,
434 InstructionBlocks* instruction_blocks) 435 InstructionBlocks* instruction_blocks)
435 : zone_(instruction_zone), 436 : isolate_(isolate),
437 zone_(instruction_zone),
436 instruction_blocks_(instruction_blocks), 438 instruction_blocks_(instruction_blocks),
437 block_starts_(zone()), 439 block_starts_(zone()),
438 constants_(ConstantMap::key_compare(), 440 constants_(ConstantMap::key_compare(),
439 ConstantMap::allocator_type(zone())), 441 ConstantMap::allocator_type(zone())),
440 immediates_(zone()), 442 immediates_(zone()),
441 instructions_(zone()), 443 instructions_(zone()),
442 next_virtual_register_(0), 444 next_virtual_register_(0),
443 pointer_maps_(zone()), 445 pointer_maps_(zone()),
444 doubles_(std::less<int>(), VirtualRegisterSet::allocator_type(zone())), 446 doubles_(std::less<int>(), VirtualRegisterSet::allocator_type(zone())),
445 references_(std::less<int>(), VirtualRegisterSet::allocator_type(zone())), 447 references_(std::less<int>(), VirtualRegisterSet::allocator_type(zone())),
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 os << " B" << succ_block->id(); 693 os << " B" << succ_block->id();
692 } 694 }
693 os << "\n"; 695 os << "\n";
694 } 696 }
695 return os; 697 return os;
696 } 698 }
697 699
698 } // namespace compiler 700 } // namespace compiler
699 } // namespace internal 701 } // namespace internal
700 } // namespace v8 702 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector-impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698