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

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

Issue 14429003: Refactor ExternalReference::isolate_address() to not rely on Isolate::Current(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 7 years, 8 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/ia32/deoptimizer-ia32.cc ('k') | src/ia32/regexp-macro-assembler-ia32.h » ('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 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after
2079 2079
2080 bind(&promote_scheduled_exception); 2080 bind(&promote_scheduled_exception);
2081 TailCallRuntime(Runtime::kPromoteScheduledException, 0, 1); 2081 TailCallRuntime(Runtime::kPromoteScheduledException, 0, 1);
2082 2082
2083 // HandleScope limit has changed. Delete allocated extensions. 2083 // HandleScope limit has changed. Delete allocated extensions.
2084 ExternalReference delete_extensions = 2084 ExternalReference delete_extensions =
2085 ExternalReference::delete_handle_scope_extensions(isolate()); 2085 ExternalReference::delete_handle_scope_extensions(isolate());
2086 bind(&delete_allocated_handles); 2086 bind(&delete_allocated_handles);
2087 mov(Operand::StaticVariable(limit_address), edi); 2087 mov(Operand::StaticVariable(limit_address), edi);
2088 mov(edi, eax); 2088 mov(edi, eax);
2089 mov(Operand(esp, 0), Immediate(ExternalReference::isolate_address())); 2089 mov(Operand(esp, 0),
2090 Immediate(ExternalReference::isolate_address(isolate())));
2090 mov(eax, Immediate(delete_extensions)); 2091 mov(eax, Immediate(delete_extensions));
2091 call(eax); 2092 call(eax);
2092 mov(eax, edi); 2093 mov(eax, edi);
2093 jmp(&leave_exit_frame); 2094 jmp(&leave_exit_frame);
2094 } 2095 }
2095 2096
2096 2097
2097 void MacroAssembler::JumpToExternalReference(const ExternalReference& ext) { 2098 void MacroAssembler::JumpToExternalReference(const ExternalReference& ext) {
2098 // Set the entry point and jump to the C entry runtime stub. 2099 // Set the entry point and jump to the C entry runtime stub.
2099 mov(ebx, Immediate(ext)); 2100 mov(ebx, Immediate(ext));
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
3114 j(greater, &no_info_available); 3115 j(greater, &no_info_available);
3115 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), 3116 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize),
3116 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); 3117 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map())));
3117 bind(&no_info_available); 3118 bind(&no_info_available);
3118 } 3119 }
3119 3120
3120 3121
3121 } } // namespace v8::internal 3122 } } // namespace v8::internal
3122 3123
3123 #endif // V8_TARGET_ARCH_IA32 3124 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/ia32/regexp-macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698