| 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 521 | 521 | 
| 522   // Emit code to perform a binary operation on two untagged int32 values. | 522   // Emit code to perform a binary operation on two untagged int32 values. | 
| 523   // The values are on top of the frame, and the result is pushed on the frame. | 523   // The values are on top of the frame, and the result is pushed on the frame. | 
| 524   void Int32BinaryOperation(BinaryOperation* node); | 524   void Int32BinaryOperation(BinaryOperation* node); | 
| 525 | 525 | 
| 526 | 526 | 
| 527   void Comparison(AstNode* node, | 527   void Comparison(AstNode* node, | 
| 528                   Condition cc, | 528                   Condition cc, | 
| 529                   bool strict, | 529                   bool strict, | 
| 530                   ControlDestination* destination); | 530                   ControlDestination* destination); | 
|  | 531   void GenerateInlineNumberComparison(Result* left_side, | 
|  | 532                                       Result* right_side, | 
|  | 533                                       Condition cc, | 
|  | 534                                       ControlDestination* dest); | 
| 531 | 535 | 
| 532   // To prevent long attacker-controlled byte sequences, integer constants | 536   // To prevent long attacker-controlled byte sequences, integer constants | 
| 533   // from the JavaScript source are loaded in two parts if they are larger | 537   // from the JavaScript source are loaded in two parts if they are larger | 
| 534   // than 17 bits. | 538   // than 17 bits. | 
| 535   static const int kMaxSmiInlinedBits = 17; | 539   static const int kMaxSmiInlinedBits = 17; | 
| 536   bool IsUnsafeSmi(Handle<Object> value); | 540   bool IsUnsafeSmi(Handle<Object> value); | 
| 537   // Load an integer constant x into a register target or into the stack using | 541   // Load an integer constant x into a register target or into the stack using | 
| 538   // at most 16 bits of user-controlled data per assembly operation. | 542   // at most 16 bits of user-controlled data per assembly operation. | 
| 539   void MoveUnsafeSmi(Register target, Handle<Object> value); | 543   void MoveUnsafeSmi(Register target, Handle<Object> value); | 
| 540   void StoreUnsafeSmiToLocal(int offset, Handle<Object> value); | 544   void StoreUnsafeSmiToLocal(int offset, Handle<Object> value); | 
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1046     return ObjectBits::encode(object_.code()) | | 1050     return ObjectBits::encode(object_.code()) | | 
| 1047            AddressBits::encode(addr_.code()) | | 1051            AddressBits::encode(addr_.code()) | | 
| 1048            ScratchBits::encode(scratch_.code()); | 1052            ScratchBits::encode(scratch_.code()); | 
| 1049   } | 1053   } | 
| 1050 }; | 1054 }; | 
| 1051 | 1055 | 
| 1052 | 1056 | 
| 1053 } }  // namespace v8::internal | 1057 } }  // namespace v8::internal | 
| 1054 | 1058 | 
| 1055 #endif  // V8_IA32_CODEGEN_IA32_H_ | 1059 #endif  // V8_IA32_CODEGEN_IA32_H_ | 
| OLD | NEW | 
|---|