Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: src/full-codegen.cc

Issue 3120027: Add position information for compares, binary ops, and count (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ast.cc ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698