| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 UNREACHABLE(); // Not used on IA32. | 372 UNREACHABLE(); // Not used on IA32. |
| 373 } | 373 } |
| 374 | 374 |
| 375 | 375 |
| 376 void FullCodeGenerator::EffectContext::Plug(Handle<Object> lit) const { | 376 void FullCodeGenerator::EffectContext::Plug(Handle<Object> lit) const { |
| 377 } | 377 } |
| 378 | 378 |
| 379 | 379 |
| 380 void FullCodeGenerator::AccumulatorValueContext::Plug( | 380 void FullCodeGenerator::AccumulatorValueContext::Plug( |
| 381 Handle<Object> lit) const { | 381 Handle<Object> lit) const { |
| 382 __ mov(result_register(), lit); | 382 __ Set(result_register(), Immediate(lit)); |
| 383 } | 383 } |
| 384 | 384 |
| 385 | 385 |
| 386 void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const { | 386 void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const { |
| 387 // Immediates can be pushed directly. | 387 // Immediates can be pushed directly. |
| 388 __ push(Immediate(lit)); | 388 __ push(Immediate(lit)); |
| 389 } | 389 } |
| 390 | 390 |
| 391 | 391 |
| 392 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { | 392 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { |
| (...skipping 3867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4260 // And return. | 4260 // And return. |
| 4261 __ ret(0); | 4261 __ ret(0); |
| 4262 } | 4262 } |
| 4263 | 4263 |
| 4264 | 4264 |
| 4265 #undef __ | 4265 #undef __ |
| 4266 | 4266 |
| 4267 } } // namespace v8::internal | 4267 } } // namespace v8::internal |
| 4268 | 4268 |
| 4269 #endif // V8_TARGET_ARCH_IA32 | 4269 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |