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

Side by Side Diff: src/ia32/full-codegen-ia32.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/ia32/deoptimizer-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.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 2315 matching lines...) Expand 10 before | Expand all | Expand 10 after
2326 Handle<JSGlobalPropertyCell> cell = 2326 Handle<JSGlobalPropertyCell> cell =
2327 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); 2327 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized);
2328 RecordTypeFeedbackCell(expr->id(), cell); 2328 RecordTypeFeedbackCell(expr->id(), cell);
2329 __ mov(ebx, cell); 2329 __ mov(ebx, cell);
2330 } else { 2330 } else {
2331 flags = NO_CALL_FUNCTION_FLAGS; 2331 flags = NO_CALL_FUNCTION_FLAGS;
2332 } 2332 }
2333 2333
2334 CallConstructStub stub(flags); 2334 CallConstructStub stub(flags);
2335 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); 2335 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
2336 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
2336 context()->Plug(eax); 2337 context()->Plug(eax);
2337 } 2338 }
2338 2339
2339 2340
2340 void FullCodeGenerator::EmitIsSmi(CallRuntime* expr) { 2341 void FullCodeGenerator::EmitIsSmi(CallRuntime* expr) {
2341 ZoneList<Expression*>* args = expr->arguments(); 2342 ZoneList<Expression*>* args = expr->arguments();
2342 ASSERT(args->length() == 1); 2343 ASSERT(args->length() == 1);
2343 2344
2344 VisitForAccumulatorValue(args->at(0)); 2345 VisitForAccumulatorValue(args->at(0));
2345 2346
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after
4385 *context_length = 0; 4386 *context_length = 0;
4386 return previous_; 4387 return previous_;
4387 } 4388 }
4388 4389
4389 4390
4390 #undef __ 4391 #undef __
4391 4392
4392 } } // namespace v8::internal 4393 } } // namespace v8::internal
4393 4394
4394 #endif // V8_TARGET_ARCH_IA32 4395 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698