OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 case Token::MOD: | 493 case Token::MOD: |
494 case Token::MUL: | 494 case Token::MUL: |
495 case Token::BIT_OR: | 495 case Token::BIT_OR: |
496 case Token::BIT_AND: | 496 case Token::BIT_AND: |
497 case Token::BIT_XOR: | 497 case Token::BIT_XOR: |
498 case Token::SHL: | 498 case Token::SHL: |
499 case Token::SHR: | 499 case Token::SHR: |
500 case Token::SAR: | 500 case Token::SAR: |
501 VisitForValue(expr->left(), kStack); | 501 VisitForValue(expr->left(), kStack); |
502 VisitForValue(expr->right(), kAccumulator); | 502 VisitForValue(expr->right(), kAccumulator); |
| 503 SetSourcePosition(expr->position()); |
503 EmitBinaryOp(expr->op(), context_); | 504 EmitBinaryOp(expr->op(), context_); |
504 break; | 505 break; |
505 | 506 |
506 default: | 507 default: |
507 UNREACHABLE(); | 508 UNREACHABLE(); |
508 } | 509 } |
509 } | 510 } |
510 | 511 |
511 | 512 |
512 void FullCodeGenerator::EmitLogicalOperation(BinaryOperation* expr) { | 513 void FullCodeGenerator::EmitLogicalOperation(BinaryOperation* expr) { |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 ASSERT(args->length() == 1); | 1047 ASSERT(args->length() == 1); |
1047 VisitForValue(args->at(0), kStack); | 1048 VisitForValue(args->at(0), kStack); |
1048 __ CallRuntime(Runtime::kRegExpCloneResult, 1); | 1049 __ CallRuntime(Runtime::kRegExpCloneResult, 1); |
1049 Apply(context_, result_register()); | 1050 Apply(context_, result_register()); |
1050 } | 1051 } |
1051 | 1052 |
1052 #undef __ | 1053 #undef __ |
1053 | 1054 |
1054 | 1055 |
1055 } } // namespace v8::internal | 1056 } } // namespace v8::internal |
OLD | NEW |