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

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

Issue 652118: Refactored TailCallRuntime (splitted to TailCallRuntime and TailCallExternalReference) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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/arm/ic-arm.cc ('k') | src/arm/macro-assembler-arm.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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // Call a code stub. 326 // Call a code stub.
327 void CallStub(CodeStub* stub, Condition cond = al); 327 void CallStub(CodeStub* stub, Condition cond = al);
328 328
329 // Call a code stub. 329 // Call a code stub.
330 void TailCallStub(CodeStub* stub, Condition cond = al); 330 void TailCallStub(CodeStub* stub, Condition cond = al);
331 331
332 // Return from a code stub after popping its arguments. 332 // Return from a code stub after popping its arguments.
333 void StubReturn(int argc); 333 void StubReturn(int argc);
334 334
335 // Call a runtime routine. 335 // Call a runtime routine.
336 // Eventually this should be used for all C calls.
337 void CallRuntime(Runtime::Function* f, int num_arguments); 336 void CallRuntime(Runtime::Function* f, int num_arguments);
338 337
339 // Convenience function: Same as above, but takes the fid instead. 338 // Convenience function: Same as above, but takes the fid instead.
340 void CallRuntime(Runtime::FunctionId fid, int num_arguments); 339 void CallRuntime(Runtime::FunctionId fid, int num_arguments);
341 340
342 // Convenience function: call an external reference. 341 // Convenience function: call an external reference.
343 void CallExternalReference(const ExternalReference& ext, 342 void CallExternalReference(const ExternalReference& ext,
344 int num_arguments); 343 int num_arguments);
345 344
346 // Tail call of a runtime routine (jump). 345 // Tail call of a runtime routine (jump).
347 // Like JumpToRuntime, but also takes care of passing the number 346 // Like JumpToExternalReference, but also takes care of passing the number
348 // of parameters. 347 // of parameters.
349 void TailCallRuntime(const ExternalReference& ext, 348 void TailCallExternalReference(const ExternalReference& ext,
349 int num_arguments,
350 int result_size);
351
352 // Convenience function: tail call a runtime routine (jump).
353 void TailCallRuntime(Runtime::FunctionId fid,
350 int num_arguments, 354 int num_arguments,
351 int result_size); 355 int result_size);
352 356
353 // Jump to a runtime routine. 357 // Jump to a runtime routine.
354 void JumpToRuntime(const ExternalReference& builtin); 358 void JumpToExternalReference(const ExternalReference& builtin);
355 359
356 // Invoke specified builtin JavaScript function. Adds an entry to 360 // Invoke specified builtin JavaScript function. Adds an entry to
357 // the unresolved list if the name does not resolve. 361 // the unresolved list if the name does not resolve.
358 void InvokeBuiltin(Builtins::JavaScript id, InvokeJSFlags flags); 362 void InvokeBuiltin(Builtins::JavaScript id, InvokeJSFlags flags);
359 363
360 // Store the code object for the given builtin in the target register and 364 // Store the code object for the given builtin in the target register and
361 // setup the function in r1. 365 // setup the function in r1.
362 void GetBuiltinEntry(Register target, Builtins::JavaScript id); 366 void GetBuiltinEntry(Register target, Builtins::JavaScript id);
363 367
364 Handle<Object> CodeObject() { return code_object_; } 368 Handle<Object> CodeObject() { return code_object_; }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 486 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
483 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 487 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
484 #else 488 #else
485 #define ACCESS_MASM(masm) masm-> 489 #define ACCESS_MASM(masm) masm->
486 #endif 490 #endif
487 491
488 492
489 } } // namespace v8::internal 493 } } // namespace v8::internal
490 494
491 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 495 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698