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 2176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2187 __ ldr(r3, FieldMemOperand(r3, FixedArray::kLengthOffset)); | 2187 __ ldr(r3, FieldMemOperand(r3, FixedArray::kLengthOffset)); |
2188 __ SmiUntag(r3); | 2188 __ SmiUntag(r3); |
2189 | 2189 |
2190 // If we are sending a value and there is no operand stack, we can jump back | 2190 // If we are sending a value and there is no operand stack, we can jump back |
2191 // in directly. | 2191 // in directly. |
2192 if (resume_mode == JSGeneratorObject::NEXT) { | 2192 if (resume_mode == JSGeneratorObject::NEXT) { |
2193 Label slow_resume; | 2193 Label slow_resume; |
2194 __ cmp(r3, Operand(0)); | 2194 __ cmp(r3, Operand(0)); |
2195 __ b(ne, &slow_resume); | 2195 __ b(ne, &slow_resume); |
2196 __ ldr(r3, FieldMemOperand(r4, JSFunction::kCodeEntryOffset)); | 2196 __ ldr(r3, FieldMemOperand(r4, JSFunction::kCodeEntryOffset)); |
2197 | |
2198 ConstantPoolUnavailableScope constant_pool_unavailable(masm_); | |
ulan
2014/03/11 13:07:39
Shouldn't this scope be
- at the beginning of the
rmcilroy
2014/03/11 16:14:53
The Constant Pool is unavailable (for this code ob
ulan
2014/03/11 16:19:57
I see, thanks for explaining! What about putting i
rmcilroy
2014/03/11 16:42:23
Good call! Done.
| |
2199 if (FLAG_enable_ool_constant_pool) { | |
2200 // Load the new code object's constant pool pointer. | |
2201 __ ldr(pp, MemOperand(r3, Code::kConstantPoolOffset - Code::kHeaderSize)); | |
2202 } | |
2203 | |
2197 __ ldr(r2, FieldMemOperand(r1, JSGeneratorObject::kContinuationOffset)); | 2204 __ ldr(r2, FieldMemOperand(r1, JSGeneratorObject::kContinuationOffset)); |
2198 __ SmiUntag(r2); | 2205 __ SmiUntag(r2); |
2199 __ add(r3, r3, r2); | 2206 __ add(r3, r3, r2); |
2200 __ mov(r2, Operand(Smi::FromInt(JSGeneratorObject::kGeneratorExecuting))); | 2207 __ mov(r2, Operand(Smi::FromInt(JSGeneratorObject::kGeneratorExecuting))); |
2201 __ str(r2, FieldMemOperand(r1, JSGeneratorObject::kContinuationOffset)); | 2208 __ str(r2, FieldMemOperand(r1, JSGeneratorObject::kContinuationOffset)); |
2202 __ Jump(r3); | 2209 __ Jump(r3); |
2210 | |
2203 __ bind(&slow_resume); | 2211 __ bind(&slow_resume); |
2204 } | 2212 } |
2205 | 2213 |
2206 // Otherwise, we push holes for the operand stack and call the runtime to fix | 2214 // Otherwise, we push holes for the operand stack and call the runtime to fix |
2207 // up the stack and the handlers. | 2215 // up the stack and the handlers. |
2208 Label push_operand_holes, call_resume; | 2216 Label push_operand_holes, call_resume; |
2209 __ bind(&push_operand_holes); | 2217 __ bind(&push_operand_holes); |
2210 __ sub(r3, r3, Operand(1), SetCC); | 2218 __ sub(r3, r3, Operand(1), SetCC); |
2211 __ b(mi, &call_resume); | 2219 __ b(mi, &call_resume); |
2212 __ push(r2); | 2220 __ push(r2); |
(...skipping 2704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4917 ASSERT(Memory::uint32_at(interrupt_address_pointer) == | 4925 ASSERT(Memory::uint32_at(interrupt_address_pointer) == |
4918 reinterpret_cast<uint32_t>( | 4926 reinterpret_cast<uint32_t>( |
4919 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4927 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4920 return OSR_AFTER_STACK_CHECK; | 4928 return OSR_AFTER_STACK_CHECK; |
4921 } | 4929 } |
4922 | 4930 |
4923 | 4931 |
4924 } } // namespace v8::internal | 4932 } } // namespace v8::internal |
4925 | 4933 |
4926 #endif // V8_TARGET_ARCH_ARM | 4934 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |