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

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

Issue 531743002: MIPS64: Unbreak build after r23579. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | 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 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after
1956 } 1956 }
1957 1957
1958 1958
1959 void FullCodeGenerator::VisitYield(Yield* expr) { 1959 void FullCodeGenerator::VisitYield(Yield* expr) {
1960 Comment cmnt(masm_, "[ Yield"); 1960 Comment cmnt(masm_, "[ Yield");
1961 // Evaluate yielded value first; the initial iterator definition depends on 1961 // Evaluate yielded value first; the initial iterator definition depends on
1962 // this. It stays on the stack while we update the iterator. 1962 // this. It stays on the stack while we update the iterator.
1963 VisitForStackValue(expr->expression()); 1963 VisitForStackValue(expr->expression());
1964 1964
1965 switch (expr->yield_kind()) { 1965 switch (expr->yield_kind()) {
1966 case Yield::SUSPEND: 1966 case Yield::kSuspend:
1967 // Pop value from top-of-stack slot; box result into result register. 1967 // Pop value from top-of-stack slot; box result into result register.
1968 EmitCreateIteratorResult(false); 1968 EmitCreateIteratorResult(false);
1969 __ push(result_register()); 1969 __ push(result_register());
1970 // Fall through. 1970 // Fall through.
1971 case Yield::INITIAL: { 1971 case Yield::kInitial: {
1972 Label suspend, continuation, post_runtime, resume; 1972 Label suspend, continuation, post_runtime, resume;
1973 1973
1974 __ jmp(&suspend); 1974 __ jmp(&suspend);
1975 1975
1976 __ bind(&continuation); 1976 __ bind(&continuation);
1977 __ jmp(&resume); 1977 __ jmp(&resume);
1978 1978
1979 __ bind(&suspend); 1979 __ bind(&suspend);
1980 VisitForAccumulatorValue(expr->generator_object()); 1980 VisitForAccumulatorValue(expr->generator_object());
1981 DCHECK(continuation.pos() > 0 && Smi::IsValid(continuation.pos())); 1981 DCHECK(continuation.pos() > 0 && Smi::IsValid(continuation.pos()));
(...skipping 10 matching lines...) Expand all
1992 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 1992 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
1993 __ bind(&post_runtime); 1993 __ bind(&post_runtime);
1994 __ pop(result_register()); 1994 __ pop(result_register());
1995 EmitReturnSequence(); 1995 EmitReturnSequence();
1996 1996
1997 __ bind(&resume); 1997 __ bind(&resume);
1998 context()->Plug(result_register()); 1998 context()->Plug(result_register());
1999 break; 1999 break;
2000 } 2000 }
2001 2001
2002 case Yield::FINAL: { 2002 case Yield::kFinal: {
2003 VisitForAccumulatorValue(expr->generator_object()); 2003 VisitForAccumulatorValue(expr->generator_object());
2004 __ li(a1, Operand(Smi::FromInt(JSGeneratorObject::kGeneratorClosed))); 2004 __ li(a1, Operand(Smi::FromInt(JSGeneratorObject::kGeneratorClosed)));
2005 __ sd(a1, FieldMemOperand(result_register(), 2005 __ sd(a1, FieldMemOperand(result_register(),
2006 JSGeneratorObject::kContinuationOffset)); 2006 JSGeneratorObject::kContinuationOffset));
2007 // Pop value from top-of-stack slot, box result into result register. 2007 // Pop value from top-of-stack slot, box result into result register.
2008 EmitCreateIteratorResult(true); 2008 EmitCreateIteratorResult(true);
2009 EmitUnwindBeforeReturn(); 2009 EmitUnwindBeforeReturn();
2010 EmitReturnSequence(); 2010 EmitReturnSequence();
2011 break; 2011 break;
2012 } 2012 }
2013 2013
2014 case Yield::DELEGATING: { 2014 case Yield::kDelegating: {
2015 VisitForStackValue(expr->generator_object()); 2015 VisitForStackValue(expr->generator_object());
2016 2016
2017 // Initial stack layout is as follows: 2017 // Initial stack layout is as follows:
2018 // [sp + 1 * kPointerSize] iter 2018 // [sp + 1 * kPointerSize] iter
2019 // [sp + 0 * kPointerSize] g 2019 // [sp + 0 * kPointerSize] g
2020 2020
2021 Label l_catch, l_try, l_suspend, l_continuation, l_resume; 2021 Label l_catch, l_try, l_suspend, l_continuation, l_resume;
2022 Label l_next, l_call; 2022 Label l_next, l_call;
2023 Register load_receiver = LoadConvention::ReceiverRegister(); 2023 Register load_receiver = LoadConvention::ReceiverRegister();
2024 Register load_name = LoadConvention::NameRegister(); 2024 Register load_name = LoadConvention::NameRegister();
(...skipping 2858 matching lines...) Expand 10 before | Expand all | Expand 10 after
4883 Assembler::target_address_at(pc_immediate_load_address)) == 4883 Assembler::target_address_at(pc_immediate_load_address)) ==
4884 reinterpret_cast<uint64_t>( 4884 reinterpret_cast<uint64_t>(
4885 isolate->builtins()->OsrAfterStackCheck()->entry())); 4885 isolate->builtins()->OsrAfterStackCheck()->entry()));
4886 return OSR_AFTER_STACK_CHECK; 4886 return OSR_AFTER_STACK_CHECK;
4887 } 4887 }
4888 4888
4889 4889
4890 } } // namespace v8::internal 4890 } } // namespace v8::internal
4891 4891
4892 #endif // V8_TARGET_ARCH_MIPS64 4892 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698