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

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

Issue 2206333003: [stubs] Convert GrowElementsStub to TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « src/crankshaft/ia32/lithium-ia32.h ('k') | src/crankshaft/mips/lithium-mips.h » ('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.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 4108 matching lines...) Expand 10 before | Expand all | Expand 10 after
4119 } else { 4119 } else {
4120 // We should never get here at runtime because there is a smi check on 4120 // We should never get here at runtime because there is a smi check on
4121 // the key before this point. 4121 // the key before this point.
4122 __ stop("expected smi"); 4122 __ stop("expected smi");
4123 } 4123 }
4124 } else { 4124 } else {
4125 __ mov(a3, ToRegister(key)); 4125 __ mov(a3, ToRegister(key));
4126 __ SmiTag(a3); 4126 __ SmiTag(a3);
4127 } 4127 }
4128 4128
4129 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->is_js_array(), 4129 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->kind());
4130 instr->hydrogen()->kind());
4131 __ mov(a0, result); 4130 __ mov(a0, result);
4132 __ CallStub(&stub); 4131 __ CallStub(&stub);
4133 RecordSafepointWithLazyDeopt( 4132 RecordSafepointWithLazyDeopt(
4134 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); 4133 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS);
4135 __ StoreToSafepointRegisterSlot(result, result); 4134 __ StoreToSafepointRegisterSlot(result, result);
4136 } 4135 }
4137 4136
4138 // Deopt on smi, which means the elements array changed to dictionary mode. 4137 // Deopt on smi, which means the elements array changed to dictionary mode.
4139 __ SmiTst(result, at); 4138 __ SmiTst(result, at);
4140 DeoptimizeIf(eq, instr, DeoptimizeReason::kSmi, at, Operand(zero_reg)); 4139 DeoptimizeIf(eq, instr, DeoptimizeReason::kSmi, at, Operand(zero_reg));
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
5539 __ lw(result, FieldMemOperand(scratch, 5538 __ lw(result, FieldMemOperand(scratch,
5540 FixedArray::kHeaderSize - kPointerSize)); 5539 FixedArray::kHeaderSize - kPointerSize));
5541 __ bind(deferred->exit()); 5540 __ bind(deferred->exit());
5542 __ bind(&done); 5541 __ bind(&done);
5543 } 5542 }
5544 5543
5545 #undef __ 5544 #undef __
5546 5545
5547 } // namespace internal 5546 } // namespace internal
5548 } // namespace v8 5547 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-ia32.h ('k') | src/crankshaft/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698