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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 261 |
262 Label L1, L2; | 262 Label L1, L2; |
263 __ bind(&L1); | 263 __ bind(&L1); |
264 __ nop(); | 264 __ nop(); |
265 __ call(&L1); | 265 __ call(&L1); |
266 __ call(&L2); | 266 __ call(&L2); |
267 __ nop(); | 267 __ nop(); |
268 __ bind(&L2); | 268 __ bind(&L2); |
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(Isolate::Current()->builtins()->builtin( |
| 272 Builtins::LoadIC_Initialize)); |
272 __ call(ic, RelocInfo::CODE_TARGET); | 273 __ call(ic, RelocInfo::CODE_TARGET); |
273 __ nop(); | 274 __ nop(); |
274 __ call(FUNCTION_ADDR(DummyStaticFunction), RelocInfo::RUNTIME_ENTRY); | 275 __ call(FUNCTION_ADDR(DummyStaticFunction), RelocInfo::RUNTIME_ENTRY); |
275 __ nop(); | 276 __ nop(); |
276 | 277 |
277 __ jmp(&L1); | 278 __ jmp(&L1); |
278 __ jmp(Operand(ebx, ecx, times_4, 10000)); | 279 __ jmp(Operand(ebx, ecx, times_4, 10000)); |
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)); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 CHECK(code->IsCode()); | 420 CHECK(code->IsCode()); |
420 #ifdef DEBUG | 421 #ifdef DEBUG |
421 Code::cast(code)->Print(); | 422 Code::cast(code)->Print(); |
422 byte* begin = Code::cast(code)->instruction_start(); | 423 byte* begin = Code::cast(code)->instruction_start(); |
423 byte* end = begin + Code::cast(code)->instruction_size(); | 424 byte* end = begin + Code::cast(code)->instruction_size(); |
424 disasm::Disassembler::Disassemble(stdout, begin, end); | 425 disasm::Disassembler::Disassemble(stdout, begin, end); |
425 #endif | 426 #endif |
426 } | 427 } |
427 | 428 |
428 #undef __ | 429 #undef __ |
OLD | NEW |