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

Side by Side Diff: src/crankshaft/ppc/lithium-codegen-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ppc/lithium-codegen-ppc.h" 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 3111 matching lines...) Expand 10 before | Expand all | Expand 10 after
3122 DeoptimizeIf(eq, instr, Deoptimizer::kHole); 3122 DeoptimizeIf(eq, instr, Deoptimizer::kHole);
3123 } 3123 }
3124 } else if (instr->hydrogen()->hole_mode() == CONVERT_HOLE_TO_UNDEFINED) { 3124 } else if (instr->hydrogen()->hole_mode() == CONVERT_HOLE_TO_UNDEFINED) {
3125 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS); 3125 DCHECK(instr->hydrogen()->elements_kind() == FAST_HOLEY_ELEMENTS);
3126 Label done; 3126 Label done;
3127 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex); 3127 __ LoadRoot(scratch, Heap::kTheHoleValueRootIndex);
3128 __ cmp(result, scratch); 3128 __ cmp(result, scratch);
3129 __ bne(&done); 3129 __ bne(&done);
3130 if (info()->IsStub()) { 3130 if (info()->IsStub()) {
3131 // A stub can safely convert the hole to undefined only if the array 3131 // A stub can safely convert the hole to undefined only if the array
3132 // protector cell contains (Smi) Isolate::kArrayProtectorValid. Otherwise 3132 // protector cell contains (Smi) Isolate::kArrayProtectorValid.
3133 // it needs to bail out. 3133 // Otherwise it needs to bail out.
3134 __ LoadRoot(result, Heap::kArrayProtectorRootIndex); 3134 __ LoadRoot(result, Heap::kArrayProtectorRootIndex);
3135 __ LoadP(result, FieldMemOperand(result, Cell::kValueOffset)); 3135 __ LoadP(result, FieldMemOperand(result, Cell::kValueOffset));
3136 __ CmpSmiLiteral(result, Smi::FromInt(Isolate::kArrayProtectorValid), r0); 3136 __ CmpSmiLiteral(result, Smi::FromInt(Isolate::kArrayProtectorValid), r0);
3137 DeoptimizeIf(ne, instr, Deoptimizer::kHole); 3137 DeoptimizeIf(ne, instr, Deoptimizer::kHole);
3138 } 3138 }
3139 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); 3139 __ LoadRoot(result, Heap::kUndefinedValueRootIndex);
3140 __ bind(&done); 3140 __ bind(&done);
3141 } 3141 }
3142 } 3142 }
3143 3143
(...skipping 2612 matching lines...) Expand 10 before | Expand all | Expand 10 after
5756 5756
5757 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { 5757 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5758 Register context = ToRegister(instr->context()); 5758 Register context = ToRegister(instr->context());
5759 __ StoreP(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); 5759 __ StoreP(context, MemOperand(fp, StandardFrameConstants::kContextOffset));
5760 } 5760 }
5761 5761
5762 5762
5763 #undef __ 5763 #undef __
5764 } // namespace internal 5764 } // namespace internal
5765 } // namespace v8 5765 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698