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

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

Issue 597005: Ported ia32 optimization of revision 3487 to x64. (Closed)
Patch Set: Created 10 years, 10 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
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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 OverwriteMode overwrite_mode); 477 OverwriteMode overwrite_mode);
478 478
479 // Emit code to perform a binary operation on two likely smis. 479 // Emit code to perform a binary operation on two likely smis.
480 // The code to handle smi arguments is produced inline. 480 // The code to handle smi arguments is produced inline.
481 // Consumes the Results *left and *right. 481 // Consumes the Results *left and *right.
482 Result LikelySmiBinaryOperation(Token::Value op, 482 Result LikelySmiBinaryOperation(Token::Value op,
483 Result* left, 483 Result* left,
484 Result* right, 484 Result* right,
485 OverwriteMode overwrite_mode); 485 OverwriteMode overwrite_mode);
486 486
487 void Comparison(Condition cc, 487 void Comparison(AstNode* node,
488 Condition cc,
488 bool strict, 489 bool strict,
489 ControlDestination* destination); 490 ControlDestination* destination);
490 491
491 // To prevent long attacker-controlled byte sequences, integer constants 492 // To prevent long attacker-controlled byte sequences, integer constants
492 // from the JavaScript source are loaded in two parts if they are larger 493 // from the JavaScript source are loaded in two parts if they are larger
493 // than 16 bits. 494 // than 16 bits.
494 static const int kMaxSmiInlinedBits = 16; 495 static const int kMaxSmiInlinedBits = 16;
495 bool IsUnsafeSmi(Handle<Object> value); 496 bool IsUnsafeSmi(Handle<Object> value);
496 // Load an integer constant x into a register target using 497 // Load an integer constant x into a register target using
497 // at most 16 bits of user-controlled data per assembly operation. 498 // at most 16 bits of user-controlled data per assembly operation.
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 Major MajorKey() { return StringCompare; } 818 Major MajorKey() { return StringCompare; }
818 int MinorKey() { return 0; } 819 int MinorKey() { return 0; }
819 820
820 void Generate(MacroAssembler* masm); 821 void Generate(MacroAssembler* masm);
821 }; 822 };
822 823
823 824
824 } } // namespace v8::internal 825 } } // namespace v8::internal
825 826
826 #endif // V8_X64_CODEGEN_X64_H_ 827 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x64/codegen-x64.cc » ('j') | src/x64/codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698