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

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

Issue 1410113008: [Interpreter] Add test for sloppy mode receiver replacement. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase to include Toon's sloppy receiver change Created 5 years, 1 month 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/mips64/builtins-mips64.cc ('k') | src/x64/builtins-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 __ push(r6); 918 __ push(r6);
919 __ bdnz(&loop); 919 __ bdnz(&loop);
920 __ bind(&no_args); 920 __ bind(&no_args);
921 } 921 }
922 922
923 // TODO(rmcilroy): List of things not currently dealt with here but done in 923 // TODO(rmcilroy): List of things not currently dealt with here but done in
924 // fullcodegen's prologue: 924 // fullcodegen's prologue:
925 // - Support profiler (specifically profiling_counter). 925 // - Support profiler (specifically profiling_counter).
926 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. 926 // - Call ProfileEntryHookStub when isolate has a function_entry_hook.
927 // - Allow simulator stop operations if FLAG_stop_at is set. 927 // - Allow simulator stop operations if FLAG_stop_at is set.
928 // - Deal with sloppy mode functions which need to replace the
929 // receiver with the global proxy when called as functions (without an
930 // explicit receiver object).
931 // - Code aging of the BytecodeArray object. 928 // - Code aging of the BytecodeArray object.
932 929
933 // Perform stack guard check. 930 // Perform stack guard check.
934 { 931 {
935 Label ok; 932 Label ok;
936 __ LoadRoot(r0, Heap::kStackLimitRootIndex); 933 __ LoadRoot(r0, Heap::kStackLimitRootIndex);
937 __ cmp(sp, r0); 934 __ cmp(sp, r0);
938 __ bge(&ok); 935 __ bge(&ok);
939 __ push(kInterpreterBytecodeArrayRegister); 936 __ push(kInterpreterBytecodeArrayRegister);
940 __ CallRuntime(Runtime::kStackGuard, 0); 937 __ CallRuntime(Runtime::kStackGuard, 0);
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 __ bkpt(0); 1964 __ bkpt(0);
1968 } 1965 }
1969 } 1966 }
1970 1967
1971 1968
1972 #undef __ 1969 #undef __
1973 } // namespace internal 1970 } // namespace internal
1974 } // namespace v8 1971 } // namespace v8
1975 1972
1976 #endif // V8_TARGET_ARCH_PPC 1973 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698