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

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

Issue 11280212: Introduce --log-external-callbacks flag apart from --log-timer-events. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/vm-state-inl.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 1902 matching lines...) Expand 10 before | Expand all | Expand 10 after
1913 ExternalReference limit_address = 1913 ExternalReference limit_address =
1914 ExternalReference::handle_scope_limit_address(); 1914 ExternalReference::handle_scope_limit_address();
1915 ExternalReference level_address = 1915 ExternalReference level_address =
1916 ExternalReference::handle_scope_level_address(); 1916 ExternalReference::handle_scope_level_address();
1917 1917
1918 // Allocate HandleScope in callee-save registers. 1918 // Allocate HandleScope in callee-save registers.
1919 mov(ebx, Operand::StaticVariable(next_address)); 1919 mov(ebx, Operand::StaticVariable(next_address));
1920 mov(edi, Operand::StaticVariable(limit_address)); 1920 mov(edi, Operand::StaticVariable(limit_address));
1921 add(Operand::StaticVariable(level_address), Immediate(1)); 1921 add(Operand::StaticVariable(level_address), Immediate(1));
1922 1922
1923 if (FLAG_log_timer_events) { 1923 if (FLAG_log_external_callbacks) {
1924 FrameScope frame(this, StackFrame::MANUAL); 1924 FrameScope frame(this, StackFrame::MANUAL);
1925 PushSafepointRegisters(); 1925 PushSafepointRegisters();
1926 PrepareCallCFunction(0, eax); 1926 PrepareCallCFunction(0, eax);
1927 CallCFunction(ExternalReference::log_enter_external_function(isolate()), 0); 1927 CallCFunction(ExternalReference::log_enter_external_function(isolate()), 0);
1928 PopSafepointRegisters(); 1928 PopSafepointRegisters();
1929 } 1929 }
1930 1930
1931 // Call the api function. 1931 // Call the api function.
1932 call(function_address, RelocInfo::RUNTIME_ENTRY); 1932 call(function_address, RelocInfo::RUNTIME_ENTRY);
1933 1933
1934 if (FLAG_log_timer_events) { 1934 if (FLAG_log_external_callbacks) {
1935 FrameScope frame(this, StackFrame::MANUAL); 1935 FrameScope frame(this, StackFrame::MANUAL);
1936 PushSafepointRegisters(); 1936 PushSafepointRegisters();
1937 PrepareCallCFunction(0, eax); 1937 PrepareCallCFunction(0, eax);
1938 CallCFunction(ExternalReference::log_leave_external_function(isolate()), 0); 1938 CallCFunction(ExternalReference::log_leave_external_function(isolate()), 0);
1939 PopSafepointRegisters(); 1939 PopSafepointRegisters();
1940 } 1940 }
1941 1941
1942 if (!kReturnHandlesDirectly) { 1942 if (!kReturnHandlesDirectly) {
1943 // PrepareCallApiFunction saved pointer to the output slot into 1943 // PrepareCallApiFunction saved pointer to the output slot into
1944 // callee-save register esi. 1944 // callee-save register esi.
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
3000 j(not_equal, call_runtime); 3000 j(not_equal, call_runtime);
3001 3001
3002 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset)); 3002 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset));
3003 cmp(ecx, isolate()->factory()->null_value()); 3003 cmp(ecx, isolate()->factory()->null_value());
3004 j(not_equal, &next); 3004 j(not_equal, &next);
3005 } 3005 }
3006 3006
3007 } } // namespace v8::internal 3007 } } // namespace v8::internal
3008 3008
3009 #endif // V8_TARGET_ARCH_IA32 3009 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/vm-state-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698