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

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

Issue 118500: Get rid of the notion of "parameter pointer" that no longer exists in... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 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/frames-inl.h ('k') | src/ia32/frames-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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 7100 matching lines...) Expand 10 before | Expand all | Expand 10 after
7111 __ ret(0); 7111 __ ret(0);
7112 } 7112 }
7113 7113
7114 7114
7115 void CEntryStub::GenerateBody(MacroAssembler* masm, bool is_debug_break) { 7115 void CEntryStub::GenerateBody(MacroAssembler* masm, bool is_debug_break) {
7116 // eax: number of arguments including receiver 7116 // eax: number of arguments including receiver
7117 // ebx: pointer to C function (C callee-saved) 7117 // ebx: pointer to C function (C callee-saved)
7118 // ebp: frame pointer (restored after C call) 7118 // ebp: frame pointer (restored after C call)
7119 // esp: stack pointer (restored after C call) 7119 // esp: stack pointer (restored after C call)
7120 // esi: current context (C callee-saved) 7120 // esi: current context (C callee-saved)
7121 // edi: caller's parameter pointer pp (C callee-saved) 7121 // edi: JS function of the caller (C callee-saved)
7122 7122
7123 // NOTE: Invocations of builtins may return failure objects 7123 // NOTE: Invocations of builtins may return failure objects instead
7124 // instead of a proper result. The builtin entry handles 7124 // of a proper result. The builtin entry handles this by performing
7125 // this by performing a garbage collection and retrying the 7125 // a garbage collection and retrying the builtin (twice).
7126 // builtin once.
7127 7126
7128 StackFrame::Type frame_type = is_debug_break ? 7127 StackFrame::Type frame_type = is_debug_break ?
7129 StackFrame::EXIT_DEBUG : 7128 StackFrame::EXIT_DEBUG :
7130 StackFrame::EXIT; 7129 StackFrame::EXIT;
7131 7130
7132 // Enter the exit frame that transitions from JavaScript to C++. 7131 // Enter the exit frame that transitions from JavaScript to C++.
7133 __ EnterExitFrame(frame_type); 7132 __ EnterExitFrame(frame_type);
7134 7133
7135 // eax: result parameter for PerformGC, if any (setup below) 7134 // eax: result parameter for PerformGC, if any (setup below)
7136 // ebx: pointer to builtin function (C callee-saved) 7135 // ebx: pointer to builtin function (C callee-saved)
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
7333 7332
7334 // Slow-case: Go through the JavaScript implementation. 7333 // Slow-case: Go through the JavaScript implementation.
7335 __ bind(&slow); 7334 __ bind(&slow);
7336 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); 7335 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION);
7337 } 7336 }
7338 7337
7339 7338
7340 #undef __ 7339 #undef __
7341 7340
7342 } } // namespace v8::internal 7341 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/frames-inl.h ('k') | src/ia32/frames-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698