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

Side by Side Diff: src/mips/full-codegen-mips.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/lithium.h ('k') | src/mips/lithium-codegen-mips.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 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after
2412 Handle<JSGlobalPropertyCell> cell = 2412 Handle<JSGlobalPropertyCell> cell =
2413 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); 2413 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized);
2414 RecordTypeFeedbackCell(expr->id(), cell); 2414 RecordTypeFeedbackCell(expr->id(), cell);
2415 __ li(a2, Operand(cell)); 2415 __ li(a2, Operand(cell));
2416 } else { 2416 } else {
2417 flags = NO_CALL_FUNCTION_FLAGS; 2417 flags = NO_CALL_FUNCTION_FLAGS;
2418 } 2418 }
2419 2419
2420 CallConstructStub stub(flags); 2420 CallConstructStub stub(flags);
2421 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); 2421 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
2422 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
2422 context()->Plug(v0); 2423 context()->Plug(v0);
2423 } 2424 }
2424 2425
2425 2426
2426 void FullCodeGenerator::EmitIsSmi(CallRuntime* expr) { 2427 void FullCodeGenerator::EmitIsSmi(CallRuntime* expr) {
2427 ZoneList<Expression*>* args = expr->arguments(); 2428 ZoneList<Expression*>* args = expr->arguments();
2428 ASSERT(args->length() == 1); 2429 ASSERT(args->length() == 1);
2429 2430
2430 VisitForAccumulatorValue(args->at(0)); 2431 VisitForAccumulatorValue(args->at(0));
2431 2432
(...skipping 2007 matching lines...) Expand 10 before | Expand all | Expand 10 after
4439 *context_length = 0; 4440 *context_length = 0;
4440 return previous_; 4441 return previous_;
4441 } 4442 }
4442 4443
4443 4444
4444 #undef __ 4445 #undef __
4445 4446
4446 } } // namespace v8::internal 4447 } } // namespace v8::internal
4447 4448
4448 #endif // V8_TARGET_ARCH_MIPS 4449 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/lithium.h ('k') | src/mips/lithium-codegen-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698