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

Side by Side Diff: src/mips64/full-codegen-mips64.cc

Issue 595863002: Adding more missing deoptimization points in Turbofan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/x64/full-codegen-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 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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 2813 matching lines...) Expand 10 before | Expand all | Expand 10 after
2824 // Push a copy of the function (found below the arguments) and 2824 // Push a copy of the function (found below the arguments) and
2825 // resolve eval. 2825 // resolve eval.
2826 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); 2826 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize));
2827 __ push(a1); 2827 __ push(a1);
2828 EmitResolvePossiblyDirectEval(arg_count); 2828 EmitResolvePossiblyDirectEval(arg_count);
2829 2829
2830 // The runtime call returns a pair of values in v0 (function) and 2830 // The runtime call returns a pair of values in v0 (function) and
2831 // v1 (receiver). Touch up the stack with the right values. 2831 // v1 (receiver). Touch up the stack with the right values.
2832 __ sd(v0, MemOperand(sp, (arg_count + 1) * kPointerSize)); 2832 __ sd(v0, MemOperand(sp, (arg_count + 1) * kPointerSize));
2833 __ sd(v1, MemOperand(sp, arg_count * kPointerSize)); 2833 __ sd(v1, MemOperand(sp, arg_count * kPointerSize));
2834
2835 PrepareForBailoutForId(expr->EvalOrLookupId(), NO_REGISTERS);
2834 } 2836 }
2835 // Record source position for debugger. 2837 // Record source position for debugger.
2836 SetSourcePosition(expr->position()); 2838 SetSourcePosition(expr->position());
2837 CallFunctionStub stub(isolate(), arg_count, NO_CALL_FUNCTION_FLAGS); 2839 CallFunctionStub stub(isolate(), arg_count, NO_CALL_FUNCTION_FLAGS);
2838 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); 2840 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize));
2839 __ CallStub(&stub); 2841 __ CallStub(&stub);
2840 RecordJSReturnSite(expr); 2842 RecordJSReturnSite(expr);
2841 // Restore context register. 2843 // Restore context register.
2842 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 2844 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2843 context()->DropAndPlug(1, v0); 2845 context()->DropAndPlug(1, v0);
(...skipping 11 matching lines...) Expand all
2855 } 2857 }
2856 2858
2857 __ bind(&slow); 2859 __ bind(&slow);
2858 // Call the runtime to find the function to call (returned in v0) 2860 // Call the runtime to find the function to call (returned in v0)
2859 // and the object holding it (returned in v1). 2861 // and the object holding it (returned in v1).
2860 DCHECK(!context_register().is(a2)); 2862 DCHECK(!context_register().is(a2));
2861 __ li(a2, Operand(proxy->name())); 2863 __ li(a2, Operand(proxy->name()));
2862 __ Push(context_register(), a2); 2864 __ Push(context_register(), a2);
2863 __ CallRuntime(Runtime::kLoadLookupSlot, 2); 2865 __ CallRuntime(Runtime::kLoadLookupSlot, 2);
2864 __ Push(v0, v1); // Function, receiver. 2866 __ Push(v0, v1); // Function, receiver.
2867 PrepareForBailoutForId(expr->EvalOrLookupId(), NO_REGISTERS);
2865 2868
2866 // If fast case code has been generated, emit code to push the 2869 // If fast case code has been generated, emit code to push the
2867 // function and receiver and have the slow path jump around this 2870 // function and receiver and have the slow path jump around this
2868 // code. 2871 // code.
2869 if (done.is_linked()) { 2872 if (done.is_linked()) {
2870 Label call; 2873 Label call;
2871 __ Branch(&call); 2874 __ Branch(&call);
2872 __ bind(&done); 2875 __ bind(&done);
2873 // Push function. 2876 // Push function.
2874 __ push(v0); 2877 __ push(v0);
(...skipping 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after
4961 Assembler::target_address_at(pc_immediate_load_address)) == 4964 Assembler::target_address_at(pc_immediate_load_address)) ==
4962 reinterpret_cast<uint64_t>( 4965 reinterpret_cast<uint64_t>(
4963 isolate->builtins()->OsrAfterStackCheck()->entry())); 4966 isolate->builtins()->OsrAfterStackCheck()->entry()));
4964 return OSR_AFTER_STACK_CHECK; 4967 return OSR_AFTER_STACK_CHECK;
4965 } 4968 }
4966 4969
4967 4970
4968 } } // namespace v8::internal 4971 } } // namespace v8::internal
4969 4972
4970 #endif // V8_TARGET_ARCH_MIPS64 4973 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698