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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 492002: Fast-codegen: Implementing try/finally on top of nesting context. (Closed)
Patch Set: Updated to be based on latest release. Created 11 years 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
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 // Save the current handler. 1433 // Save the current handler.
1434 movq(kScratchRegister, ExternalReference(Top::k_handler_address)); 1434 movq(kScratchRegister, ExternalReference(Top::k_handler_address));
1435 push(Operand(kScratchRegister, 0)); 1435 push(Operand(kScratchRegister, 0));
1436 // Link this handler. 1436 // Link this handler.
1437 movq(Operand(kScratchRegister, 0), rsp); 1437 movq(Operand(kScratchRegister, 0), rsp);
1438 } 1438 }
1439 1439
1440 1440
1441 void MacroAssembler::PopTryHandler() { 1441 void MacroAssembler::PopTryHandler() {
1442 ASSERT_EQ(0, StackHandlerConstants::kNextOffset); 1442 ASSERT_EQ(0, StackHandlerConstants::kNextOffset);
1443 // Unlink this handler.
1443 movq(kScratchRegister, ExternalReference(Top::k_handler_address)); 1444 movq(kScratchRegister, ExternalReference(Top::k_handler_address));
1444 pop(Operand(kScratchRegister, 0)); 1445 pop(Operand(kScratchRegister, 0));
1446 // Remove the remaining fields.
1445 addq(rsp, Immediate(StackHandlerConstants::kSize - kPointerSize)); 1447 addq(rsp, Immediate(StackHandlerConstants::kSize - kPointerSize));
1446 } 1448 }
1447 1449
1448 1450
1449 void MacroAssembler::Ret() { 1451 void MacroAssembler::Ret() {
1450 ret(0); 1452 ret(0);
1451 } 1453 }
1452 1454
1453 1455
1454 void MacroAssembler::FCmp() { 1456 void MacroAssembler::FCmp() {
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
2398 CodePatcher::~CodePatcher() { 2400 CodePatcher::~CodePatcher() {
2399 // Indicate that code has changed. 2401 // Indicate that code has changed.
2400 CPU::FlushICache(address_, size_); 2402 CPU::FlushICache(address_, size_);
2401 2403
2402 // Check that the code was patched as expected. 2404 // Check that the code was patched as expected.
2403 ASSERT(masm_.pc_ == address_ + size_); 2405 ASSERT(masm_.pc_ == address_ + size_);
2404 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2406 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2405 } 2407 }
2406 2408
2407 } } // namespace v8::internal 2409 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698