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

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

Issue 10546092: Revert r11753. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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/isolate.cc ('k') | test/cctest/test-api.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 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 4459 matching lines...) Expand 10 before | Expand all | Expand 10 after
4470 __ pop(result_register()); 4470 __ pop(result_register());
4471 // Uncook return address. 4471 // Uncook return address.
4472 __ pop(rdx); 4472 __ pop(rdx);
4473 __ SmiToInteger32(rdx, rdx); 4473 __ SmiToInteger32(rdx, rdx);
4474 __ Move(rcx, masm_->CodeObject()); 4474 __ Move(rcx, masm_->CodeObject());
4475 __ addq(rdx, rcx); 4475 __ addq(rdx, rcx);
4476 __ jmp(rdx); 4476 __ jmp(rdx);
4477 } 4477 }
4478 4478
4479 4479
4480 void FullCodeGenerator::SavePendingMessage() {
4481 ASSERT(!result_register().is(rdx));
4482 // Store pending message while executing finally block upon exception.
4483 ExternalReference pending_message_obj =
4484 ExternalReference::address_of_pending_message_obj(isolate());
4485 __ Load(rdx, pending_message_obj);
4486 __ push(rdx);
4487
4488 ExternalReference has_pending_message =
4489 ExternalReference::address_of_has_pending_message(isolate());
4490 __ Load(rdx, has_pending_message);
4491 __ push(rdx);
4492
4493 ExternalReference pending_message_script =
4494 ExternalReference::address_of_pending_message_script(isolate());
4495 __ Load(rdx, pending_message_script);
4496 __ push(rdx);
4497 }
4498
4499
4500 void FullCodeGenerator::RestorePendingMessage() {
4501 ASSERT(!result_register().is(rdx));
4502 // Restore pending message.
4503 __ pop(rdx);
4504 ExternalReference pending_message_script =
4505 ExternalReference::address_of_pending_message_script(isolate());
4506 __ Store(pending_message_script, rdx);
4507
4508 __ pop(rdx);
4509 ExternalReference has_pending_message =
4510 ExternalReference::address_of_has_pending_message(isolate());
4511 __ Store(has_pending_message, rdx);
4512
4513 __ pop(rdx);
4514 ExternalReference pending_message_obj =
4515 ExternalReference::address_of_pending_message_obj(isolate());
4516 __ Store(pending_message_obj, rdx);
4517 }
4518
4519
4520 #undef __ 4480 #undef __
4521 4481
4522 #define __ ACCESS_MASM(masm()) 4482 #define __ ACCESS_MASM(masm())
4523 4483
4524 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit( 4484 FullCodeGenerator::NestedStatement* FullCodeGenerator::TryFinally::Exit(
4525 int* stack_depth, 4485 int* stack_depth,
4526 int* context_length) { 4486 int* context_length) {
4527 // The macros used here must preserve the result register. 4487 // The macros used here must preserve the result register.
4528 4488
4529 // Because the handler block contains the context of the finally 4489 // Because the handler block contains the context of the finally
(...skipping 13 matching lines...) Expand all
4543 *context_length = 0; 4503 *context_length = 0;
4544 return previous_; 4504 return previous_;
4545 } 4505 }
4546 4506
4547 4507
4548 #undef __ 4508 #undef __
4549 4509
4550 } } // namespace v8::internal 4510 } } // namespace v8::internal
4551 4511
4552 #endif // V8_TARGET_ARCH_X64 4512 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698