diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-01-07 18:38:38 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-01-07 22:11:18 +0100 |
commit | dad73f645cde6920e79db956e7ef82ed640d7615 (patch) | |
tree | 7ba3f3fc7e0722c5f130065461b7c56f571af383 /deps/v8/src/compiler/instruction-selector-impl.h | |
parent | 53ba494537259b18b346dc6150d6a100c557e08f (diff) | |
download | node-new-dad73f645cde6920e79db956e7ef82ed640d7615.tar.gz |
deps: upgrade v8 to 3.31.74.1
PR-URL: https://github.com/iojs/io.js/pull/243
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'deps/v8/src/compiler/instruction-selector-impl.h')
-rw-r--r-- | deps/v8/src/compiler/instruction-selector-impl.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/deps/v8/src/compiler/instruction-selector-impl.h b/deps/v8/src/compiler/instruction-selector-impl.h index 53e288df3e..bdcd952b5f 100644 --- a/deps/v8/src/compiler/instruction-selector-impl.h +++ b/deps/v8/src/compiler/instruction-selector-impl.h @@ -5,7 +5,6 @@ #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ -#include "src/compiler/generic-node-inl.h" #include "src/compiler/instruction.h" #include "src/compiler/instruction-selector.h" #include "src/compiler/linkage.h" @@ -137,8 +136,8 @@ class OperandGenerator { } InstructionOperand* Label(BasicBlock* block) { - // TODO(bmeurer): We misuse ImmediateOperand here. - return TempImmediate(block->rpo_number()); + int index = sequence()->AddImmediate(Constant(block->GetRpoNumber())); + return ImmediateOperand::Create(index, zone()); } protected: @@ -257,7 +256,7 @@ class FlagsContinuation FINAL { void Negate() { DCHECK(!IsNone()); - condition_ = static_cast<FlagsCondition>(condition_ ^ 1); + condition_ = NegateFlagsCondition(condition_); } void Commute() { @@ -317,8 +316,6 @@ class FlagsContinuation FINAL { if (negate) Negate(); } - void SwapBlocks() { std::swap(true_block_, false_block_); } - // Encodes this flags continuation into the given opcode. InstructionCode Encode(InstructionCode opcode) { opcode |= FlagsModeField::encode(mode_); @@ -341,10 +338,10 @@ class FlagsContinuation FINAL { // TODO(bmeurer): Get rid of the CallBuffer business and make // InstructionSelector::VisitCall platform independent instead. struct CallBuffer { - CallBuffer(Zone* zone, CallDescriptor* descriptor, + CallBuffer(Zone* zone, const CallDescriptor* descriptor, FrameStateDescriptor* frame_state); - CallDescriptor* descriptor; + const CallDescriptor* descriptor; FrameStateDescriptor* frame_state_descriptor; NodeVector output_nodes; InstructionOperandVector outputs; |