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

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

Issue 1409123003: [runtime] Avoid @@isConcatSpreadable lookup for fast path Array.prototype.concat (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: merging with master Created 4 years, 8 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 3056 matching lines...) Expand 10 before | Expand all | Expand 10 after
3067 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); 3067 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex);
3068 DeoptimizeIf(eq, instr, Deoptimizer::kHole, result, Operand(scratch)); 3068 DeoptimizeIf(eq, instr, Deoptimizer::kHole, result, Operand(scratch));
3069 } 3069 }
3070 } else if (instr->hydrogen()->hole_mode() == CONVERT_HOLE_TO_UNDEFINED) { 3070 } else if (instr->hydrogen()->hole_mode() == CONVERT_HOLE_TO_UNDEFINED) {
3071 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS); 3071 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS);
3072 Label done; 3072 Label done;
3073 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); 3073 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex);
3074 __ Branch(&done, ne, result, Operand(scratch)); 3074 __ Branch(&done, ne, result, Operand(scratch));
3075 if (info()->IsStub()) { 3075 if (info()->IsStub()) {
3076 // A stub can safely convert the hole to undefined only if the array 3076 // A stub can safely convert the hole to undefined only if the array
3077 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise 3077 // protector cell contains (Smi) Isolate::kArrayProtectorValid.
3078 // it needs to bail out. 3078 // Otherwise it needs to bail out.
3079 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); 3079 __ LoadRoot(result, Heap::kArrayProtectorRootIndex);
3080 // The comparison only needs LS bits of value, which is a smi. 3080 // The comparison only needs LS bits of value, which is a smi.
3081 __ ld(result, FieldMemOperand(result, Cell::kValueOffset)); 3081 __ ld(result, FieldMemOperand(result, Cell::kValueOffset));
3082 DeoptimizeIf(ne, instr, Deoptimizer::kHole, result, 3082 DeoptimizeIf(ne, instr, Deoptimizer::kHole, result,
3083 Operand(Smi::FromInt(Isolate::kArrayProtectorValid))); 3083 Operand(Smi::FromInt(Isolate::kArrayProtectorValid)));
3084 } 3084 }
3085 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); 3085 __ LoadRoot(result, Heap::kUndefinedValueRootIndex);
3086 __ bind(&done); 3086 __ bind(&done);
3087 } 3087 }
3088 } 3088 }
(...skipping 2675 matching lines...) Expand 10 before | Expand all | Expand 10 after
5764 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { 5764 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5765 Register context = ToRegister(instr->context()); 5765 Register context = ToRegister(instr->context());
5766 __ sd(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); 5766 __ sd(context, MemOperand(fp, StandardFrameConstants::kContextOffset));
5767 } 5767 }
5768 5768
5769 5769
5770 #undef __ 5770 #undef __
5771 5771
5772 } // namespace internal 5772 } // namespace internal
5773 } // namespace v8 5773 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698