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

Side by Side Diff: src/ia32/debug-ia32.cc

Issue 543207: Removing redundant stub for runtime native calls. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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/ia32/codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Store the registers containing object pointers on the expression stack to 87 // Store the registers containing object pointers on the expression stack to
88 // make sure that these are correctly updated during GC. 88 // make sure that these are correctly updated during GC.
89 __ PushRegistersFromMemory(pointer_regs); 89 __ PushRegistersFromMemory(pointer_regs);
90 90
91 #ifdef DEBUG 91 #ifdef DEBUG
92 __ RecordComment("// Calling from debug break to runtime - come in - over"); 92 __ RecordComment("// Calling from debug break to runtime - come in - over");
93 #endif 93 #endif
94 __ Set(eax, Immediate(0)); // no arguments 94 __ Set(eax, Immediate(0)); // no arguments
95 __ mov(ebx, Immediate(ExternalReference::debug_break())); 95 __ mov(ebx, Immediate(ExternalReference::debug_break()));
96 96
97 CEntryDebugBreakStub ceb; 97 CEntryStub ceb(1);
98 __ CallStub(&ceb); 98 __ CallStub(&ceb);
99 99
100 // Restore the register values containing object pointers from the expression 100 // Restore the register values containing object pointers from the expression
101 // stack in the reverse order as they where pushed. 101 // stack in the reverse order as they where pushed.
102 __ PopRegistersToMemory(pointer_regs); 102 __ PopRegistersToMemory(pointer_regs);
103 103
104 // Get rid of the internal frame. 104 // Get rid of the internal frame.
105 __ LeaveInternalFrame(); 105 __ LeaveInternalFrame();
106 106
107 // If this call did not replace a call but patched other code then there will 107 // If this call did not replace a call but patched other code then there will
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // ----------------------------------- 199 // -----------------------------------
200 Generate_DebugBreakCallHelper(masm, 0, false); 200 Generate_DebugBreakCallHelper(masm, 0, false);
201 } 201 }
202 202
203 203
204 #undef __ 204 #undef __
205 205
206 #endif // ENABLE_DEBUGGER_SUPPORT 206 #endif // ENABLE_DEBUGGER_SUPPORT
207 207
208 } } // namespace v8::internal 208 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698