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 2246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2257 | 2257 |
2258 __ bind(&done); | 2258 __ bind(&done); |
2259 context()->Plug(result_register()); | 2259 context()->Plug(result_register()); |
2260 } | 2260 } |
2261 | 2261 |
2262 | 2262 |
2263 void FullCodeGenerator::EmitCreateIteratorResult(bool done) { | 2263 void FullCodeGenerator::EmitCreateIteratorResult(bool done) { |
2264 Label gc_required; | 2264 Label gc_required; |
2265 Label allocated; | 2265 Label allocated; |
2266 | 2266 |
2267 Handle<Map> map(isolate()->native_context()->iterator_result_map()); | 2267 Handle<Map> map(isolate()->native_context()->generator_result_map()); |
2268 | 2268 |
2269 __ Allocate(map->instance_size(), rax, rcx, rdx, &gc_required, TAG_OBJECT); | 2269 __ Allocate(map->instance_size(), rax, rcx, rdx, &gc_required, TAG_OBJECT); |
2270 __ jmp(&allocated); | 2270 __ jmp(&allocated); |
2271 | 2271 |
2272 __ bind(&gc_required); | 2272 __ bind(&gc_required); |
2273 __ Push(Smi::FromInt(map->instance_size())); | 2273 __ Push(Smi::FromInt(map->instance_size())); |
2274 __ CallRuntime(Runtime::kHiddenAllocateInNewSpace, 1); | 2274 __ CallRuntime(Runtime::kHiddenAllocateInNewSpace, 1); |
2275 __ movp(context_register(), | 2275 __ movp(context_register(), |
2276 Operand(rbp, StandardFrameConstants::kContextOffset)); | 2276 Operand(rbp, StandardFrameConstants::kContextOffset)); |
2277 | 2277 |
(...skipping 2646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4924 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4924 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4925 Assembler::target_address_at(call_target_address, | 4925 Assembler::target_address_at(call_target_address, |
4926 unoptimized_code)); | 4926 unoptimized_code)); |
4927 return OSR_AFTER_STACK_CHECK; | 4927 return OSR_AFTER_STACK_CHECK; |
4928 } | 4928 } |
4929 | 4929 |
4930 | 4930 |
4931 } } // namespace v8::internal | 4931 } } // namespace v8::internal |
4932 | 4932 |
4933 #endif // V8_TARGET_ARCH_X64 | 4933 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |