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

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

Issue 596096: Refactoring various pieces of post interceptor caching. (Closed)
Patch Set: Fix incorrect indentation 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
« no previous file with comments | « no previous file | src/arm/macro-assembler-arm.cc » ('j') | src/ia32/macro-assembler-ia32.h » ('J')
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 const ParameterCount& actual, 128 const ParameterCount& actual,
129 RelocInfo::Mode rmode, 129 RelocInfo::Mode rmode,
130 InvokeFlag flag); 130 InvokeFlag flag);
131 131
132 // Invoke the JavaScript function in the given register. Changes the 132 // Invoke the JavaScript function in the given register. Changes the
133 // current context to the context in the function before invoking. 133 // current context to the context in the function before invoking.
134 void InvokeFunction(Register function, 134 void InvokeFunction(Register function,
135 const ParameterCount& actual, 135 const ParameterCount& actual,
136 InvokeFlag flag); 136 InvokeFlag flag);
137 137
138 void InvokeFunction(JSFunction* function,
139 const ParameterCount& actual);
140
138 141
139 #ifdef ENABLE_DEBUGGER_SUPPORT 142 #ifdef ENABLE_DEBUGGER_SUPPORT
140 // --------------------------------------------------------------------------- 143 // ---------------------------------------------------------------------------
141 // Debugger Support 144 // Debugger Support
142 145
143 void SaveRegistersToMemory(RegList regs); 146 void SaveRegistersToMemory(RegList regs);
144 void RestoreRegistersFromMemory(RegList regs); 147 void RestoreRegistersFromMemory(RegList regs);
145 void CopyRegistersFromMemoryToStack(Register base, RegList regs); 148 void CopyRegistersFromMemoryToStack(Register base, RegList regs);
146 void CopyRegistersFromStackToMemory(Register base, 149 void CopyRegistersFromStackToMemory(Register base,
147 Register scratch, 150 Register scratch,
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // Return from a code stub after popping its arguments. 331 // Return from a code stub after popping its arguments.
329 void StubReturn(int argc); 332 void StubReturn(int argc);
330 333
331 // Call a runtime routine. 334 // Call a runtime routine.
332 // Eventually this should be used for all C calls. 335 // Eventually this should be used for all C calls.
333 void CallRuntime(Runtime::Function* f, int num_arguments); 336 void CallRuntime(Runtime::Function* f, int num_arguments);
334 337
335 // Convenience function: Same as above, but takes the fid instead. 338 // Convenience function: Same as above, but takes the fid instead.
336 void CallRuntime(Runtime::FunctionId fid, int num_arguments); 339 void CallRuntime(Runtime::FunctionId fid, int num_arguments);
337 340
341 // Convenience function: call an external reference.
342 void CallExternalReference(const ExternalReference& ext,
343 int num_arguments);
344
338 // Tail call of a runtime routine (jump). 345 // Tail call of a runtime routine (jump).
339 // Like JumpToRuntime, but also takes care of passing the number 346 // Like JumpToRuntime, but also takes care of passing the number
340 // of parameters. 347 // of parameters.
341 void TailCallRuntime(const ExternalReference& ext, 348 void TailCallRuntime(const ExternalReference& ext,
342 int num_arguments, 349 int num_arguments,
343 int result_size); 350 int result_size);
344 351
345 // Jump to a runtime routine. 352 // Jump to a runtime routine.
346 void JumpToRuntime(const ExternalReference& builtin); 353 void JumpToRuntime(const ExternalReference& builtin);
347 354
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 481 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
475 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 482 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
476 #else 483 #else
477 #define ACCESS_MASM(masm) masm-> 484 #define ACCESS_MASM(masm) masm->
478 #endif 485 #endif
479 486
480 487
481 } } // namespace v8::internal 488 } } // namespace v8::internal
482 489
483 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 490 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/macro-assembler-arm.cc » ('j') | src/ia32/macro-assembler-ia32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698