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

Side by Side Diff: src/x64/code-stubs-x64.cc

Issue 4695003: Removing redundant stubs for API functions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2465 matching lines...) Expand 10 before | Expand all | Expand 10 after
2476 __ xor_(rsi, rsi); // tentatively set context pointer to NULL 2476 __ xor_(rsi, rsi); // tentatively set context pointer to NULL
2477 NearLabel skip; 2477 NearLabel skip;
2478 __ cmpq(rbp, Immediate(0)); 2478 __ cmpq(rbp, Immediate(0));
2479 __ j(equal, &skip); 2479 __ j(equal, &skip);
2480 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 2480 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
2481 __ bind(&skip); 2481 __ bind(&skip);
2482 __ ret(0); 2482 __ ret(0);
2483 } 2483 }
2484 2484
2485 2485
2486 void ApiGetterEntryStub::Generate(MacroAssembler* masm) {
2487 __ PrepareCallApiFunction(kStackSpace);
2488 #ifdef _WIN64
2489 // All the parameters should be set up by a caller.
2490 #else
2491 // Set 1st parameter register with property name.
2492 __ movq(rsi, rdx);
2493 // Second parameter register rdi should be set with pointer to AccessorInfo
2494 // by a caller.
2495 #endif
2496 __ CallApiFunctionAndReturn(fun());
2497 }
2498
2499
2500 void CEntryStub::GenerateCore(MacroAssembler* masm, 2486 void CEntryStub::GenerateCore(MacroAssembler* masm,
2501 Label* throw_normal_exception, 2487 Label* throw_normal_exception,
2502 Label* throw_termination_exception, 2488 Label* throw_termination_exception,
2503 Label* throw_out_of_memory_exception, 2489 Label* throw_out_of_memory_exception,
2504 bool do_gc, 2490 bool do_gc,
2505 bool always_allocate_scope, 2491 bool always_allocate_scope,
2506 int /* alignment_skew */) { 2492 int /* alignment_skew */) {
2507 // rax: result parameter for PerformGC, if any. 2493 // rax: result parameter for PerformGC, if any.
2508 // rbx: pointer to C function (C callee-saved). 2494 // rbx: pointer to C function (C callee-saved).
2509 // rbp: frame pointer (restored after C call). 2495 // rbp: frame pointer (restored after C call).
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
3992 // tagged as a small integer. 3978 // tagged as a small integer.
3993 __ bind(&runtime); 3979 __ bind(&runtime);
3994 __ TailCallRuntime(Runtime::kStringCompare, 2, 1); 3980 __ TailCallRuntime(Runtime::kStringCompare, 2, 1);
3995 } 3981 }
3996 3982
3997 #undef __ 3983 #undef __
3998 3984
3999 } } // namespace v8::internal 3985 } } // namespace v8::internal
4000 3986
4001 #endif // V8_TARGET_ARCH_X64 3987 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698