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

Side by Side Diff: src/arm/full-codegen-arm.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 | « no previous file | src/full-codegen.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 4251 matching lines...) Expand 10 before | Expand all | Expand 10 after
4262 // Uncook return address and return. 4262 // Uncook return address and return.
4263 __ pop(result_register()); 4263 __ pop(result_register());
4264 ASSERT_EQ(1, kSmiTagSize + kSmiShiftSize); 4264 ASSERT_EQ(1, kSmiTagSize + kSmiShiftSize);
4265 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 4265 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
4266 __ add(pc, r1, Operand(masm_->CodeObject())); 4266 __ add(pc, r1, Operand(masm_->CodeObject()));
4267 } 4267 }
4268 4268
4269 4269
4270 #undef __ 4270 #undef __
4271 4271
4272 #define __ ACCESS_MASM(masm())
4273
4274 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit(
4275 int* stack_depth,
4276 int* context_length) {
4277 // The macros used here must preserve the result register.
4278
4279 // Because the handler block contains the context of the finally
4280 // code, we can restore it directly from there for the finally code
4281 // rather than iteratively unwinding contexts via their previous
4282 // links.
4283 __ Drop(*stack_depth); // Down to the handler block.
4284 if (*context_length > 0) {
4285 // Restore the context to its dedicated register and the stack.
4286 __ ldr(cp, MemOperand(sp, StackHandlerConstants::kContextOffset));
4287 __ str(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
4288 }
4289 __ PopTryHandler();
4290 __ bl(finally_entry_);
4291
4292 *stack_depth = 0;
4293 *context_length = 0;
4294 return previous_;
4295 }
4296
4297
4298 #undef __
4299
4272 } } // namespace v8::internal 4300 } } // namespace v8::internal
4273 4301
4274 #endif // V8_TARGET_ARCH_ARM 4302 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698