OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/interpreter/interpreter.h" | 5 #include "src/interpreter/interpreter.h" |
6 | 6 |
7 #include <fstream> | 7 #include <fstream> |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "src/ast/prettyprinter.h" | 10 #include "src/ast/prettyprinter.h" |
(...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1298 switch (compare_op) { | 1298 switch (compare_op) { |
1299 case Token::EQ: | 1299 case Token::EQ: |
1300 result = assembler->Equal(CodeStubAssembler::kDontNegateResult, lhs, rhs, | 1300 result = assembler->Equal(CodeStubAssembler::kDontNegateResult, lhs, rhs, |
1301 context); | 1301 context); |
1302 break; | 1302 break; |
1303 case Token::NE: | 1303 case Token::NE: |
1304 result = | 1304 result = |
1305 assembler->Equal(CodeStubAssembler::kNegateResult, lhs, rhs, context); | 1305 assembler->Equal(CodeStubAssembler::kNegateResult, lhs, rhs, context); |
1306 break; | 1306 break; |
1307 case Token::EQ_STRICT: | 1307 case Token::EQ_STRICT: |
1308 result = assembler->StrictEqual(CodeStubAssembler::kDontNegateResult, lhs, | 1308 result = assembler->StrictEqual(lhs, rhs, context); |
1309 rhs, context); | |
1310 break; | 1309 break; |
1311 case Token::LT: | 1310 case Token::LT: |
1312 result = assembler->RelationalComparison(CodeStubAssembler::kLessThan, | 1311 result = assembler->RelationalComparison(CodeStubAssembler::kLessThan, |
1313 lhs, rhs, context); | 1312 lhs, rhs, context); |
1314 break; | 1313 break; |
1315 case Token::GT: | 1314 case Token::GT: |
1316 result = assembler->RelationalComparison(CodeStubAssembler::kGreaterThan, | 1315 result = assembler->RelationalComparison(CodeStubAssembler::kGreaterThan, |
1317 lhs, rhs, context); | 1316 lhs, rhs, context); |
1318 break; | 1317 break; |
1319 case Token::LTE: | 1318 case Token::LTE: |
(...skipping 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3380 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, | 3379 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, |
3381 __ SmiTag(new_state)); | 3380 __ SmiTag(new_state)); |
3382 __ SetAccumulator(old_state); | 3381 __ SetAccumulator(old_state); |
3383 | 3382 |
3384 __ Dispatch(); | 3383 __ Dispatch(); |
3385 } | 3384 } |
3386 | 3385 |
3387 } // namespace interpreter | 3386 } // namespace interpreter |
3388 } // namespace internal | 3387 } // namespace internal |
3389 } // namespace v8 | 3388 } // namespace v8 |
OLD | NEW |