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

Side by Side Diff: src/crankshaft/mips/lithium-codegen-mips.cc

Issue 2465253011: Fastpath some spread-call desugaring. (Closed)
Patch Set: Use functions for testing initial_* objects Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after
2777 Label done; 2777 Label done;
2778 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); 2778 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex);
2779 __ Branch(&done, ne, result, Operand(scratch)); 2779 __ Branch(&done, ne, result, Operand(scratch));
2780 if (info()->IsStub()) { 2780 if (info()->IsStub()) {
2781 // A stub can safely convert the hole to undefined only if the array 2781 // A stub can safely convert the hole to undefined only if the array
2782 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise 2782 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise
2783 // it needs to bail out. 2783 // it needs to bail out.
2784 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); 2784 __ LoadRoot(result, Heap::kArrayProtectorRootIndex);
2785 __ lw(result, FieldMemOperand(result, Cell::kValueOffset)); 2785 __ lw(result, FieldMemOperand(result, Cell::kValueOffset));
2786 DeoptimizeIf(ne, instr, DeoptimizeReason::kHole, result, 2786 DeoptimizeIf(ne, instr, DeoptimizeReason::kHole, result,
2787 Operand(Smi::FromInt(Isolate::kArrayProtectorValid))); 2787 Operand(Smi::FromInt(Isolate::kProtectorValid)));
2788 } 2788 }
2789 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); 2789 __ LoadRoot(result, Heap::kUndefinedValueRootIndex);
2790 __ bind(&done); 2790 __ bind(&done);
2791 } 2791 }
2792 } 2792 }
2793 2793
2794 2794
2795 void LCodeGen::DoLoadKeyed(LLoadKeyed* instr) { 2795 void LCodeGen::DoLoadKeyed(LLoadKeyed* instr) {
2796 if (instr->is_fixed_typed_array()) { 2796 if (instr->is_fixed_typed_array()) {
2797 DoLoadKeyedExternalArray(instr); 2797 DoLoadKeyedExternalArray(instr);
(...skipping 2599 matching lines...) Expand 10 before | Expand all | Expand 10 after
5397 __ lw(result, FieldMemOperand(scratch, 5397 __ lw(result, FieldMemOperand(scratch,
5398 FixedArray::kHeaderSize - kPointerSize)); 5398 FixedArray::kHeaderSize - kPointerSize));
5399 __ bind(deferred->exit()); 5399 __ bind(deferred->exit());
5400 __ bind(&done); 5400 __ bind(&done);
5401 } 5401 }
5402 5402
5403 #undef __ 5403 #undef __
5404 5404
5405 } // namespace internal 5405 } // namespace internal
5406 } // namespace v8 5406 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698