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

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

Issue 8932004: Implement target cache for constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Vyacheslav Egorov. Created 8 years, 10 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
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 3342 matching lines...) Expand 10 before | Expand all | Expand 10 after
3353 ASSERT(ToRegister(instr->result()).is(r0)); 3353 ASSERT(ToRegister(instr->result()).is(r0));
3354 __ LoadHeapObject(r1, instr->target()); 3354 __ LoadHeapObject(r1, instr->target());
3355 CallKnownFunction(instr->target(), instr->arity(), instr, CALL_AS_FUNCTION); 3355 CallKnownFunction(instr->target(), instr->arity(), instr, CALL_AS_FUNCTION);
3356 } 3356 }
3357 3357
3358 3358
3359 void LCodeGen::DoCallNew(LCallNew* instr) { 3359 void LCodeGen::DoCallNew(LCallNew* instr) {
3360 ASSERT(ToRegister(instr->InputAt(0)).is(r1)); 3360 ASSERT(ToRegister(instr->InputAt(0)).is(r1));
3361 ASSERT(ToRegister(instr->result()).is(r0)); 3361 ASSERT(ToRegister(instr->result()).is(r0));
3362 3362
3363 Handle<Code> builtin = isolate()->builtins()->JSConstructCall(); 3363 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS);
3364 __ mov(r0, Operand(instr->arity())); 3364 __ mov(r0, Operand(instr->arity()));
3365 CallCode(builtin, RelocInfo::CONSTRUCT_CALL, instr); 3365 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr);
3366 } 3366 }
3367 3367
3368 3368
3369 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { 3369 void LCodeGen::DoCallRuntime(LCallRuntime* instr) {
3370 CallRuntime(instr->function(), instr->arity(), instr); 3370 CallRuntime(instr->function(), instr->arity(), instr);
3371 } 3371 }
3372 3372
3373 3373
3374 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { 3374 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) {
3375 Register object = ToRegister(instr->object()); 3375 Register object = ToRegister(instr->object());
(...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after
4784 ASSERT(osr_pc_offset_ == -1); 4784 ASSERT(osr_pc_offset_ == -1);
4785 osr_pc_offset_ = masm()->pc_offset(); 4785 osr_pc_offset_ = masm()->pc_offset();
4786 } 4786 }
4787 4787
4788 4788
4789 4789
4790 4790
4791 #undef __ 4791 #undef __
4792 4792
4793 } } // namespace v8::internal 4793 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/builtins.h » ('j') | src/type-info.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698