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

Side by Side Diff: src/codegen.cc

Issue 6810015: Remove unnecessary AST node for ++ and -- operations. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 8 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.h ('k') | src/data-flow.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 } 351 }
352 } 352 }
353 } 353 }
354 354
355 // Invoke the platform-dependent code generator to do the actual 355 // Invoke the platform-dependent code generator to do the actual
356 // declaration the global variables and functions. 356 // declaration the global variables and functions.
357 DeclareGlobals(array); 357 DeclareGlobals(array);
358 } 358 }
359 359
360 360
361 void CodeGenerator::VisitIncrementOperation(IncrementOperation* expr) {
362 UNREACHABLE();
363 }
364
365
366 // Lookup table for code generators for special runtime calls which are 361 // Lookup table for code generators for special runtime calls which are
367 // generated inline. 362 // generated inline.
368 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \ 363 #define INLINE_FUNCTION_GENERATOR_ADDRESS(Name, argc, ressize) \
369 &CodeGenerator::Generate##Name, 364 &CodeGenerator::Generate##Name,
370 365
371 const CodeGenerator::InlineFunctionGenerator 366 const CodeGenerator::InlineFunctionGenerator
372 CodeGenerator::kInlineFunctionGenerators[] = { 367 CodeGenerator::kInlineFunctionGenerators[] = {
373 INLINE_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_ADDRESS) 368 INLINE_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_ADDRESS)
374 INLINE_RUNTIME_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_ADDRESS) 369 INLINE_RUNTIME_FUNCTION_LIST(INLINE_FUNCTION_GENERATOR_ADDRESS)
375 }; 370 };
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 int result = save_doubles_ ? 1 : 0; 491 int result = save_doubles_ ? 1 : 0;
497 #ifdef _WIN64 492 #ifdef _WIN64
498 return result | ((result_size_ == 1) ? 0 : 2); 493 return result | ((result_size_ == 1) ? 0 : 2);
499 #else 494 #else
500 return result; 495 return result;
501 #endif 496 #endif
502 } 497 }
503 498
504 499
505 } } // namespace v8::internal 500 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/data-flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698