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

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

Issue 12300018: Made Isolate a mandatory parameter for everything Handle-related. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed CreateCode calls. Be nicer to MIPS. Created 7 years, 9 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/x64/lithium-codegen-x64.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 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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 int stack_space) { 694 int stack_space) {
695 Label empty_result; 695 Label empty_result;
696 Label prologue; 696 Label prologue;
697 Label promote_scheduled_exception; 697 Label promote_scheduled_exception;
698 Label delete_allocated_handles; 698 Label delete_allocated_handles;
699 Label leave_exit_frame; 699 Label leave_exit_frame;
700 Label write_back; 700 Label write_back;
701 701
702 Factory* factory = isolate()->factory(); 702 Factory* factory = isolate()->factory();
703 ExternalReference next_address = 703 ExternalReference next_address =
704 ExternalReference::handle_scope_next_address(); 704 ExternalReference::handle_scope_next_address(isolate());
705 const int kNextOffset = 0; 705 const int kNextOffset = 0;
706 const int kLimitOffset = Offset( 706 const int kLimitOffset = Offset(
707 ExternalReference::handle_scope_limit_address(), 707 ExternalReference::handle_scope_limit_address(isolate()),
708 next_address); 708 next_address);
709 const int kLevelOffset = Offset( 709 const int kLevelOffset = Offset(
710 ExternalReference::handle_scope_level_address(), 710 ExternalReference::handle_scope_level_address(isolate()),
711 next_address); 711 next_address);
712 ExternalReference scheduled_exception_address = 712 ExternalReference scheduled_exception_address =
713 ExternalReference::scheduled_exception_address(isolate()); 713 ExternalReference::scheduled_exception_address(isolate());
714 714
715 // Allocate HandleScope in callee-save registers. 715 // Allocate HandleScope in callee-save registers.
716 Register prev_next_address_reg = r14; 716 Register prev_next_address_reg = r14;
717 Register prev_limit_reg = rbx; 717 Register prev_limit_reg = rbx;
718 Register base_reg = r15; 718 Register base_reg = r15;
719 movq(base_reg, next_address); 719 movq(base_reg, next_address);
720 movq(prev_next_address_reg, Operand(base_reg, kNextOffset)); 720 movq(prev_next_address_reg, Operand(base_reg, kNextOffset));
(...skipping 3898 matching lines...) Expand 10 before | Expand all | Expand 10 after
4619 j(greater, &no_info_available); 4619 j(greater, &no_info_available);
4620 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), 4620 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize),
4621 Heap::kAllocationSiteInfoMapRootIndex); 4621 Heap::kAllocationSiteInfoMapRootIndex);
4622 bind(&no_info_available); 4622 bind(&no_info_available);
4623 } 4623 }
4624 4624
4625 4625
4626 } } // namespace v8::internal 4626 } } // namespace v8::internal
4627 4627
4628 #endif // V8_TARGET_ARCH_X64 4628 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698