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

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

Issue 14139033: Clean up VMState a little bit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fixed mistake 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/heap.cc ('k') | src/isolate.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 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 ExternalReference::handle_scope_level_address(isolate()); 1977 ExternalReference::handle_scope_level_address(isolate());
1978 1978
1979 // Allocate HandleScope in callee-save registers. 1979 // Allocate HandleScope in callee-save registers.
1980 mov(ebx, Operand::StaticVariable(next_address)); 1980 mov(ebx, Operand::StaticVariable(next_address));
1981 mov(edi, Operand::StaticVariable(limit_address)); 1981 mov(edi, Operand::StaticVariable(limit_address));
1982 add(Operand::StaticVariable(level_address), Immediate(1)); 1982 add(Operand::StaticVariable(level_address), Immediate(1));
1983 1983
1984 if (FLAG_log_timer_events) { 1984 if (FLAG_log_timer_events) {
1985 FrameScope frame(this, StackFrame::MANUAL); 1985 FrameScope frame(this, StackFrame::MANUAL);
1986 PushSafepointRegisters(); 1986 PushSafepointRegisters();
1987 PrepareCallCFunction(0, eax); 1987 PrepareCallCFunction(1, eax);
1988 CallCFunction(ExternalReference::log_enter_external_function(isolate()), 0); 1988 mov(Operand(esp, 0),
1989 Immediate(ExternalReference::isolate_address(isolate())));
1990 CallCFunction(ExternalReference::log_enter_external_function(isolate()), 1);
1989 PopSafepointRegisters(); 1991 PopSafepointRegisters();
1990 } 1992 }
1991 1993
1992 // Call the api function. 1994 // Call the api function.
1993 call(function_address, RelocInfo::RUNTIME_ENTRY); 1995 call(function_address, RelocInfo::RUNTIME_ENTRY);
1994 1996
1995 if (FLAG_log_timer_events) { 1997 if (FLAG_log_timer_events) {
1996 FrameScope frame(this, StackFrame::MANUAL); 1998 FrameScope frame(this, StackFrame::MANUAL);
1997 PushSafepointRegisters(); 1999 PushSafepointRegisters();
1998 PrepareCallCFunction(0, eax); 2000 PrepareCallCFunction(1, eax);
1999 CallCFunction(ExternalReference::log_leave_external_function(isolate()), 0); 2001 mov(Operand(esp, 0),
2002 Immediate(ExternalReference::isolate_address(isolate())));
2003 CallCFunction(ExternalReference::log_leave_external_function(isolate()), 1);
2000 PopSafepointRegisters(); 2004 PopSafepointRegisters();
2001 } 2005 }
2002 2006
2003 if (!kReturnHandlesDirectly) { 2007 if (!kReturnHandlesDirectly) {
2004 // PrepareCallApiFunction saved pointer to the output slot into 2008 // PrepareCallApiFunction saved pointer to the output slot into
2005 // callee-save register esi. 2009 // callee-save register esi.
2006 mov(eax, Operand(esi, 0)); 2010 mov(eax, Operand(esi, 0));
2007 } 2011 }
2008 2012
2009 Label empty_handle; 2013 Label empty_handle;
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
3115 j(greater, &no_info_available); 3119 j(greater, &no_info_available);
3116 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), 3120 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize),
3117 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); 3121 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map())));
3118 bind(&no_info_available); 3122 bind(&no_info_available);
3119 } 3123 }
3120 3124
3121 3125
3122 } } // namespace v8::internal 3126 } } // namespace v8::internal
3123 3127
3124 #endif // V8_TARGET_ARCH_IA32 3128 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698