| 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 2209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2220 | 2220 |
| 2221 __ bind(&done); | 2221 __ bind(&done); |
| 2222 context()->Plug(result_register()); | 2222 context()->Plug(result_register()); |
| 2223 } | 2223 } |
| 2224 | 2224 |
| 2225 | 2225 |
| 2226 void FullCodeGenerator::EmitCreateIteratorResult(bool done) { | 2226 void FullCodeGenerator::EmitCreateIteratorResult(bool done) { |
| 2227 Label gc_required; | 2227 Label gc_required; |
| 2228 Label allocated; | 2228 Label allocated; |
| 2229 | 2229 |
| 2230 Handle<Map> map(isolate()->native_context()->generator_result_map()); | 2230 Handle<Map> map(isolate()->native_context()->iterator_result_map()); |
| 2231 | 2231 |
| 2232 __ Allocate(map->instance_size(), eax, ecx, edx, &gc_required, TAG_OBJECT); | 2232 __ Allocate(map->instance_size(), eax, ecx, edx, &gc_required, TAG_OBJECT); |
| 2233 __ jmp(&allocated); | 2233 __ jmp(&allocated); |
| 2234 | 2234 |
| 2235 __ bind(&gc_required); | 2235 __ bind(&gc_required); |
| 2236 __ Push(Smi::FromInt(map->instance_size())); | 2236 __ Push(Smi::FromInt(map->instance_size())); |
| 2237 __ CallRuntime(Runtime::kHiddenAllocateInNewSpace, 1); | 2237 __ CallRuntime(Runtime::kHiddenAllocateInNewSpace, 1); |
| 2238 __ mov(context_register(), | 2238 __ mov(context_register(), |
| 2239 Operand(ebp, StandardFrameConstants::kContextOffset)); | 2239 Operand(ebp, StandardFrameConstants::kContextOffset)); |
| 2240 | 2240 |
| (...skipping 2678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4919 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4919 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 4920 Assembler::target_address_at(call_target_address, | 4920 Assembler::target_address_at(call_target_address, |
| 4921 unoptimized_code)); | 4921 unoptimized_code)); |
| 4922 return OSR_AFTER_STACK_CHECK; | 4922 return OSR_AFTER_STACK_CHECK; |
| 4923 } | 4923 } |
| 4924 | 4924 |
| 4925 | 4925 |
| 4926 } } // namespace v8::internal | 4926 } } // namespace v8::internal |
| 4927 | 4927 |
| 4928 #endif // V8_TARGET_ARCH_IA32 | 4928 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |