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

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

Issue 9304001: Implement inlining of constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed moar comments by Vyacheslav Egorov. Created 8 years, 9 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/deoptimizer-x64.cc ('k') | src/x64/lithium-codegen-x64.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 Handle<JSGlobalPropertyCell> cell = 2286 Handle<JSGlobalPropertyCell> cell =
2287 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); 2287 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized);
2288 RecordTypeFeedbackCell(expr->id(), cell); 2288 RecordTypeFeedbackCell(expr->id(), cell);
2289 __ Move(rbx, cell); 2289 __ Move(rbx, cell);
2290 } else { 2290 } else {
2291 flags = NO_CALL_FUNCTION_FLAGS; 2291 flags = NO_CALL_FUNCTION_FLAGS;
2292 } 2292 }
2293 2293
2294 CallConstructStub stub(flags); 2294 CallConstructStub stub(flags);
2295 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); 2295 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
2296 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
2296 context()->Plug(rax); 2297 context()->Plug(rax);
2297 } 2298 }
2298 2299
2299 2300
2300 void FullCodeGenerator::EmitIsSmi(CallRuntime* expr) { 2301 void FullCodeGenerator::EmitIsSmi(CallRuntime* expr) {
2301 ZoneList<Expression*>* args = expr->arguments(); 2302 ZoneList<Expression*>* args = expr->arguments();
2302 ASSERT(args->length() == 1); 2303 ASSERT(args->length() == 1);
2303 2304
2304 VisitForAccumulatorValue(args->at(0)); 2305 VisitForAccumulatorValue(args->at(0));
2305 2306
(...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after
4365 *context_length = 0; 4366 *context_length = 0;
4366 return previous_; 4367 return previous_;
4367 } 4368 }
4368 4369
4369 4370
4370 #undef __ 4371 #undef __
4371 4372
4372 } } // namespace v8::internal 4373 } } // namespace v8::internal
4373 4374
4374 #endif // V8_TARGET_ARCH_X64 4375 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698