| OLD | NEW |
| 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 __ mulsd(xmm1, xmm0); | 363 __ mulsd(xmm1, xmm0); |
| 364 __ subsd(xmm1, xmm0); | 364 __ subsd(xmm1, xmm0); |
| 365 __ divsd(xmm1, xmm0); | 365 __ divsd(xmm1, xmm0); |
| 366 __ movdbl(xmm1, Operand(ebx, ecx, times_4, 10000)); | 366 __ movdbl(xmm1, Operand(ebx, ecx, times_4, 10000)); |
| 367 __ movdbl(Operand(ebx, ecx, times_4, 10000), xmm1); | 367 __ movdbl(Operand(ebx, ecx, times_4, 10000), xmm1); |
| 368 } | 368 } |
| 369 __ ret(0); | 369 __ ret(0); |
| 370 | 370 |
| 371 CodeDesc desc; | 371 CodeDesc desc; |
| 372 assm.GetCode(&desc); | 372 assm.GetCode(&desc); |
| 373 Object* code = Heap::CreateCode(desc, NULL, Code::ComputeFlags(Code::STUB)); | 373 Object* code = Heap::CreateCode(desc, |
| 374 NULL, |
| 375 Code::ComputeFlags(Code::STUB), |
| 376 Handle<Object>(Heap::undefined_value())); |
| 374 CHECK(code->IsCode()); | 377 CHECK(code->IsCode()); |
| 375 #ifdef DEBUG | 378 #ifdef DEBUG |
| 376 Code::cast(code)->Print(); | 379 Code::cast(code)->Print(); |
| 377 byte* begin = Code::cast(code)->instruction_start(); | 380 byte* begin = Code::cast(code)->instruction_start(); |
| 378 byte* end = begin + Code::cast(code)->instruction_size(); | 381 byte* end = begin + Code::cast(code)->instruction_size(); |
| 379 disasm::Disassembler::Disassemble(stdout, begin, end); | 382 disasm::Disassembler::Disassemble(stdout, begin, end); |
| 380 #endif | 383 #endif |
| 381 } | 384 } |
| 382 | 385 |
| 383 #undef __ | 386 #undef __ |
| OLD | NEW |