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

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

Issue 14695004: MIPS: Fix mjsunit/harmony/generators-iteration test failure. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after
2050 __ bind(&slow_resume); 2050 __ bind(&slow_resume);
2051 } 2051 }
2052 2052
2053 // Otherwise, we push holes for the operand stack and call the runtime to fix 2053 // Otherwise, we push holes for the operand stack and call the runtime to fix
2054 // up the stack and the handlers. 2054 // up the stack and the handlers.
2055 Label push_operand_holes, call_resume; 2055 Label push_operand_holes, call_resume;
2056 __ bind(&push_operand_holes); 2056 __ bind(&push_operand_holes);
2057 __ Subu(a3, a3, Operand(1)); 2057 __ Subu(a3, a3, Operand(1));
2058 __ Branch(&call_resume, lt, a3, Operand(zero_reg)); 2058 __ Branch(&call_resume, lt, a3, Operand(zero_reg));
2059 __ push(a2); 2059 __ push(a2);
2060 __ b(&push_operand_holes); 2060 __ Branch(&push_operand_holes);
2061 __ bind(&call_resume); 2061 __ bind(&call_resume);
2062 __ push(a1); 2062 __ push(a1);
2063 __ push(result_register()); 2063 __ push(result_register());
2064 __ Push(Smi::FromInt(resume_mode)); 2064 __ Push(Smi::FromInt(resume_mode));
2065 __ CallRuntime(Runtime::kResumeJSGeneratorObject, 3); 2065 __ CallRuntime(Runtime::kResumeJSGeneratorObject, 3);
2066 // Not reached: the runtime call returns elsewhere. 2066 // Not reached: the runtime call returns elsewhere.
2067 __ stop("not-reached"); 2067 __ stop("not-reached");
2068 2068
2069 // Throw error if we attempt to operate on a running generator. 2069 // Throw error if we attempt to operate on a running generator.
2070 __ bind(&wrong_state); 2070 __ bind(&wrong_state);
(...skipping 2644 matching lines...) Expand 10 before | Expand all | Expand 10 after
4715 *context_length = 0; 4715 *context_length = 0;
4716 return previous_; 4716 return previous_;
4717 } 4717 }
4718 4718
4719 4719
4720 #undef __ 4720 #undef __
4721 4721
4722 } } // namespace v8::internal 4722 } } // namespace v8::internal
4723 4723
4724 #endif // V8_TARGET_ARCH_MIPS 4724 #endif // V8_TARGET_ARCH_MIPS
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