| 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(AstNode* node, | 487 void Comparison(AstNode* node, |
| 488 Condition cc, | 488 Condition cc, |
| 489 bool strict, | 489 bool strict, |
| 490 ControlDestination* destination); | 490 ControlDestination* destination); |
| 491 void GenerateInlineNumberComparison(Result* left_side, |
| 492 Result* right_side, |
| 493 Condition cc, |
| 494 ControlDestination* dest); |
| 491 | 495 |
| 492 // To prevent long attacker-controlled byte sequences, integer constants | 496 // To prevent long attacker-controlled byte sequences, integer constants |
| 493 // from the JavaScript source are loaded in two parts if they are larger | 497 // from the JavaScript source are loaded in two parts if they are larger |
| 494 // than 16 bits. | 498 // than 16 bits. |
| 495 static const int kMaxSmiInlinedBits = 16; | 499 static const int kMaxSmiInlinedBits = 16; |
| 496 bool IsUnsafeSmi(Handle<Object> value); | 500 bool IsUnsafeSmi(Handle<Object> value); |
| 497 // Load an integer constant x into a register target using | 501 // Load an integer constant x into a register target using |
| 498 // at most 16 bits of user-controlled data per assembly operation. | 502 // at most 16 bits of user-controlled data per assembly operation. |
| 499 void LoadUnsafeSmi(Register target, Handle<Object> value); | 503 void LoadUnsafeSmi(Register target, Handle<Object> value); |
| 500 | 504 |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 void Print() { | 954 void Print() { |
| 951 PrintF("NumberToStringStub\n"); | 955 PrintF("NumberToStringStub\n"); |
| 952 } | 956 } |
| 953 #endif | 957 #endif |
| 954 }; | 958 }; |
| 955 | 959 |
| 956 | 960 |
| 957 } } // namespace v8::internal | 961 } } // namespace v8::internal |
| 958 | 962 |
| 959 #endif // V8_X64_CODEGEN_X64_H_ | 963 #endif // V8_X64_CODEGEN_X64_H_ |
| OLD | NEW |