diff options
author | Chris Dickinson <christopher.s.dickinson@gmail.com> | 2015-05-05 13:48:55 -0700 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-08-04 11:56:09 -0700 |
commit | d58e780504bdba6c5897c48428fd984c5b5f96fe (patch) | |
tree | 033f1568ae3f9f077aceb843b42eb1ed1739ce0f /deps/v8/src/compiler/code-generator-impl.h | |
parent | 21d31c08e7d0b6865e52452750b20b05e6dca443 (diff) | |
download | node-new-d58e780504bdba6c5897c48428fd984c5b5f96fe.tar.gz |
deps: update v8 to 4.3.61.21
* @indutny's SealHandleScope patch (484bebc38319fc7c622478037922ad73b2edcbf9)
has been cherry picked onto the top of V8 to make it compile.
* There's some test breakage in contextify.
* This was merged at the request of the TC.
PR-URL: https://github.com/iojs/io.js/pull/1632
Diffstat (limited to 'deps/v8/src/compiler/code-generator-impl.h')
-rw-r--r-- | deps/v8/src/compiler/code-generator-impl.h | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/deps/v8/src/compiler/code-generator-impl.h b/deps/v8/src/compiler/code-generator-impl.h index 129f9409e3..74233ac6fe 100644 --- a/deps/v8/src/compiler/code-generator-impl.h +++ b/deps/v8/src/compiler/code-generator-impl.h @@ -27,49 +27,53 @@ class InstructionOperandConverter { // -- Instruction operand accesses with conversions -------------------------- - Register InputRegister(int index) { + Register InputRegister(size_t index) { return ToRegister(instr_->InputAt(index)); } - DoubleRegister InputDoubleRegister(int index) { + DoubleRegister InputDoubleRegister(size_t index) { return ToDoubleRegister(instr_->InputAt(index)); } - double InputDouble(int index) { return ToDouble(instr_->InputAt(index)); } + double InputDouble(size_t index) { return ToDouble(instr_->InputAt(index)); } - int32_t InputInt32(int index) { + int32_t InputInt32(size_t index) { return ToConstant(instr_->InputAt(index)).ToInt32(); } - int8_t InputInt8(int index) { return static_cast<int8_t>(InputInt32(index)); } + int8_t InputInt8(size_t index) { + return static_cast<int8_t>(InputInt32(index)); + } - int16_t InputInt16(int index) { + int16_t InputInt16(size_t index) { return static_cast<int16_t>(InputInt32(index)); } - uint8_t InputInt5(int index) { + uint8_t InputInt5(size_t index) { return static_cast<uint8_t>(InputInt32(index) & 0x1F); } - uint8_t InputInt6(int index) { + uint8_t InputInt6(size_t index) { return static_cast<uint8_t>(InputInt32(index) & 0x3F); } - Handle<HeapObject> InputHeapObject(int index) { + Handle<HeapObject> InputHeapObject(size_t index) { return ToHeapObject(instr_->InputAt(index)); } - Label* InputLabel(int index) { return ToLabel(instr_->InputAt(index)); } + Label* InputLabel(size_t index) { return ToLabel(instr_->InputAt(index)); } - BasicBlock::RpoNumber InputRpo(int index) { + RpoNumber InputRpo(size_t index) { return ToRpoNumber(instr_->InputAt(index)); } - Register OutputRegister(int index = 0) { + Register OutputRegister(size_t index = 0) { return ToRegister(instr_->OutputAt(index)); } - Register TempRegister(int index) { return ToRegister(instr_->TempAt(index)); } + Register TempRegister(size_t index) { + return ToRegister(instr_->TempAt(index)); + } DoubleRegister OutputDoubleRegister() { return ToDoubleRegister(instr_->Output()); @@ -81,7 +85,7 @@ class InstructionOperandConverter { return gen_->GetLabel(ToRpoNumber(op)); } - BasicBlock::RpoNumber ToRpoNumber(InstructionOperand* op) { + RpoNumber ToRpoNumber(InstructionOperand* op) { return ToConstant(op).ToRpoNumber(); } |