| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 __ xor_(eax, 12345678); | 69 __ xor_(eax, 12345678); |
| 70 __ and_(eax, 12345678); | 70 __ and_(eax, 12345678); |
| 71 Handle<FixedArray> foo = FACTORY->NewFixedArray(10, TENURED); | 71 Handle<FixedArray> foo = FACTORY->NewFixedArray(10, TENURED); |
| 72 __ cmp(eax, foo); | 72 __ cmp(eax, foo); |
| 73 | 73 |
| 74 // ---- This one caused crash | 74 // ---- This one caused crash |
| 75 __ mov(ebx, Operand(esp, ecx, times_2, 0)); // [esp+ecx*4] | 75 __ mov(ebx, Operand(esp, ecx, times_2, 0)); // [esp+ecx*4] |
| 76 | 76 |
| 77 // ---- All instructions that I can think of | 77 // ---- All instructions that I can think of |
| 78 __ add(edx, ebx); | 78 __ add(edx, ebx); |
| 79 __ add(edx, Operand(12, RelocInfo::NONE)); | 79 __ add(edx, Operand(12, RelocInfo::NONE32)); |
| 80 __ add(edx, Operand(ebx, 0)); | 80 __ add(edx, Operand(ebx, 0)); |
| 81 __ add(edx, Operand(ebx, 16)); | 81 __ add(edx, Operand(ebx, 16)); |
| 82 __ add(edx, Operand(ebx, 1999)); | 82 __ add(edx, Operand(ebx, 1999)); |
| 83 __ add(edx, Operand(esp, 0)); | 83 __ add(edx, Operand(esp, 0)); |
| 84 __ add(edx, Operand(esp, 16)); | 84 __ add(edx, Operand(esp, 16)); |
| 85 __ add(edx, Operand(esp, 1999)); | 85 __ add(edx, Operand(esp, 1999)); |
| 86 __ nop(); | 86 __ nop(); |
| 87 __ add(edi, Operand(ebp, ecx, times_4, 0)); | 87 __ add(edi, Operand(ebp, ecx, times_4, 0)); |
| 88 __ add(edi, Operand(ebp, ecx, times_4, 12)); | 88 __ add(edi, Operand(ebp, ecx, times_4, 12)); |
| 89 __ add(Operand(ebp, ecx, times_4, 12), Immediate(12)); | 89 __ add(Operand(ebp, ecx, times_4, 12), Immediate(12)); |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 CHECK(code->IsCode()); | 466 CHECK(code->IsCode()); |
| 467 #ifdef OBJECT_PRINT | 467 #ifdef OBJECT_PRINT |
| 468 Code::cast(code)->Print(); | 468 Code::cast(code)->Print(); |
| 469 byte* begin = Code::cast(code)->instruction_start(); | 469 byte* begin = Code::cast(code)->instruction_start(); |
| 470 byte* end = begin + Code::cast(code)->instruction_size(); | 470 byte* end = begin + Code::cast(code)->instruction_size(); |
| 471 disasm::Disassembler::Disassemble(stdout, begin, end); | 471 disasm::Disassembler::Disassemble(stdout, begin, end); |
| 472 #endif | 472 #endif |
| 473 } | 473 } |
| 474 | 474 |
| 475 #undef __ | 475 #undef __ |
| OLD | NEW |