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/x64/macro-assembler-x64.cc

Issue 3522008: This is a little experiment to move Failure to a superclass above Object... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 2 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/stub-cache.cc ('k') | src/x64/stub-cache-x64.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 extensions_address); 507 extensions_address);
508 508
509 Object* result = NULL; 509 Object* result = NULL;
510 Label write_back; 510 Label write_back;
511 movq(kScratchRegister, extensions_address); 511 movq(kScratchRegister, extensions_address);
512 cmpq(Operand(kScratchRegister, kExtensionsOffset), Immediate(0)); 512 cmpq(Operand(kScratchRegister, kExtensionsOffset), Immediate(0));
513 j(equal, &write_back); 513 j(equal, &write_back);
514 push(saved); 514 push(saved);
515 if (gc_allowed) { 515 if (gc_allowed) {
516 CallRuntime(Runtime::kDeleteHandleScopeExtensions, 0); 516 CallRuntime(Runtime::kDeleteHandleScopeExtensions, 0);
517 { TryAllocation t =
518 TryCallRuntime(Runtime::kDeleteHandleScopeExtensions, 0);
519 if (!t->ToObject(&result)) return t;
520 }
517 } else { 521 } else {
518 result = TryCallRuntime(Runtime::kDeleteHandleScopeExtensions, 0);
519 if (result->IsFailure()) return result;
520 } 522 }
521 pop(saved); 523 pop(saved);
522 movq(kScratchRegister, extensions_address); 524 movq(kScratchRegister, extensions_address);
523 525
524 bind(&write_back); 526 bind(&write_back);
525 pop(Operand(kScratchRegister, kLimitOffset)); 527 pop(Operand(kScratchRegister, kLimitOffset));
526 pop(Operand(kScratchRegister, kNextOffset)); 528 pop(Operand(kScratchRegister, kNextOffset));
527 pop(scratch); 529 pop(scratch);
528 SmiToInteger32(scratch, scratch); 530 SmiToInteger32(scratch, scratch);
529 movq(Operand(kScratchRegister, kExtensionsOffset), scratch); 531 movq(Operand(kScratchRegister, kExtensionsOffset), scratch);
(...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after
2223 CPU::FlushICache(address_, size_); 2225 CPU::FlushICache(address_, size_);
2224 2226
2225 // Check that the code was patched as expected. 2227 // Check that the code was patched as expected.
2226 ASSERT(masm_.pc_ == address_ + size_); 2228 ASSERT(masm_.pc_ == address_ + size_);
2227 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2229 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2228 } 2230 }
2229 2231
2230 } } // namespace v8::internal 2232 } } // namespace v8::internal
2231 2233
2232 #endif // V8_TARGET_ARCH_X64 2234 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/stub-cache.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698