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

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

Issue 7966038: Record function call targets, use them for inlining. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 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/v8globals.h ('k') | src/x64/lithium-codegen-x64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3243 matching lines...) Expand 10 before | Expand all | Expand 10 after
3254 __ testb(scratch, Immediate(kIsSymbolMask)); 3254 __ testb(scratch, Immediate(kIsSymbolMask));
3255 __ j(zero, label); 3255 __ j(zero, label);
3256 } 3256 }
3257 3257
3258 3258
3259 void StackCheckStub::Generate(MacroAssembler* masm) { 3259 void StackCheckStub::Generate(MacroAssembler* masm) {
3260 __ TailCallRuntime(Runtime::kStackGuard, 0, 1); 3260 __ TailCallRuntime(Runtime::kStackGuard, 0, 1);
3261 } 3261 }
3262 3262
3263 3263
3264 void CallFunctionStub::FinishCode(Code* code) {
3265 code->set_has_function_cache(false);
3266 }
3267
3268
3269 void CallFunctionStub::Clear(Heap* heap, Address address) {
3270 UNREACHABLE();
3271 }
3272
3273
3274 Object* CallFunctionStub::GetCachedValue(Address address) {
3275 UNREACHABLE();
3276 return NULL;
3277 }
3278
3279
3264 void CallFunctionStub::Generate(MacroAssembler* masm) { 3280 void CallFunctionStub::Generate(MacroAssembler* masm) {
3265 Label slow, non_function; 3281 Label slow, non_function;
3266 3282
3267 // The receiver might implicitly be the global object. This is 3283 // The receiver might implicitly be the global object. This is
3268 // indicated by passing the hole as the receiver to the call 3284 // indicated by passing the hole as the receiver to the call
3269 // function stub. 3285 // function stub.
3270 if (ReceiverMightBeImplicit()) { 3286 if (ReceiverMightBeImplicit()) {
3271 Label call; 3287 Label call;
3272 // Get the receiver from the stack. 3288 // Get the receiver from the stack.
3273 // +1 ~ return address 3289 // +1 ~ return address
(...skipping 2545 matching lines...) Expand 10 before | Expand all | Expand 10 after
5819 5835
5820 // Fall through when we need to inform the incremental marker. 5836 // Fall through when we need to inform the incremental marker.
5821 } 5837 }
5822 5838
5823 5839
5824 #undef __ 5840 #undef __
5825 5841
5826 } } // namespace v8::internal 5842 } } // namespace v8::internal
5827 5843
5828 #endif // V8_TARGET_ARCH_X64 5844 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/v8globals.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698