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

Side by Side Diff: src/ia32/builtins-ia32.cc

Issue 1480003002: [runtime] Replace global object link with native context link in all contexts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add patch from Orion for interpreter cementation test. Disable obsolete/invalid tests. Created 5 years 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/gdb-jit.cc ('k') | src/ia32/code-stubs-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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1914 CompatibleReceiverCheck(masm, ecx, ebx, edx, eax, &receiver_check_failed); 1914 CompatibleReceiverCheck(masm, ecx, ebx, edx, eax, &receiver_check_failed);
1915 __ Pop(eax); 1915 __ Pop(eax);
1916 // Get the callback offset from the FunctionTemplateInfo, and jump to the 1916 // Get the callback offset from the FunctionTemplateInfo, and jump to the
1917 // beginning of the code. 1917 // beginning of the code.
1918 __ mov(edx, FieldOperand(ebx, FunctionTemplateInfo::kCallCodeOffset)); 1918 __ mov(edx, FieldOperand(ebx, FunctionTemplateInfo::kCallCodeOffset));
1919 __ mov(edx, FieldOperand(edx, CallHandlerInfo::kFastHandlerOffset)); 1919 __ mov(edx, FieldOperand(edx, CallHandlerInfo::kFastHandlerOffset));
1920 __ add(edx, Immediate(Code::kHeaderSize - kHeapObjectTag)); 1920 __ add(edx, Immediate(Code::kHeaderSize - kHeapObjectTag));
1921 __ jmp(edx); 1921 __ jmp(edx);
1922 1922
1923 __ bind(&set_global_proxy); 1923 __ bind(&set_global_proxy);
1924 __ mov(ecx, GlobalObjectOperand()); 1924 __ mov(ecx, NativeContextOperand());
1925 __ mov(ecx, FieldOperand(ecx, JSGlobalObject::kGlobalProxyOffset)); 1925 __ mov(ecx, ContextOperand(ecx, Context::GLOBAL_PROXY_INDEX));
1926 __ mov(receiver_operand, ecx); 1926 __ mov(receiver_operand, ecx);
1927 __ jmp(&valid_receiver, Label::kNear); 1927 __ jmp(&valid_receiver, Label::kNear);
1928 1928
1929 // Compatible receiver check failed: pop return address, arguments and 1929 // Compatible receiver check failed: pop return address, arguments and
1930 // receiver and throw an Illegal Invocation exception. 1930 // receiver and throw an Illegal Invocation exception.
1931 __ bind(&receiver_check_failed); 1931 __ bind(&receiver_check_failed);
1932 __ Pop(eax); 1932 __ Pop(eax);
1933 __ PopReturnAddressTo(ebx); 1933 __ PopReturnAddressTo(ebx);
1934 __ lea(eax, Operand(eax, times_pointer_size, 1 * kPointerSize)); 1934 __ lea(eax, Operand(eax, times_pointer_size, 1 * kPointerSize));
1935 __ add(esp, eax); 1935 __ add(esp, eax);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1994 1994
1995 __ bind(&ok); 1995 __ bind(&ok);
1996 __ ret(0); 1996 __ ret(0);
1997 } 1997 }
1998 1998
1999 #undef __ 1999 #undef __
2000 } // namespace internal 2000 } // namespace internal
2001 } // namespace v8 2001 } // namespace v8
2002 2002
2003 #endif // V8_TARGET_ARCH_IA32 2003 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/gdb-jit.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698