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/full-codegen-mips.cc

Issue 7840026: Merge r9160 to the 3.5 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.5
Patch Set: Created 9 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 | « src/ia32/full-codegen-ia32.cc ('k') | src/version.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 4204 matching lines...) Expand 10 before | Expand all | Expand 10 after
4215 __ pop(result_register()); 4215 __ pop(result_register());
4216 ASSERT_EQ(1, kSmiTagSize + kSmiShiftSize); 4216 ASSERT_EQ(1, kSmiTagSize + kSmiShiftSize);
4217 __ sra(a1, a1, 1); // Un-smi-tag value. 4217 __ sra(a1, a1, 1); // Un-smi-tag value.
4218 __ Addu(at, a1, Operand(masm_->CodeObject())); 4218 __ Addu(at, a1, Operand(masm_->CodeObject()));
4219 __ Jump(at); 4219 __ Jump(at);
4220 } 4220 }
4221 4221
4222 4222
4223 #undef __ 4223 #undef __
4224 4224
4225 #define __ ACCESS_MASM(masm())
4226
4227 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit(
4228 int* stack_depth,
4229 int* context_length) {
4230 // The macros used here must preserve the result register.
4231
4232 // Because the handler block contains the context of the finally
4233 // code, we can restore it directly from there for the finally code
4234 // rather than iteratively unwinding contexts via their previous
4235 // links.
4236 __ Drop(*stack_depth); // Down to the handler block.
4237 if (*context_length > 0) {
4238 // Restore the context to its dedicated register and the stack.
4239 __ lw(cp, MemOperand(sp, StackHandlerConstants::kContextOffset));
4240 __ sw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
4241 }
4242 __ PopTryHandler();
4243 __ Call(finally_entry_);
4244
4245 *stack_depth = 0;
4246 *context_length = 0;
4247 return previous_;
4248 }
4249
4250
4251 #undef __
4252
4225 } } // namespace v8::internal 4253 } } // namespace v8::internal
4226 4254
4227 #endif // V8_TARGET_ARCH_MIPS 4255 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698