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

Side by Side Diff: src/mips/stub-cache-mips.cc

Issue 12077009: MIPS: Replace store array length builtin with codestub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « src/mips/ic-mips.cc ('k') | no next file » | 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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 572
573 void StubCompiler::GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind) { 573 void StubCompiler::GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind) {
574 ASSERT(kind == Code::LOAD_IC || kind == Code::KEYED_LOAD_IC); 574 ASSERT(kind == Code::LOAD_IC || kind == Code::KEYED_LOAD_IC);
575 Handle<Code> code = (kind == Code::LOAD_IC) 575 Handle<Code> code = (kind == Code::LOAD_IC)
576 ? masm->isolate()->builtins()->LoadIC_Miss() 576 ? masm->isolate()->builtins()->LoadIC_Miss()
577 : masm->isolate()->builtins()->KeyedLoadIC_Miss(); 577 : masm->isolate()->builtins()->KeyedLoadIC_Miss();
578 __ Jump(code, RelocInfo::CODE_TARGET); 578 __ Jump(code, RelocInfo::CODE_TARGET);
579 } 579 }
580 580
581 581
582 void StubCompiler::GenerateStoreMiss(MacroAssembler* masm, Code::Kind kind) {
583 ASSERT(kind == Code::STORE_IC || kind == Code::KEYED_STORE_IC);
584 Handle<Code> code = (kind == Code::STORE_IC)
585 ? masm->isolate()->builtins()->StoreIC_Miss()
586 : masm->isolate()->builtins()->KeyedStoreIC_Miss();
587 __ Jump(code, RelocInfo::CODE_TARGET);
588 }
589
590
582 static void GenerateCallFunction(MacroAssembler* masm, 591 static void GenerateCallFunction(MacroAssembler* masm,
583 Handle<Object> object, 592 Handle<Object> object,
584 const ParameterCount& arguments, 593 const ParameterCount& arguments,
585 Label* miss, 594 Label* miss,
586 Code::ExtraICState extra_ic_state) { 595 Code::ExtraICState extra_ic_state) {
587 // ----------- S t a t e ------------- 596 // ----------- S t a t e -------------
588 // -- a0: receiver 597 // -- a0: receiver
589 // -- a1: function to call 598 // -- a1: function to call
590 // ----------------------------------- 599 // -----------------------------------
591 // Check that the function really is a function. 600 // Check that the function really is a function.
(...skipping 3767 matching lines...) Expand 10 before | Expand all | Expand 10 after
4359 __ Jump(ic_slow, RelocInfo::CODE_TARGET); 4368 __ Jump(ic_slow, RelocInfo::CODE_TARGET);
4360 } 4369 }
4361 } 4370 }
4362 4371
4363 4372
4364 #undef __ 4373 #undef __
4365 4374
4366 } } // namespace v8::internal 4375 } } // namespace v8::internal
4367 4376
4368 #endif // V8_TARGET_ARCH_MIPS 4377 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698