| OLD | NEW |
| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/interpreter/bytecode-array-builder.h" | 7 #include "src/interpreter/bytecode-array-builder.h" |
| 8 #include "src/interpreter/bytecode-array-iterator.h" | 8 #include "src/interpreter/bytecode-array-iterator.h" |
| 9 #include "src/interpreter/bytecode-label.h" | 9 #include "src/interpreter/bytecode-label.h" |
| 10 #include "src/interpreter/bytecode-register-allocator.h" | 10 #include "src/interpreter/bytecode-register-allocator.h" |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 builder.LoadUndefined() | 202 builder.LoadUndefined() |
| 203 .CompareOperation(Token::Value::EQ, reg, 1) | 203 .CompareOperation(Token::Value::EQ, reg, 1) |
| 204 .LoadNull() | 204 .LoadNull() |
| 205 .CompareOperation(Token::Value::EQ, reg, 1); | 205 .CompareOperation(Token::Value::EQ, reg, 1); |
| 206 | 206 |
| 207 // Emit conversion operator invocations. | 207 // Emit conversion operator invocations. |
| 208 builder.ConvertAccumulatorToNumber(reg) | 208 builder.ConvertAccumulatorToNumber(reg) |
| 209 .ConvertAccumulatorToObject(reg) | 209 .ConvertAccumulatorToObject(reg) |
| 210 .ConvertAccumulatorToName(reg); | 210 .ConvertAccumulatorToName(reg); |
| 211 | 211 |
| 212 // Emit GetSuperConstructor. |
| 213 builder.GetSuperConstructor(reg); |
| 214 |
| 212 // Short jumps with Imm8 operands | 215 // Short jumps with Imm8 operands |
| 213 { | 216 { |
| 214 BytecodeLabel start, after_jump1, after_jump2, after_jump3, after_jump4, | 217 BytecodeLabel start, after_jump1, after_jump2, after_jump3, after_jump4, |
| 215 after_jump5; | 218 after_jump5; |
| 216 builder.Bind(&start) | 219 builder.Bind(&start) |
| 217 .Jump(&after_jump1) | 220 .Jump(&after_jump1) |
| 218 .Bind(&after_jump1) | 221 .Bind(&after_jump1) |
| 219 .JumpIfNull(&after_jump2) | 222 .JumpIfNull(&after_jump2) |
| 220 .Bind(&after_jump2) | 223 .Bind(&after_jump2) |
| 221 .JumpIfUndefined(&after_jump3) | 224 .JumpIfUndefined(&after_jump3) |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 iterator.Advance(); | 751 iterator.Advance(); |
| 749 } | 752 } |
| 750 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); | 753 CHECK_EQ(iterator.current_bytecode(), Bytecode::kReturn); |
| 751 iterator.Advance(); | 754 iterator.Advance(); |
| 752 CHECK(iterator.done()); | 755 CHECK(iterator.done()); |
| 753 } | 756 } |
| 754 | 757 |
| 755 } // namespace interpreter | 758 } // namespace interpreter |
| 756 } // namespace internal | 759 } // namespace internal |
| 757 } // namespace v8 | 760 } // namespace v8 |
| OLD | NEW |