OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |