| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 return ContextOperand(esi, Context::GLOBAL_INDEX); | 280 return ContextOperand(esi, Context::GLOBAL_INDEX); |
| 281 } | 281 } |
| 282 | 282 |
| 283 void LoadCondition(Expression* x, | 283 void LoadCondition(Expression* x, |
| 284 TypeofState typeof_state, | 284 TypeofState typeof_state, |
| 285 JumpTarget* true_target, | 285 JumpTarget* true_target, |
| 286 JumpTarget* false_target, | 286 JumpTarget* false_target, |
| 287 bool force_cc); | 287 bool force_cc); |
| 288 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); | 288 void Load(Expression* x, TypeofState typeof_state = NOT_INSIDE_TYPEOF); |
| 289 void LoadGlobal(); | 289 void LoadGlobal(); |
| 290 void LoadGlobalReceiver(Register scratch); | 290 void LoadGlobalReceiver(); |
| 291 | 291 |
| 292 // Generate code to push the value of an expression on top of the frame | 292 // Generate code to push the value of an expression on top of the frame |
| 293 // and then spill the frame fully to memory. This function is used | 293 // and then spill the frame fully to memory. This function is used |
| 294 // temporarily while the code generator is being transformed. | 294 // temporarily while the code generator is being transformed. |
| 295 void LoadAndSpill(Expression* expression, | 295 void LoadAndSpill(Expression* expression, |
| 296 TypeofState typeof_state = NOT_INSIDE_TYPEOF) { | 296 TypeofState typeof_state = NOT_INSIDE_TYPEOF) { |
| 297 ASSERT(in_spilled_code()); | 297 ASSERT(in_spilled_code()); |
| 298 set_in_spilled_code(false); | 298 set_in_spilled_code(false); |
| 299 Load(expression, typeof_state); | 299 Load(expression, typeof_state); |
| 300 frame_->SpillAll(); | 300 frame_->SpillAll(); |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 cgen_->set_in_spilled_code(false); | 505 cgen_->set_in_spilled_code(false); |
| 506 GetValue(typeof_state); | 506 GetValue(typeof_state); |
| 507 cgen_->frame()->SpillAll(); | 507 cgen_->frame()->SpillAll(); |
| 508 cgen_->set_in_spilled_code(true); | 508 cgen_->set_in_spilled_code(true); |
| 509 } | 509 } |
| 510 | 510 |
| 511 | 511 |
| 512 } } // namespace v8::internal | 512 } } // namespace v8::internal |
| 513 | 513 |
| 514 #endif // V8_CODEGEN_IA32_H_ | 514 #endif // V8_CODEGEN_IA32_H_ |
| OLD | NEW |