 Chromium Code Reviews
 Chromium Code Reviews Issue 2169813002:
  [interpreter] Add output register to ToName  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@addregouts
    
  
    Issue 2169813002:
  [interpreter] Add output register to ToName  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@addregouts| Index: src/interpreter/bytecode-pipeline.h | 
| diff --git a/src/interpreter/bytecode-pipeline.h b/src/interpreter/bytecode-pipeline.h | 
| index f4e62734707721379288ba08141cb1b81f0e16f8..2ccab5d9e76b2891190ca5f846adf7171e87b1e8 100644 | 
| --- a/src/interpreter/bytecode-pipeline.h | 
| +++ b/src/interpreter/bytecode-pipeline.h | 
| @@ -153,6 +153,12 @@ class BytecodeNode final : ZoneObject { | 
| BytecodeNode(const BytecodeNode& other); | 
| BytecodeNode& operator=(const BytecodeNode& other); | 
| + // replace the bytecode of this node with |bytecode| and keep the operands | 
| 
rmcilroy
2016/07/25 10:57:47
nit - Capatalize "replace" and fullstop at end of
 
klaasb
2016/07/25 12:25:08
Done.
 | 
| + void replace_bytecode(Bytecode bytecode) { | 
| + DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode_), | 
| + Bytecodes::NumberOfOperands(bytecode)); | 
| + bytecode_ = bytecode; | 
| + } | 
| void set_bytecode(Bytecode bytecode) { | 
| DCHECK_EQ(Bytecodes::NumberOfOperands(bytecode), 0); | 
| bytecode_ = bytecode; |