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

Side by Side Diff: src/x64/full-codegen-x64.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/version.cc ('k') | test/mjsunit/regress/regress-95485.js » ('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 4189 matching lines...) Expand 10 before | Expand all | Expand 10 after
4200 __ pop(rdx); 4200 __ pop(rdx);
4201 __ SmiToInteger32(rdx, rdx); 4201 __ SmiToInteger32(rdx, rdx);
4202 __ Move(rcx, masm_->CodeObject()); 4202 __ Move(rcx, masm_->CodeObject());
4203 __ addq(rdx, rcx); 4203 __ addq(rdx, rcx);
4204 __ jmp(rdx); 4204 __ jmp(rdx);
4205 } 4205 }
4206 4206
4207 4207
4208 #undef __ 4208 #undef __
4209 4209
4210 #define __ ACCESS_MASM(masm())
4211
4212 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit(
4213 int* stack_depth,
4214 int* context_length) {
4215 // The macros used here must preserve the result register.
4216
4217 // Because the handler block contains the context of the finally
4218 // code, we can restore it directly from there for the finally code
4219 // rather than iteratively unwinding contexts via their previous
4220 // links.
4221 __ Drop(*stack_depth); // Down to the handler block.
4222 if (*context_length > 0) {
4223 // Restore the context to its dedicated register and the stack.
4224 __ movq(rsi, Operand(rsp, StackHandlerConstants::kContextOffset));
4225 __ movq(Operand(rbp, StandardFrameConstants::kContextOffset), rsi);
4226 }
4227 __ PopTryHandler();
4228 __ call(finally_entry_);
4229
4230 *stack_depth = 0;
4231 *context_length = 0;
4232 return previous_;
4233 }
4234
4235
4236 #undef __
4210 4237
4211 } } // namespace v8::internal 4238 } } // namespace v8::internal
4212 4239
4213 #endif // V8_TARGET_ARCH_X64 4240 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | test/mjsunit/regress/regress-95485.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698