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

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

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing support for %_ToObject in TurboFan and Crankshaft. Created 5 years, 4 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
« no previous file with comments | « src/x87/builtins-x87.cc ('k') | src/x87/interface-descriptors-x87.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after
1793 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); 1793 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION);
1794 Handle<Code> adaptor = isolate->builtins()->ArgumentsAdaptorTrampoline(); 1794 Handle<Code> adaptor = isolate->builtins()->ArgumentsAdaptorTrampoline();
1795 __ jmp(adaptor, RelocInfo::CODE_TARGET); 1795 __ jmp(adaptor, RelocInfo::CODE_TARGET);
1796 } 1796 }
1797 1797
1798 1798
1799 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { 1799 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) {
1800 // Wrap the receiver and patch it back onto the stack. 1800 // Wrap the receiver and patch it back onto the stack.
1801 { FrameScope frame_scope(masm, StackFrame::INTERNAL); 1801 { FrameScope frame_scope(masm, StackFrame::INTERNAL);
1802 __ push(edi); 1802 __ push(edi);
1803 __ push(eax); 1803 ToObjectStub stub(masm->isolate());
1804 __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION); 1804 __ CallStub(&stub);
1805 __ pop(edi); 1805 __ pop(edi);
1806 } 1806 }
1807 __ mov(Operand(esp, (argc + 1) * kPointerSize), eax); 1807 __ mov(Operand(esp, (argc + 1) * kPointerSize), eax);
1808 __ jmp(cont); 1808 __ jmp(cont);
1809 } 1809 }
1810 1810
1811 1811
1812 static void CallFunctionNoFeedback(MacroAssembler* masm, 1812 static void CallFunctionNoFeedback(MacroAssembler* masm,
1813 int argc, bool needs_checks, 1813 int argc, bool needs_checks,
1814 bool call_as_method) { 1814 bool call_as_method) {
(...skipping 3519 matching lines...) Expand 10 before | Expand all | Expand 10 after
5334 Operand(ebp, 7 * kPointerSize), NULL); 5334 Operand(ebp, 7 * kPointerSize), NULL);
5335 } 5335 }
5336 5336
5337 5337
5338 #undef __ 5338 #undef __
5339 5339
5340 } // namespace internal 5340 } // namespace internal
5341 } // namespace v8 5341 } // namespace v8
5342 5342
5343 #endif // V8_TARGET_ARCH_X87 5343 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/builtins-x87.cc ('k') | src/x87/interface-descriptors-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698