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

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

Issue 343035: Reverting 3159, 3151 and 3150 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month 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/frames-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // --------------------------------------------------------------------------- 71 // ---------------------------------------------------------------------------
72 // Activation frames 72 // Activation frames
73 73
74 void EnterInternalFrame() { EnterFrame(StackFrame::INTERNAL); } 74 void EnterInternalFrame() { EnterFrame(StackFrame::INTERNAL); }
75 void LeaveInternalFrame() { LeaveFrame(StackFrame::INTERNAL); } 75 void LeaveInternalFrame() { LeaveFrame(StackFrame::INTERNAL); }
76 76
77 void EnterConstructFrame() { EnterFrame(StackFrame::CONSTRUCT); } 77 void EnterConstructFrame() { EnterFrame(StackFrame::CONSTRUCT); }
78 void LeaveConstructFrame() { LeaveFrame(StackFrame::CONSTRUCT); } 78 void LeaveConstructFrame() { LeaveFrame(StackFrame::CONSTRUCT); }
79 79
80 // Enter specific kind of exit frame; either in normal or debug mode. 80 // Enter specific kind of exit frame; either EXIT or
81 // Expects the number of arguments in register eax and 81 // EXIT_DEBUG. Expects the number of arguments in register eax and
82 // sets up the number of arguments in register edi and the pointer 82 // sets up the number of arguments in register edi and the pointer
83 // to the first argument in register esi. 83 // to the first argument in register esi.
84 void EnterExitFrame(ExitFrame::Mode mode); 84 void EnterExitFrame(StackFrame::Type type);
85
86 void EnterApiExitFrame(ExitFrame::Mode mode, int stack_space, int argc);
87 85
88 // Leave the current exit frame. Expects the return value in 86 // Leave the current exit frame. Expects the return value in
89 // register eax:edx (untouched) and the pointer to the first 87 // register eax:edx (untouched) and the pointer to the first
90 // argument in register esi. 88 // argument in register esi.
91 void LeaveExitFrame(ExitFrame::Mode mode); 89 void LeaveExitFrame(StackFrame::Type type);
92 90
93 91
94 // --------------------------------------------------------------------------- 92 // ---------------------------------------------------------------------------
95 // JavaScript invokes 93 // JavaScript invokes
96 94
97 // Invoke the JavaScript function code by either calling or jumping. 95 // Invoke the JavaScript function code by either calling or jumping.
98 void InvokeCode(const Operand& code, 96 void InvokeCode(const Operand& code,
99 const ParameterCount& expected, 97 const ParameterCount& expected,
100 const ParameterCount& actual, 98 const ParameterCount& actual,
101 InvokeFlag flag); 99 InvokeFlag flag);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // Convenience function: Same as above, but takes the fid instead. 262 // Convenience function: Same as above, but takes the fid instead.
265 void CallRuntime(Runtime::FunctionId id, int num_arguments); 263 void CallRuntime(Runtime::FunctionId id, int num_arguments);
266 264
267 // Tail call of a runtime routine (jump). 265 // Tail call of a runtime routine (jump).
268 // Like JumpToRuntime, but also takes care of passing the number 266 // Like JumpToRuntime, but also takes care of passing the number
269 // of arguments. 267 // of arguments.
270 void TailCallRuntime(const ExternalReference& ext, 268 void TailCallRuntime(const ExternalReference& ext,
271 int num_arguments, 269 int num_arguments,
272 int result_size); 270 int result_size);
273 271
274 void PushHandleScope(Register scratch);
275 void PopHandleScope(Register scratch);
276
277 // Jump to a runtime routine. 272 // Jump to a runtime routine.
278 void JumpToRuntime(const ExternalReference& ext); 273 void JumpToRuntime(const ExternalReference& ext);
279 274
280 275
281 // --------------------------------------------------------------------------- 276 // ---------------------------------------------------------------------------
282 // Utilities 277 // Utilities
283 278
284 void Ret(); 279 void Ret();
285 280
286 struct Unresolved { 281 struct Unresolved {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // returns the builtin code object for IllegalFunction, and sets the 339 // returns the builtin code object for IllegalFunction, and sets the
345 // output parameter "resolved" to false. Code that uses the return value 340 // output parameter "resolved" to false. Code that uses the return value
346 // should then add the address and the builtin name to the list of fixups 341 // should then add the address and the builtin name to the list of fixups
347 // called unresolved_, which is fixed up by the bootstrapper. 342 // called unresolved_, which is fixed up by the bootstrapper.
348 Handle<Code> ResolveBuiltin(Builtins::JavaScript id, bool* resolved); 343 Handle<Code> ResolveBuiltin(Builtins::JavaScript id, bool* resolved);
349 344
350 // Activation support. 345 // Activation support.
351 void EnterFrame(StackFrame::Type type); 346 void EnterFrame(StackFrame::Type type);
352 void LeaveFrame(StackFrame::Type type); 347 void LeaveFrame(StackFrame::Type type);
353 348
354 void EnterExitFramePrologue(ExitFrame::Mode mode);
355 void EnterExitFrameEpilogue(ExitFrame::Mode mode, int argc);
356
357 // Allocation support helpers. 349 // Allocation support helpers.
358 void LoadAllocationTopHelper(Register result, 350 void LoadAllocationTopHelper(Register result,
359 Register result_end, 351 Register result_end,
360 Register scratch, 352 Register scratch,
361 AllocationFlags flags); 353 AllocationFlags flags);
362 void UpdateAllocationTopHelper(Register result_end, Register scratch); 354 void UpdateAllocationTopHelper(Register result_end, Register scratch);
363 }; 355 };
364 356
365 357
366 // The code patcher is used to patch (typically) small parts of code e.g. for 358 // The code patcher is used to patch (typically) small parts of code e.g. for
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 } \ 411 } \
420 masm-> 412 masm->
421 #else 413 #else
422 #define ACCESS_MASM(masm) masm-> 414 #define ACCESS_MASM(masm) masm->
423 #endif 415 #endif
424 416
425 417
426 } } // namespace v8::internal 418 } } // namespace v8::internal
427 419
428 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 420 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/frames-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698