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 2238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2249 | 2249 |
2250 __ bind(&done); | 2250 __ bind(&done); |
2251 context()->Plug(result_register()); | 2251 context()->Plug(result_register()); |
2252 } | 2252 } |
2253 | 2253 |
2254 | 2254 |
2255 void FullCodeGenerator::EmitCreateIteratorResult(bool done) { | 2255 void FullCodeGenerator::EmitCreateIteratorResult(bool done) { |
2256 Label gc_required; | 2256 Label gc_required; |
2257 Label allocated; | 2257 Label allocated; |
2258 | 2258 |
2259 Handle<Map> map(isolate()->native_context()->iterator_result_map()); | 2259 Handle<Map> map(isolate()->native_context()->generator_result_map()); |
2260 | 2260 |
2261 __ Allocate(map->instance_size(), rax, rcx, rdx, &gc_required, TAG_OBJECT); | 2261 __ Allocate(map->instance_size(), rax, rcx, rdx, &gc_required, TAG_OBJECT); |
2262 __ jmp(&allocated); | 2262 __ jmp(&allocated); |
2263 | 2263 |
2264 __ bind(&gc_required); | 2264 __ bind(&gc_required); |
2265 __ Push(Smi::FromInt(map->instance_size())); | 2265 __ Push(Smi::FromInt(map->instance_size())); |
2266 __ CallRuntime(Runtime::kHiddenAllocateInNewSpace, 1); | 2266 __ CallRuntime(Runtime::kHiddenAllocateInNewSpace, 1); |
2267 __ movp(context_register(), | 2267 __ movp(context_register(), |
2268 Operand(rbp, StandardFrameConstants::kContextOffset)); | 2268 Operand(rbp, StandardFrameConstants::kContextOffset)); |
2269 | 2269 |
(...skipping 2647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4917 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4917 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4918 Assembler::target_address_at(call_target_address, | 4918 Assembler::target_address_at(call_target_address, |
4919 unoptimized_code)); | 4919 unoptimized_code)); |
4920 return OSR_AFTER_STACK_CHECK; | 4920 return OSR_AFTER_STACK_CHECK; |
4921 } | 4921 } |
4922 | 4922 |
4923 | 4923 |
4924 } } // namespace v8::internal | 4924 } } // namespace v8::internal |
4925 | 4925 |
4926 #endif // V8_TARGET_ARCH_X64 | 4926 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |