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

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

Issue 1711863002: [es6] Fixed POSSIBLY_EVAL_CALL tail calls handling in Full codegen. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
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 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 2831 matching lines...) Expand 10 before | Expand all | Expand 10 after
2842 EmitResolvePossiblyDirectEval(arg_count); 2842 EmitResolvePossiblyDirectEval(arg_count);
2843 2843
2844 // Touch up the stack with the resolved function. 2844 // Touch up the stack with the resolved function.
2845 __ sw(v0, MemOperand(sp, (arg_count + 1) * kPointerSize)); 2845 __ sw(v0, MemOperand(sp, (arg_count + 1) * kPointerSize));
2846 2846
2847 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS); 2847 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS);
2848 // Record source position for debugger. 2848 // Record source position for debugger.
2849 SetCallPosition(expr); 2849 SetCallPosition(expr);
2850 __ lw(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); 2850 __ lw(a1, MemOperand(sp, (arg_count + 1) * kPointerSize));
2851 __ li(a0, Operand(arg_count)); 2851 __ li(a0, Operand(arg_count));
2852 __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); 2852 __ Call(isolate()->builtins()->Call(ConvertReceiverMode::kAny,
2853 expr->tail_call_mode()),
2854 RelocInfo::CODE_TARGET);
2853 RecordJSReturnSite(expr); 2855 RecordJSReturnSite(expr);
2854 // Restore context register. 2856 // Restore context register.
2855 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 2857 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2856 context()->DropAndPlug(1, v0); 2858 context()->DropAndPlug(1, v0);
2857 } 2859 }
2858 2860
2859 2861
2860 void FullCodeGenerator::VisitCallNew(CallNew* expr) { 2862 void FullCodeGenerator::VisitCallNew(CallNew* expr) {
2861 Comment cmnt(masm_, "[ CallNew"); 2863 Comment cmnt(masm_, "[ CallNew");
2862 // According to ECMA-262, section 11.2.2, page 44, the function 2864 // According to ECMA-262, section 11.2.2, page 44, the function
(...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after
4498 reinterpret_cast<uint32_t>( 4500 reinterpret_cast<uint32_t>(
4499 isolate->builtins()->OsrAfterStackCheck()->entry())); 4501 isolate->builtins()->OsrAfterStackCheck()->entry()));
4500 return OSR_AFTER_STACK_CHECK; 4502 return OSR_AFTER_STACK_CHECK;
4501 } 4503 }
4502 4504
4503 4505
4504 } // namespace internal 4506 } // namespace internal
4505 } // namespace v8 4507 } // namespace v8
4506 4508
4507 #endif // V8_TARGET_ARCH_MIPS 4509 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698