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

Side by Side Diff: src/mips/builtins-mips.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/ia32/builtins-ia32.cc ('k') | src/mips64/builtins-mips64.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 __ bind(&loop_check); 915 __ bind(&loop_check);
916 __ Subu(t0, t0, Operand(kPointerSize)); 916 __ Subu(t0, t0, Operand(kPointerSize));
917 __ Branch(&loop_header, ge, t0, Operand(zero_reg)); 917 __ Branch(&loop_header, ge, t0, Operand(zero_reg));
918 } 918 }
919 919
920 // TODO(rmcilroy): List of things not currently dealt with here but done in 920 // TODO(rmcilroy): List of things not currently dealt with here but done in
921 // fullcodegen's prologue: 921 // fullcodegen's prologue:
922 // - Support profiler (specifically profiling_counter). 922 // - Support profiler (specifically profiling_counter).
923 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. 923 // - Call ProfileEntryHookStub when isolate has a function_entry_hook.
924 // - Allow simulator stop operations if FLAG_stop_at is set. 924 // - Allow simulator stop operations if FLAG_stop_at is set.
925 // - Deal with sloppy mode functions which need to replace the
926 // receiver with the global proxy when called as functions (without an
927 // explicit receiver object).
928 // - Code aging of the BytecodeArray object. 925 // - Code aging of the BytecodeArray object.
929 926
930 // Perform stack guard check. 927 // Perform stack guard check.
931 { 928 {
932 Label ok; 929 Label ok;
933 __ LoadRoot(at, Heap::kStackLimitRootIndex); 930 __ LoadRoot(at, Heap::kStackLimitRootIndex);
934 __ Branch(&ok, hs, sp, Operand(at)); 931 __ Branch(&ok, hs, sp, Operand(at));
935 __ push(kInterpreterBytecodeArrayRegister); 932 __ push(kInterpreterBytecodeArrayRegister);
936 __ CallRuntime(Runtime::kStackGuard, 0); 933 __ CallRuntime(Runtime::kStackGuard, 0);
937 __ pop(kInterpreterBytecodeArrayRegister); 934 __ pop(kInterpreterBytecodeArrayRegister);
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1959 } 1956 }
1960 } 1957 }
1961 1958
1962 1959
1963 #undef __ 1960 #undef __
1964 1961
1965 } // namespace internal 1962 } // namespace internal
1966 } // namespace v8 1963 } // namespace v8
1967 1964
1968 #endif // V8_TARGET_ARCH_MIPS 1965 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698