| OLD | NEW |
| 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 Loading... |
| 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) { |
| 1924 FrameScope frame(this, StackFrame::MANUAL); |
| 1925 PushSafepointRegisters(); |
| 1926 PrepareCallCFunction(0, eax); |
| 1927 CallCFunction(ExternalReference::log_enter_external_function(isolate()), 0); |
| 1928 PopSafepointRegisters(); |
| 1929 } |
| 1930 |
| 1923 // Call the api function. | 1931 // Call the api function. |
| 1924 call(function_address, RelocInfo::RUNTIME_ENTRY); | 1932 call(function_address, RelocInfo::RUNTIME_ENTRY); |
| 1925 | 1933 |
| 1934 if (FLAG_log_timer_events) { |
| 1935 FrameScope frame(this, StackFrame::MANUAL); |
| 1936 PushSafepointRegisters(); |
| 1937 PrepareCallCFunction(0, eax); |
| 1938 CallCFunction(ExternalReference::log_leave_external_function(isolate()), 0); |
| 1939 PopSafepointRegisters(); |
| 1940 } |
| 1941 |
| 1926 if (!kReturnHandlesDirectly) { | 1942 if (!kReturnHandlesDirectly) { |
| 1927 // PrepareCallApiFunction saved pointer to the output slot into | 1943 // PrepareCallApiFunction saved pointer to the output slot into |
| 1928 // callee-save register esi. | 1944 // callee-save register esi. |
| 1929 mov(eax, Operand(esi, 0)); | 1945 mov(eax, Operand(esi, 0)); |
| 1930 } | 1946 } |
| 1931 | 1947 |
| 1932 Label empty_handle; | 1948 Label empty_handle; |
| 1933 Label prologue; | 1949 Label prologue; |
| 1934 Label promote_scheduled_exception; | 1950 Label promote_scheduled_exception; |
| 1935 Label delete_allocated_handles; | 1951 Label delete_allocated_handles; |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2984 j(not_equal, call_runtime); | 3000 j(not_equal, call_runtime); |
| 2985 | 3001 |
| 2986 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset)); | 3002 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset)); |
| 2987 cmp(ecx, isolate()->factory()->null_value()); | 3003 cmp(ecx, isolate()->factory()->null_value()); |
| 2988 j(not_equal, &next); | 3004 j(not_equal, &next); |
| 2989 } | 3005 } |
| 2990 | 3006 |
| 2991 } } // namespace v8::internal | 3007 } } // namespace v8::internal |
| 2992 | 3008 |
| 2993 #endif // V8_TARGET_ARCH_IA32 | 3009 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |