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

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

Issue 22562002: Convert FastNewClosureStub into hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Nit fixin Created 7 years, 3 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/x64/code-stubs-x64.cc ('k') | src/x64/lithium-codegen-x64.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 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 // we're running with the --always-opt or the --prepare-always-opt 1285 // we're running with the --always-opt or the --prepare-always-opt
1286 // flag, we need to use the runtime function so that the new function 1286 // flag, we need to use the runtime function so that the new function
1287 // we are creating here gets a chance to have its code optimized and 1287 // we are creating here gets a chance to have its code optimized and
1288 // doesn't just get a copy of the existing unoptimized code. 1288 // doesn't just get a copy of the existing unoptimized code.
1289 if (!FLAG_always_opt && 1289 if (!FLAG_always_opt &&
1290 !FLAG_prepare_always_opt && 1290 !FLAG_prepare_always_opt &&
1291 !pretenure && 1291 !pretenure &&
1292 scope()->is_function_scope() && 1292 scope()->is_function_scope() &&
1293 info->num_literals() == 0) { 1293 info->num_literals() == 0) {
1294 FastNewClosureStub stub(info->language_mode(), info->is_generator()); 1294 FastNewClosureStub stub(info->language_mode(), info->is_generator());
1295 __ Push(info); 1295 __ Move(rbx, info);
1296 __ CallStub(&stub); 1296 __ CallStub(&stub);
1297 } else { 1297 } else {
1298 __ push(rsi); 1298 __ push(rsi);
1299 __ Push(info); 1299 __ Push(info);
1300 __ Push(pretenure 1300 __ Push(pretenure
1301 ? isolate()->factory()->true_value() 1301 ? isolate()->factory()->true_value()
1302 : isolate()->factory()->false_value()); 1302 : isolate()->factory()->false_value());
1303 __ CallRuntime(Runtime::kNewClosure, 3); 1303 __ CallRuntime(Runtime::kNewClosure, 3);
1304 } 1304 }
1305 context()->Plug(rax); 1305 context()->Plug(rax);
(...skipping 3572 matching lines...) Expand 10 before | Expand all | Expand 10 after
4878 *context_length = 0; 4878 *context_length = 0;
4879 return previous_; 4879 return previous_;
4880 } 4880 }
4881 4881
4882 4882
4883 #undef __ 4883 #undef __
4884 4884
4885 } } // namespace v8::internal 4885 } } // namespace v8::internal
4886 4886
4887 #endif // V8_TARGET_ARCH_X64 4887 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698