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

Side by Side Diff: src/x64/codegen-x64.h

Issue 2771001: Use static type information on x64 in LikelySmiBinaryOperation (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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/ia32/codegen-ia32.cc ('k') | src/x64/codegen-x64.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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 // Translate the value on top of the frame into control flow to the 470 // Translate the value on top of the frame into control flow to the
471 // control destination. 471 // control destination.
472 void ToBoolean(ControlDestination* destination); 472 void ToBoolean(ControlDestination* destination);
473 473
474 // Generate code that computes a shortcutting logical operation. 474 // Generate code that computes a shortcutting logical operation.
475 void GenerateLogicalBooleanOperation(BinaryOperation* node); 475 void GenerateLogicalBooleanOperation(BinaryOperation* node);
476 476
477 void GenericBinaryOperation(BinaryOperation* expr, 477 void GenericBinaryOperation(BinaryOperation* expr,
478 OverwriteMode overwrite_mode); 478 OverwriteMode overwrite_mode);
479 479
480 // Emits code sequence that jumps to deferred code if the inputs
481 // are not both smis. Cannot be in MacroAssembler because it takes
482 // advantage of TypeInfo to skip unneeded checks.
483 void JumpIfNotBothSmiUsingTypeInfo(Register left,
484 Register right,
485 TypeInfo left_info,
486 TypeInfo right_info,
487 DeferredCode* deferred);
488
480 // If possible, combine two constant smi values using op to produce 489 // If possible, combine two constant smi values using op to produce
481 // a smi result, and push it on the virtual frame, all at compile time. 490 // a smi result, and push it on the virtual frame, all at compile time.
482 // Returns true if it succeeds. Otherwise it has no effect. 491 // Returns true if it succeeds. Otherwise it has no effect.
483 bool FoldConstantSmis(Token::Value op, int left, int right); 492 bool FoldConstantSmis(Token::Value op, int left, int right);
484 493
485 // Emit code to perform a binary operation on a constant 494 // Emit code to perform a binary operation on a constant
486 // smi and a likely smi. Consumes the Result *operand. 495 // smi and a likely smi. Consumes the Result *operand.
487 Result ConstantSmiBinaryOperation(BinaryOperation* expr, 496 Result ConstantSmiBinaryOperation(BinaryOperation* expr,
488 Result* operand, 497 Result* operand,
489 Handle<Object> constant_operand, 498 Handle<Object> constant_operand,
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 return ObjectBits::encode(object_.code()) | 1040 return ObjectBits::encode(object_.code()) |
1032 AddressBits::encode(addr_.code()) | 1041 AddressBits::encode(addr_.code()) |
1033 ScratchBits::encode(scratch_.code()); 1042 ScratchBits::encode(scratch_.code());
1034 } 1043 }
1035 }; 1044 };
1036 1045
1037 1046
1038 } } // namespace v8::internal 1047 } } // namespace v8::internal
1039 1048
1040 #endif // V8_X64_CODEGEN_X64_H_ 1049 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698