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

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

Issue 7395030: Correctly mark functions from our natives files during compilation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/runtime.cc ('k') | test/mjsunit/regress/regress-798.js » ('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 3180 matching lines...) Expand 10 before | Expand all | Expand 10 after
3191 // Slow-case: Non-function called. 3191 // Slow-case: Non-function called.
3192 __ bind(&slow); 3192 __ bind(&slow);
3193 // CALL_NON_FUNCTION expects the non-function callee as receiver (instead 3193 // CALL_NON_FUNCTION expects the non-function callee as receiver (instead
3194 // of the original receiver from the call site). 3194 // of the original receiver from the call site).
3195 __ movq(Operand(rsp, (argc_ + 1) * kPointerSize), rdi); 3195 __ movq(Operand(rsp, (argc_ + 1) * kPointerSize), rdi);
3196 __ Set(rax, argc_); 3196 __ Set(rax, argc_);
3197 __ Set(rbx, 0); 3197 __ Set(rbx, 0);
3198 __ GetBuiltinEntry(rdx, Builtins::CALL_NON_FUNCTION); 3198 __ GetBuiltinEntry(rdx, Builtins::CALL_NON_FUNCTION);
3199 Handle<Code> adaptor = 3199 Handle<Code> adaptor =
3200 Isolate::Current()->builtins()->ArgumentsAdaptorTrampoline(); 3200 Isolate::Current()->builtins()->ArgumentsAdaptorTrampoline();
3201 __ SetCallKind(rcx, CALL_AS_METHOD);
3201 __ Jump(adaptor, RelocInfo::CODE_TARGET); 3202 __ Jump(adaptor, RelocInfo::CODE_TARGET);
3202 } 3203 }
3203 3204
3204 3205
3205 bool CEntryStub::NeedsImmovableCode() { 3206 bool CEntryStub::NeedsImmovableCode() {
3206 return false; 3207 return false;
3207 } 3208 }
3208 3209
3209 3210
3210 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) { 3211 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) {
(...skipping 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after
5281 __ Drop(1); 5282 __ Drop(1);
5282 __ ret(2 * kPointerSize); 5283 __ ret(2 * kPointerSize);
5283 } 5284 }
5284 5285
5285 5286
5286 #undef __ 5287 #undef __
5287 5288
5288 } } // namespace v8::internal 5289 } } // namespace v8::internal
5289 5290
5290 #endif // V8_TARGET_ARCH_X64 5291 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | test/mjsunit/regress/regress-798.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698