| 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 UNREACHABLE(); // Not used on IA32. | 374 UNREACHABLE(); // Not used on IA32. |
| 375 } | 375 } |
| 376 | 376 |
| 377 | 377 |
| 378 void FullCodeGenerator::EffectContext::Plug(Handle<Object> lit) const { | 378 void FullCodeGenerator::EffectContext::Plug(Handle<Object> lit) const { |
| 379 } | 379 } |
| 380 | 380 |
| 381 | 381 |
| 382 void FullCodeGenerator::AccumulatorValueContext::Plug( | 382 void FullCodeGenerator::AccumulatorValueContext::Plug( |
| 383 Handle<Object> lit) const { | 383 Handle<Object> lit) const { |
| 384 __ mov(result_register(), lit); | 384 __ Set(result_register(), Immediate(lit)); |
| 385 } | 385 } |
| 386 | 386 |
| 387 | 387 |
| 388 void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const { | 388 void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const { |
| 389 // Immediates can be pushed directly. | 389 // Immediates can be pushed directly. |
| 390 __ push(Immediate(lit)); | 390 __ push(Immediate(lit)); |
| 391 } | 391 } |
| 392 | 392 |
| 393 | 393 |
| 394 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { | 394 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { |
| (...skipping 3883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4278 // And return. | 4278 // And return. |
| 4279 __ ret(0); | 4279 __ ret(0); |
| 4280 } | 4280 } |
| 4281 | 4281 |
| 4282 | 4282 |
| 4283 #undef __ | 4283 #undef __ |
| 4284 | 4284 |
| 4285 } } // namespace v8::internal | 4285 } } // namespace v8::internal |
| 4286 | 4286 |
| 4287 #endif // V8_TARGET_ARCH_IA32 | 4287 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |