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

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

Issue 13192004: arrange to create prototypes for generators (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Generators JS runtime to separate file, to avoid overhead when no --harmony-generators Created 7 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
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | src/bootstrapper.cc » ('J')
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 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 // Use the fast case closure allocation code that allocates in new 1260 // Use the fast case closure allocation code that allocates in new
1261 // space for nested functions that don't need literals cloning. If 1261 // space for nested functions that don't need literals cloning. If
1262 // we're running with the --always-opt or the --prepare-always-opt 1262 // we're running with the --always-opt or the --prepare-always-opt
1263 // flag, we need to use the runtime function so that the new function 1263 // flag, we need to use the runtime function so that the new function
1264 // we are creating here gets a chance to have its code optimized and 1264 // we are creating here gets a chance to have its code optimized and
1265 // doesn't just get a copy of the existing unoptimized code. 1265 // doesn't just get a copy of the existing unoptimized code.
1266 if (!FLAG_always_opt && 1266 if (!FLAG_always_opt &&
1267 !FLAG_prepare_always_opt && 1267 !FLAG_prepare_always_opt &&
1268 !pretenure && 1268 !pretenure &&
1269 scope()->is_function_scope() && 1269 scope()->is_function_scope() &&
1270 !info->is_generator() &&
1270 info->num_literals() == 0) { 1271 info->num_literals() == 0) {
1271 FastNewClosureStub stub(info->language_mode()); 1272 FastNewClosureStub stub(info->language_mode());
1272 __ mov(r0, Operand(info)); 1273 __ mov(r0, Operand(info));
1273 __ push(r0); 1274 __ push(r0);
1274 __ CallStub(&stub); 1275 __ CallStub(&stub);
1275 } else { 1276 } else {
1276 __ mov(r0, Operand(info)); 1277 __ mov(r0, Operand(info));
1277 __ LoadRoot(r1, pretenure ? Heap::kTrueValueRootIndex 1278 __ LoadRoot(r1, pretenure ? Heap::kTrueValueRootIndex
1278 : Heap::kFalseValueRootIndex); 1279 : Heap::kFalseValueRootIndex);
1279 __ Push(cp, r0, r1); 1280 __ Push(cp, r0, r1);
(...skipping 3300 matching lines...) Expand 10 before | Expand all | Expand 10 after
4580 *context_length = 0; 4581 *context_length = 0;
4581 return previous_; 4582 return previous_;
4582 } 4583 }
4583 4584
4584 4585
4585 #undef __ 4586 #undef __
4586 4587
4587 } } // namespace v8::internal 4588 } } // namespace v8::internal
4588 4589
4589 #endif // V8_TARGET_ARCH_ARM 4590 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | src/bootstrapper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698