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

Side by Side Diff: src/arm/code-stubs-arm.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 | « no previous file | src/compiler.h » ('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 4704 matching lines...) Expand 10 before | Expand all | Expand 10 after
4715 CALL_AS_FUNCTION); 4715 CALL_AS_FUNCTION);
4716 4716
4717 // Slow-case: Non-function called. 4717 // Slow-case: Non-function called.
4718 __ bind(&slow); 4718 __ bind(&slow);
4719 // CALL_NON_FUNCTION expects the non-function callee as receiver (instead 4719 // CALL_NON_FUNCTION expects the non-function callee as receiver (instead
4720 // of the original receiver from the call site). 4720 // of the original receiver from the call site).
4721 __ str(r1, MemOperand(sp, argc_ * kPointerSize)); 4721 __ str(r1, MemOperand(sp, argc_ * kPointerSize));
4722 __ mov(r0, Operand(argc_)); // Setup the number of arguments. 4722 __ mov(r0, Operand(argc_)); // Setup the number of arguments.
4723 __ mov(r2, Operand(0, RelocInfo::NONE)); 4723 __ mov(r2, Operand(0, RelocInfo::NONE));
4724 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION); 4724 __ GetBuiltinEntry(r3, Builtins::CALL_NON_FUNCTION);
4725 __ SetCallKind(r5, CALL_AS_METHOD);
4725 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), 4726 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(),
4726 RelocInfo::CODE_TARGET); 4727 RelocInfo::CODE_TARGET);
4727 } 4728 }
4728 4729
4729 4730
4730 // Unfortunately you have to run without snapshots to see most of these 4731 // Unfortunately you have to run without snapshots to see most of these
4731 // names in the profile since most compare stubs end up in the snapshot. 4732 // names in the profile since most compare stubs end up in the snapshot.
4732 void CompareStub::PrintName(StringStream* stream) { 4733 void CompareStub::PrintName(StringStream* stream) {
4733 ASSERT((lhs_.is(r0) && rhs_.is(r1)) || 4734 ASSERT((lhs_.is(r0) && rhs_.is(r1)) ||
4734 (lhs_.is(r1) && rhs_.is(r0))); 4735 (lhs_.is(r1) && rhs_.is(r0)));
(...skipping 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after
6534 __ mov(result, Operand(0)); 6535 __ mov(result, Operand(0));
6535 __ Ret(); 6536 __ Ret();
6536 } 6537 }
6537 6538
6538 6539
6539 #undef __ 6540 #undef __
6540 6541
6541 } } // namespace v8::internal 6542 } } // namespace v8::internal
6542 6543
6543 #endif // V8_TARGET_ARCH_ARM 6544 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698