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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 __ xor_(eax, 12345678); | 71 __ xor_(eax, 12345678); |
72 __ and_(eax, 12345678); | 72 __ and_(eax, 12345678); |
73 Handle<FixedArray> foo = Factory::NewFixedArray(10, TENURED); | 73 Handle<FixedArray> foo = Factory::NewFixedArray(10, TENURED); |
74 __ cmp(eax, foo); | 74 __ cmp(eax, foo); |
75 | 75 |
76 // ---- This one caused crash | 76 // ---- This one caused crash |
77 __ mov(ebx, Operand(esp, ecx, times_2, 0)); // [esp+ecx*4] | 77 __ mov(ebx, Operand(esp, ecx, times_2, 0)); // [esp+ecx*4] |
78 | 78 |
79 // ---- All instructions that I can think of | 79 // ---- All instructions that I can think of |
80 __ add(edx, Operand(ebx)); | 80 __ add(edx, Operand(ebx)); |
81 __ add(edx, Operand(12, no_reloc)); | 81 __ add(edx, Operand(12, RelocInfo::NONE)); |
82 __ add(edx, Operand(ebx, 0)); | 82 __ add(edx, Operand(ebx, 0)); |
83 __ add(edx, Operand(ebx, 16)); | 83 __ add(edx, Operand(ebx, 16)); |
84 __ add(edx, Operand(ebx, 1999)); | 84 __ add(edx, Operand(ebx, 1999)); |
85 __ add(edx, Operand(esp, 0)); | 85 __ add(edx, Operand(esp, 0)); |
86 __ add(edx, Operand(esp, 16)); | 86 __ add(edx, Operand(esp, 16)); |
87 __ add(edx, Operand(esp, 1999)); | 87 __ add(edx, Operand(esp, 1999)); |
88 __ nop(); | 88 __ nop(); |
89 __ add(edi, Operand(ebp, ecx, times_4, 0)); | 89 __ add(edi, Operand(ebp, ecx, times_4, 0)); |
90 __ add(edi, Operand(ebp, ecx, times_4, 12)); | 90 __ add(edi, Operand(ebp, ecx, times_4, 12)); |
91 __ add(Operand(ebp, ecx, times_4, 12), Immediate(12)); | 91 __ add(Operand(ebp, ecx, times_4, 12), Immediate(12)); |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 Label L1, L2; | 252 Label L1, L2; |
253 __ bind(&L1); | 253 __ bind(&L1); |
254 __ nop(); | 254 __ nop(); |
255 __ call(&L1); | 255 __ call(&L1); |
256 __ call(&L2); | 256 __ call(&L2); |
257 __ nop(); | 257 __ nop(); |
258 __ bind(&L2); | 258 __ bind(&L2); |
259 __ call(Operand(ebx, ecx, times_4, 10000)); | 259 __ call(Operand(ebx, ecx, times_4, 10000)); |
260 __ nop(); | 260 __ nop(); |
261 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize)); | 261 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize)); |
262 __ call(ic, code_target); | 262 __ call(ic, RelocInfo::CODE_TARGET); |
263 __ nop(); | 263 __ nop(); |
264 __ call(FUNCTION_ADDR(DummyStaticFunction), runtime_entry); | 264 __ call(FUNCTION_ADDR(DummyStaticFunction), RelocInfo::RUNTIME_ENTRY); |
265 __ nop(); | 265 __ nop(); |
266 | 266 |
267 __ jmp(&L1); | 267 __ jmp(&L1); |
268 __ jmp(Operand(ebx, ecx, times_4, 10000)); | 268 __ jmp(Operand(ebx, ecx, times_4, 10000)); |
269 ExternalReference after_break_target = | 269 ExternalReference after_break_target = |
270 ExternalReference(Debug_Address::AfterBreakTarget()); | 270 ExternalReference(Debug_Address::AfterBreakTarget()); |
271 __ jmp(Operand::StaticVariable(after_break_target)); | 271 __ jmp(Operand::StaticVariable(after_break_target)); |
272 __ jmp(ic, code_target); | 272 __ jmp(ic, RelocInfo::CODE_TARGET); |
273 __ nop(); | 273 __ nop(); |
274 | 274 |
275 | 275 |
276 Label Ljcc; | 276 Label Ljcc; |
277 __ nop(); | 277 __ nop(); |
278 // long jumps | 278 // long jumps |
279 __ j(overflow, &Ljcc); | 279 __ j(overflow, &Ljcc); |
280 __ j(no_overflow, &Ljcc); | 280 __ j(no_overflow, &Ljcc); |
281 __ j(below, &Ljcc); | 281 __ j(below, &Ljcc); |
282 __ j(above_equal, &Ljcc); | 282 __ j(above_equal, &Ljcc); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 CHECK(code->IsCode()); | 374 CHECK(code->IsCode()); |
375 #ifdef DEBUG | 375 #ifdef DEBUG |
376 Code::cast(code)->Print(); | 376 Code::cast(code)->Print(); |
377 byte* begin = Code::cast(code)->instruction_start(); | 377 byte* begin = Code::cast(code)->instruction_start(); |
378 byte* end = begin + Code::cast(code)->instruction_size(); | 378 byte* end = begin + Code::cast(code)->instruction_size(); |
379 disasm::Disassembler::Disassemble(stdout, begin, end); | 379 disasm::Disassembler::Disassemble(stdout, begin, end); |
380 #endif | 380 #endif |
381 } | 381 } |
382 | 382 |
383 #undef __ | 383 #undef __ |
OLD | NEW |