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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 __ call(Operand(ebx, ecx, times_4, 10000)); | 269 __ call(Operand(ebx, ecx, times_4, 10000)); |
270 __ nop(); | 270 __ nop(); |
271 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize)); | 271 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize)); |
272 __ call(ic, RelocInfo::CODE_TARGET); | 272 __ call(ic, RelocInfo::CODE_TARGET); |
273 __ nop(); | 273 __ nop(); |
274 __ call(FUNCTION_ADDR(DummyStaticFunction), RelocInfo::RUNTIME_ENTRY); | 274 __ call(FUNCTION_ADDR(DummyStaticFunction), RelocInfo::RUNTIME_ENTRY); |
275 __ nop(); | 275 __ nop(); |
276 | 276 |
277 __ jmp(&L1); | 277 __ jmp(&L1); |
278 __ jmp(Operand(ebx, ecx, times_4, 10000)); | 278 __ jmp(Operand(ebx, ecx, times_4, 10000)); |
| 279 #ifdef ENABLE_DEBUGGER_SUPPORT |
279 ExternalReference after_break_target = | 280 ExternalReference after_break_target = |
280 ExternalReference(Debug_Address::AfterBreakTarget()); | 281 ExternalReference(Debug_Address::AfterBreakTarget()); |
281 __ jmp(Operand::StaticVariable(after_break_target)); | 282 __ jmp(Operand::StaticVariable(after_break_target)); |
| 283 #endif // ENABLE_DEBUGGER_SUPPORT |
282 __ jmp(ic, RelocInfo::CODE_TARGET); | 284 __ jmp(ic, RelocInfo::CODE_TARGET); |
283 __ nop(); | 285 __ nop(); |
284 | 286 |
285 | 287 |
286 Label Ljcc; | 288 Label Ljcc; |
287 __ nop(); | 289 __ nop(); |
288 // long jumps | 290 // long jumps |
289 __ j(overflow, &Ljcc); | 291 __ j(overflow, &Ljcc); |
290 __ j(no_overflow, &Ljcc); | 292 __ j(no_overflow, &Ljcc); |
291 __ j(below, &Ljcc); | 293 __ j(below, &Ljcc); |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 CHECK(code->IsCode()); | 421 CHECK(code->IsCode()); |
420 #ifdef DEBUG | 422 #ifdef DEBUG |
421 Code::cast(code)->Print(); | 423 Code::cast(code)->Print(); |
422 byte* begin = Code::cast(code)->instruction_start(); | 424 byte* begin = Code::cast(code)->instruction_start(); |
423 byte* end = begin + Code::cast(code)->instruction_size(); | 425 byte* end = begin + Code::cast(code)->instruction_size(); |
424 disasm::Disassembler::Disassemble(stdout, begin, end); | 426 disasm::Disassembler::Disassemble(stdout, begin, end); |
425 #endif | 427 #endif |
426 } | 428 } |
427 | 429 |
428 #undef __ | 430 #undef __ |
OLD | NEW |