Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Side by Side Diff: src/macro-assembler-ia32.cc

Issue 94001: Abolish kDebug and use ifdef DEBUG throughout for consistency. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/macro-assembler-arm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // Get the return address from the stack and restore the frame pointer. 425 // Get the return address from the stack and restore the frame pointer.
426 mov(ecx, Operand(ebp, 1 * kPointerSize)); 426 mov(ecx, Operand(ebp, 1 * kPointerSize));
427 mov(ebp, Operand(ebp, 0 * kPointerSize)); 427 mov(ebp, Operand(ebp, 0 * kPointerSize));
428 428
429 // Pop the arguments and the receiver from the caller stack. 429 // Pop the arguments and the receiver from the caller stack.
430 lea(esp, Operand(esi, 1 * kPointerSize)); 430 lea(esp, Operand(esi, 1 * kPointerSize));
431 431
432 // Restore current context from top and clear it in debug mode. 432 // Restore current context from top and clear it in debug mode.
433 ExternalReference context_address(Top::k_context_address); 433 ExternalReference context_address(Top::k_context_address);
434 mov(esi, Operand::StaticVariable(context_address)); 434 mov(esi, Operand::StaticVariable(context_address));
435 if (kDebug) { 435 #ifdef DEBUG
436 mov(Operand::StaticVariable(context_address), Immediate(0)); 436 mov(Operand::StaticVariable(context_address), Immediate(0));
437 } 437 #endif
438 438
439 // Push the return address to get ready to return. 439 // Push the return address to get ready to return.
440 push(ecx); 440 push(ecx);
441 441
442 // Clear the top frame. 442 // Clear the top frame.
443 ExternalReference c_entry_fp_address(Top::k_c_entry_fp_address); 443 ExternalReference c_entry_fp_address(Top::k_c_entry_fp_address);
444 mov(Operand::StaticVariable(c_entry_fp_address), Immediate(0)); 444 mov(Operand::StaticVariable(c_entry_fp_address), Immediate(0));
445 } 445 }
446 446
447 447
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 // Indicate that code has changed. 1042 // Indicate that code has changed.
1043 CPU::FlushICache(address_, size_); 1043 CPU::FlushICache(address_, size_);
1044 1044
1045 // Check that the code was patched as expected. 1045 // Check that the code was patched as expected.
1046 ASSERT(masm_.pc_ == address_ + size_); 1046 ASSERT(masm_.pc_ == address_ + size_);
1047 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 1047 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
1048 } 1048 }
1049 1049
1050 1050
1051 } } // namespace v8::internal 1051 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/macro-assembler-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698