Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 239163012: Revert "ES6: Add support for Map/Set forEach" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/runtime.cc ('k') | test/cctest/test-ordered-hash-table.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | test/cctest/test-ordered-hash-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698