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 2260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2271 | 2271 |
2272 __ bind(&done); | 2272 __ bind(&done); |
2273 context()->Plug(result_register()); | 2273 context()->Plug(result_register()); |
2274 } | 2274 } |
2275 | 2275 |
2276 | 2276 |
2277 void FullCodeGenerator::EmitCreateIteratorResult(bool done) { | 2277 void FullCodeGenerator::EmitCreateIteratorResult(bool done) { |
2278 Label gc_required; | 2278 Label gc_required; |
2279 Label allocated; | 2279 Label allocated; |
2280 | 2280 |
2281 Handle<Map> map(isolate()->native_context()->iterator_result_map()); | 2281 Handle<Map> map(isolate()->native_context()->generator_result_map()); |
2282 | 2282 |
2283 __ Allocate(map->instance_size(), r0, r2, r3, &gc_required, TAG_OBJECT); | 2283 __ Allocate(map->instance_size(), r0, r2, r3, &gc_required, TAG_OBJECT); |
2284 __ jmp(&allocated); | 2284 __ jmp(&allocated); |
2285 | 2285 |
2286 __ bind(&gc_required); | 2286 __ bind(&gc_required); |
2287 __ Push(Smi::FromInt(map->instance_size())); | 2287 __ Push(Smi::FromInt(map->instance_size())); |
2288 __ CallRuntime(Runtime::kHiddenAllocateInNewSpace, 1); | 2288 __ CallRuntime(Runtime::kHiddenAllocateInNewSpace, 1); |
2289 __ ldr(context_register(), | 2289 __ ldr(context_register(), |
2290 MemOperand(fp, StandardFrameConstants::kContextOffset)); | 2290 MemOperand(fp, StandardFrameConstants::kContextOffset)); |
2291 | 2291 |
(...skipping 2640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4932 | 4932 |
4933 ASSERT(interrupt_address == | 4933 ASSERT(interrupt_address == |
4934 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4934 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4935 return OSR_AFTER_STACK_CHECK; | 4935 return OSR_AFTER_STACK_CHECK; |
4936 } | 4936 } |
4937 | 4937 |
4938 | 4938 |
4939 } } // namespace v8::internal | 4939 } } // namespace v8::internal |
4940 | 4940 |
4941 #endif // V8_TARGET_ARCH_ARM | 4941 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |