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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 23890030: Rollback trunk to 3.21.15. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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/builtins-mips.cc ('k') | src/mips/codegen-mips.cc » ('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 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 2777 matching lines...) Expand 10 before | Expand all | Expand 10 after
2788 // v0: result parameter for PerformGC, if any 2788 // v0: result parameter for PerformGC, if any
2789 // s0: number of arguments including receiver (C callee-saved) 2789 // s0: number of arguments including receiver (C callee-saved)
2790 // s1: pointer to the first argument (C callee-saved) 2790 // s1: pointer to the first argument (C callee-saved)
2791 // s2: pointer to builtin function (C callee-saved) 2791 // s2: pointer to builtin function (C callee-saved)
2792 2792
2793 Isolate* isolate = masm->isolate(); 2793 Isolate* isolate = masm->isolate();
2794 2794
2795 if (do_gc) { 2795 if (do_gc) {
2796 // Move result passed in v0 into a0 to call PerformGC. 2796 // Move result passed in v0 into a0 to call PerformGC.
2797 __ mov(a0, v0); 2797 __ mov(a0, v0);
2798 __ PrepareCallCFunction(2, 0, a1); 2798 __ PrepareCallCFunction(1, 0, a1);
2799 __ li(a1, Operand(ExternalReference::isolate_address(masm->isolate()))); 2799 __ CallCFunction(ExternalReference::perform_gc_function(isolate), 1, 0);
2800 __ CallCFunction(ExternalReference::perform_gc_function(isolate), 2, 0);
2801 } 2800 }
2802 2801
2803 ExternalReference scope_depth = 2802 ExternalReference scope_depth =
2804 ExternalReference::heap_always_allocate_scope_depth(isolate); 2803 ExternalReference::heap_always_allocate_scope_depth(isolate);
2805 if (always_allocate) { 2804 if (always_allocate) {
2806 __ li(a0, Operand(scope_depth)); 2805 __ li(a0, Operand(scope_depth));
2807 __ lw(a1, MemOperand(a0)); 2806 __ lw(a1, MemOperand(a0));
2808 __ Addu(a1, a1, Operand(1)); 2807 __ Addu(a1, a1, Operand(1));
2809 __ sw(a1, MemOperand(a0)); 2808 __ sw(a1, MemOperand(a0));
2810 } 2809 }
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
3402 ASSERT(kind() == Code::LOAD_IC); 3401 ASSERT(kind() == Code::LOAD_IC);
3403 // ----------- S t a t e ------------- 3402 // ----------- S t a t e -------------
3404 // -- a2 : name 3403 // -- a2 : name
3405 // -- ra : return address 3404 // -- ra : return address
3406 // -- a0 : receiver 3405 // -- a0 : receiver
3407 // -- sp[0] : receiver 3406 // -- sp[0] : receiver
3408 // ----------------------------------- 3407 // -----------------------------------
3409 receiver = a0; 3408 receiver = a0;
3410 } 3409 }
3411 3410
3412 StubCompiler::GenerateLoadStringLength(masm, receiver, a3, t0, &miss); 3411 StubCompiler::GenerateLoadStringLength(masm, receiver, a3, t0, &miss,
3412 support_wrapper_);
3413 3413
3414 __ bind(&miss); 3414 __ bind(&miss);
3415 StubCompiler::TailCallBuiltin( 3415 StubCompiler::TailCallBuiltin(
3416 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); 3416 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind()));
3417 } 3417 }
3418 3418
3419 3419
3420 void StoreArrayLengthStub::Generate(MacroAssembler* masm) { 3420 void StoreArrayLengthStub::Generate(MacroAssembler* masm) {
3421 // This accepts as a receiver anything JSArray::SetElementsLength accepts 3421 // This accepts as a receiver anything JSArray::SetElementsLength accepts
3422 // (currently anything except for external arrays which means anything with 3422 // (currently anything except for external arrays which means anything with
(...skipping 3858 matching lines...) Expand 10 before | Expand all | Expand 10 after
7281 __ bind(&fast_elements_case); 7281 __ bind(&fast_elements_case);
7282 GenerateCase(masm, FAST_ELEMENTS); 7282 GenerateCase(masm, FAST_ELEMENTS);
7283 } 7283 }
7284 7284
7285 7285
7286 #undef __ 7286 #undef __
7287 7287
7288 } } // namespace v8::internal 7288 } } // namespace v8::internal
7289 7289
7290 #endif // V8_TARGET_ARCH_MIPS 7290 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips/codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698