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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 Label L1, L2; | 266 Label L1, L2; |
267 __ bind(&L1); | 267 __ bind(&L1); |
268 __ nop(); | 268 __ nop(); |
269 __ call(&L1); | 269 __ call(&L1); |
270 __ call(&L2); | 270 __ call(&L2); |
271 __ nop(); | 271 __ nop(); |
272 __ bind(&L2); | 272 __ bind(&L2); |
273 __ call(Operand(ebx, ecx, times_4, 10000)); | 273 __ call(Operand(ebx, ecx, times_4, 10000)); |
274 __ nop(); | 274 __ nop(); |
275 Handle<Code> ic(Isolate::Current()->builtins()->builtin( | 275 Handle<Code> ic(Isolate::Current()->builtins()->builtin( |
276 Builtins::LoadIC_Initialize)); | 276 Builtins::kLoadIC_Initialize)); |
277 __ call(ic, RelocInfo::CODE_TARGET); | 277 __ call(ic, RelocInfo::CODE_TARGET); |
278 __ nop(); | 278 __ nop(); |
279 __ call(FUNCTION_ADDR(DummyStaticFunction), RelocInfo::RUNTIME_ENTRY); | 279 __ call(FUNCTION_ADDR(DummyStaticFunction), RelocInfo::RUNTIME_ENTRY); |
280 __ nop(); | 280 __ nop(); |
281 | 281 |
282 __ jmp(&L1); | 282 __ jmp(&L1); |
283 __ jmp(Operand(ebx, ecx, times_4, 10000)); | 283 __ jmp(Operand(ebx, ecx, times_4, 10000)); |
284 #ifdef ENABLE_DEBUGGER_SUPPORT | 284 #ifdef ENABLE_DEBUGGER_SUPPORT |
285 ExternalReference after_break_target = | 285 ExternalReference after_break_target = |
286 ExternalReference(Debug_Address::AfterBreakTarget(), | 286 ExternalReference(Debug_Address::AfterBreakTarget(), |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 CHECK(code->IsCode()); | 467 CHECK(code->IsCode()); |
468 #ifdef OBJECT_PRINT | 468 #ifdef OBJECT_PRINT |
469 Code::cast(code)->Print(); | 469 Code::cast(code)->Print(); |
470 byte* begin = Code::cast(code)->instruction_start(); | 470 byte* begin = Code::cast(code)->instruction_start(); |
471 byte* end = begin + Code::cast(code)->instruction_size(); | 471 byte* end = begin + Code::cast(code)->instruction_size(); |
472 disasm::Disassembler::Disassemble(stdout, begin, end); | 472 disasm::Disassembler::Disassemble(stdout, begin, end); |
473 #endif | 473 #endif |
474 } | 474 } |
475 | 475 |
476 #undef __ | 476 #undef __ |
OLD | NEW |