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

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

Issue 555099: Implement unary addition in the full (non-optimizing) code generator. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 11 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/arm/full-codegen-arm.cc ('k') | src/ia32/full-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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 // Check all arguments to the call. (Relies on TEMP meaning STACK.) 411 // Check all arguments to the call. (Relies on TEMP meaning STACK.)
412 for (int i = 0; i < expr->arguments()->length(); i++) { 412 for (int i = 0; i < expr->arguments()->length(); i++) {
413 Visit(expr->arguments()->at(i)); 413 Visit(expr->arguments()->at(i));
414 CHECK_BAILOUT; 414 CHECK_BAILOUT;
415 } 415 }
416 } 416 }
417 417
418 418
419 void FullCodeGenSyntaxChecker::VisitUnaryOperation(UnaryOperation* expr) { 419 void FullCodeGenSyntaxChecker::VisitUnaryOperation(UnaryOperation* expr) {
420 switch (expr->op()) { 420 switch (expr->op()) {
421 case Token::VOID: 421 case Token::ADD:
422 case Token::NOT: 422 case Token::NOT:
423 case Token::TYPEOF: 423 case Token::TYPEOF:
424 case Token::VOID:
424 Visit(expr->expression()); 425 Visit(expr->expression());
425 break; 426 break;
426 case Token::BIT_NOT: 427 case Token::BIT_NOT:
427 BAILOUT("UnaryOperation: BIT_NOT"); 428 BAILOUT("UnaryOperation: BIT_NOT");
428 case Token::DELETE: 429 case Token::DELETE:
429 BAILOUT("UnaryOperation: DELETE"); 430 BAILOUT("UnaryOperation: DELETE");
430 case Token::ADD:
431 BAILOUT("UnaryOperation: ADD");
432 case Token::SUB: 431 case Token::SUB:
433 BAILOUT("UnaryOperation: SUB"); 432 BAILOUT("UnaryOperation: SUB");
434 default: 433 default:
435 UNREACHABLE(); 434 UNREACHABLE();
436 } 435 }
437 } 436 }
438 437
439 438
440 void FullCodeGenSyntaxChecker::VisitCountOperation(CountOperation* expr) { 439 void FullCodeGenSyntaxChecker::VisitCountOperation(CountOperation* expr) {
441 Variable* var = expr->expression()->AsVariableProxy()->AsVariable(); 440 Variable* var = expr->expression()->AsVariableProxy()->AsVariable();
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 __ Drop(stack_depth); 1186 __ Drop(stack_depth);
1188 __ PopTryHandler(); 1187 __ PopTryHandler();
1189 return 0; 1188 return 0;
1190 } 1189 }
1191 1190
1192 1191
1193 #undef __ 1192 #undef __
1194 1193
1195 1194
1196 } } // namespace v8::internal 1195 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698