| 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 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1962 if (emit_debug_code()) { | 1962 if (emit_debug_code()) { |
| 1963 mov(Operand(esi, 0), Immediate(0)); | 1963 mov(Operand(esi, 0), Immediate(0)); |
| 1964 } | 1964 } |
| 1965 } | 1965 } |
| 1966 } | 1966 } |
| 1967 | 1967 |
| 1968 | 1968 |
| 1969 void MacroAssembler::CallApiFunctionAndReturn(Address function_address, | 1969 void MacroAssembler::CallApiFunctionAndReturn(Address function_address, |
| 1970 int stack_space) { | 1970 int stack_space) { |
| 1971 ExternalReference next_address = | 1971 ExternalReference next_address = |
| 1972 ExternalReference::handle_scope_next_address(); | 1972 ExternalReference::handle_scope_next_address(isolate()); |
| 1973 ExternalReference limit_address = | 1973 ExternalReference limit_address = |
| 1974 ExternalReference::handle_scope_limit_address(); | 1974 ExternalReference::handle_scope_limit_address(isolate()); |
| 1975 ExternalReference level_address = | 1975 ExternalReference level_address = |
| 1976 ExternalReference::handle_scope_level_address(); | 1976 ExternalReference::handle_scope_level_address(isolate()); |
| 1977 | 1977 |
| 1978 // Allocate HandleScope in callee-save registers. | 1978 // Allocate HandleScope in callee-save registers. |
| 1979 mov(ebx, Operand::StaticVariable(next_address)); | 1979 mov(ebx, Operand::StaticVariable(next_address)); |
| 1980 mov(edi, Operand::StaticVariable(limit_address)); | 1980 mov(edi, Operand::StaticVariable(limit_address)); |
| 1981 add(Operand::StaticVariable(level_address), Immediate(1)); | 1981 add(Operand::StaticVariable(level_address), Immediate(1)); |
| 1982 | 1982 |
| 1983 if (FLAG_log_timer_events) { | 1983 if (FLAG_log_timer_events) { |
| 1984 FrameScope frame(this, StackFrame::MANUAL); | 1984 FrameScope frame(this, StackFrame::MANUAL); |
| 1985 PushSafepointRegisters(); | 1985 PushSafepointRegisters(); |
| 1986 PrepareCallCFunction(0, eax); | 1986 PrepareCallCFunction(0, eax); |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3081 j(greater, &no_info_available); | 3081 j(greater, &no_info_available); |
| 3082 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), | 3082 cmp(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), |
| 3083 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); | 3083 Immediate(Handle<Map>(isolate()->heap()->allocation_site_info_map()))); |
| 3084 bind(&no_info_available); | 3084 bind(&no_info_available); |
| 3085 } | 3085 } |
| 3086 | 3086 |
| 3087 | 3087 |
| 3088 } } // namespace v8::internal | 3088 } } // namespace v8::internal |
| 3089 | 3089 |
| 3090 #endif // V8_TARGET_ARCH_IA32 | 3090 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |