| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 // To prevent long attacker-controlled byte sequences, integer constants | 467 // To prevent long attacker-controlled byte sequences, integer constants |
| 468 // from the JavaScript source are loaded in two parts if they are larger | 468 // from the JavaScript source are loaded in two parts if they are larger |
| 469 // than 16 bits. | 469 // than 16 bits. |
| 470 static const int kMaxSmiInlinedBits = 16; | 470 static const int kMaxSmiInlinedBits = 16; |
| 471 bool IsUnsafeSmi(Handle<Object> value); | 471 bool IsUnsafeSmi(Handle<Object> value); |
| 472 // Load an integer constant x into a register target using | 472 // Load an integer constant x into a register target using |
| 473 // at most 16 bits of user-controlled data per assembly operation. | 473 // at most 16 bits of user-controlled data per assembly operation. |
| 474 void LoadUnsafeSmi(Register target, Handle<Object> value); | 474 void LoadUnsafeSmi(Register target, Handle<Object> value); |
| 475 | 475 |
| 476 bool IsInlineSmi(Literal* literal); | 476 bool IsInlineSmi(Literal* literal); |
| 477 void SmiComparison(Condition cc, Handle<Object> value, bool strict); | |
| 478 void SmiOperation(Token::Value op, | 477 void SmiOperation(Token::Value op, |
| 479 StaticType* type, | 478 StaticType* type, |
| 480 Handle<Object> value, | 479 Handle<Object> value, |
| 481 bool reversed, | 480 bool reversed, |
| 482 OverwriteMode overwrite_mode); | 481 OverwriteMode overwrite_mode); |
| 483 | 482 |
| 484 void CallWithArguments(ZoneList<Expression*>* arguments, int position); | 483 void CallWithArguments(ZoneList<Expression*>* arguments, int position); |
| 485 | 484 |
| 486 void CheckStack(); | 485 void CheckStack(); |
| 487 void CleanStack(int num_bytes); | 486 void CleanStack(int num_bytes); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 cgen_->set_in_spilled_code(false); | 631 cgen_->set_in_spilled_code(false); |
| 633 GetValue(typeof_state); | 632 GetValue(typeof_state); |
| 634 cgen_->frame()->SpillAll(); | 633 cgen_->frame()->SpillAll(); |
| 635 cgen_->set_in_spilled_code(true); | 634 cgen_->set_in_spilled_code(true); |
| 636 } | 635 } |
| 637 | 636 |
| 638 | 637 |
| 639 } } // namespace v8::internal | 638 } } // namespace v8::internal |
| 640 | 639 |
| 641 #endif // V8_CODEGEN_IA32_H_ | 640 #endif // V8_CODEGEN_IA32_H_ |
| OLD | NEW |