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

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

Issue 238063009: ES6: Add support for Map/Set forEach (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove explicit instantiation of private and functions in objects-inl.h 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 4688 matching lines...) Expand 10 before | Expand all | Expand 10 after
4699 4699
4700 __ Bind(&done); 4700 __ Bind(&done);
4701 context()->Plug(result_register()); 4701 context()->Plug(result_register());
4702 } 4702 }
4703 4703
4704 4704
4705 void FullCodeGenerator::EmitCreateIteratorResult(bool done) { 4705 void FullCodeGenerator::EmitCreateIteratorResult(bool done) {
4706 Label gc_required; 4706 Label gc_required;
4707 Label allocated; 4707 Label allocated;
4708 4708
4709 Handle<Map> map(isolate()->native_context()->generator_result_map()); 4709 Handle<Map> map(isolate()->native_context()->iterator_result_map());
4710 4710
4711 // Allocate and populate an object with this form: { value: VAL, done: DONE } 4711 // Allocate and populate an object with this form: { value: VAL, done: DONE }
4712 4712
4713 Register result = x0; 4713 Register result = x0;
4714 __ Allocate(map->instance_size(), result, x10, x11, &gc_required, TAG_OBJECT); 4714 __ Allocate(map->instance_size(), result, x10, x11, &gc_required, TAG_OBJECT);
4715 __ B(&allocated); 4715 __ B(&allocated);
4716 4716
4717 __ Bind(&gc_required); 4717 __ Bind(&gc_required);
4718 __ Push(Smi::FromInt(map->instance_size())); 4718 __ Push(Smi::FromInt(map->instance_size()));
4719 __ CallRuntime(Runtime::kHiddenAllocateInNewSpace, 1); 4719 __ CallRuntime(Runtime::kHiddenAllocateInNewSpace, 1);
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
4994 return previous_; 4994 return previous_;
4995 } 4995 }
4996 4996
4997 4997
4998 #undef __ 4998 #undef __
4999 4999
5000 5000
5001 } } // namespace v8::internal 5001 } } // namespace v8::internal
5002 5002
5003 #endif // V8_TARGET_ARCH_ARM64 5003 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/array-iterator.js » ('j') | src/objects-printer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698