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

Side by Side Diff: src/ia32/code-stubs-ia32.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/ia32/builtins-ia32.cc ('k') | src/ia32/interface-descriptors-ia32.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_IA32 7 #if V8_TARGET_ARCH_IA32
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 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after
2086 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); 2086 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION);
2087 Handle<Code> adaptor = isolate->builtins()->ArgumentsAdaptorTrampoline(); 2087 Handle<Code> adaptor = isolate->builtins()->ArgumentsAdaptorTrampoline();
2088 __ jmp(adaptor, RelocInfo::CODE_TARGET); 2088 __ jmp(adaptor, RelocInfo::CODE_TARGET);
2089 } 2089 }
2090 2090
2091 2091
2092 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { 2092 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) {
2093 // Wrap the receiver and patch it back onto the stack. 2093 // Wrap the receiver and patch it back onto the stack.
2094 { FrameScope frame_scope(masm, StackFrame::INTERNAL); 2094 { FrameScope frame_scope(masm, StackFrame::INTERNAL);
2095 __ push(edi); 2095 __ push(edi);
2096 __ push(eax); 2096 ToObjectStub stub(masm->isolate());
2097 __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION); 2097 __ CallStub(&stub);
2098 __ pop(edi); 2098 __ pop(edi);
2099 } 2099 }
2100 __ mov(Operand(esp, (argc + 1) * kPointerSize), eax); 2100 __ mov(Operand(esp, (argc + 1) * kPointerSize), eax);
2101 __ jmp(cont); 2101 __ jmp(cont);
2102 } 2102 }
2103 2103
2104 2104
2105 static void CallFunctionNoFeedback(MacroAssembler* masm, 2105 static void CallFunctionNoFeedback(MacroAssembler* masm,
2106 int argc, bool needs_checks, 2106 int argc, bool needs_checks,
2107 bool call_as_method) { 2107 bool call_as_method) {
(...skipping 3546 matching lines...) Expand 10 before | Expand all | Expand 10 after
5654 Operand(ebp, 7 * kPointerSize), NULL); 5654 Operand(ebp, 7 * kPointerSize), NULL);
5655 } 5655 }
5656 5656
5657 5657
5658 #undef __ 5658 #undef __
5659 5659
5660 } // namespace internal 5660 } // namespace internal
5661 } // namespace v8 5661 } // namespace v8
5662 5662
5663 #endif // V8_TARGET_ARCH_IA32 5663 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698