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

Side by Side Diff: src/mips64/full-codegen-mips64.cc

Issue 873973003: Add missing FrameState for Runtime_CreateArrayLiteral. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Port to other architectures. Created 5 years, 10 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/mips/full-codegen-mips.cc ('k') | src/ppc/full-codegen-ppc.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 // 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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1871 __ li(a2, Operand(Smi::FromInt(expr->literal_index()))); 1871 __ li(a2, Operand(Smi::FromInt(expr->literal_index())));
1872 __ li(a1, Operand(constant_elements)); 1872 __ li(a1, Operand(constant_elements));
1873 if (expr->depth() > 1 || length > JSObject::kInitialMaxFastElementArray) { 1873 if (expr->depth() > 1 || length > JSObject::kInitialMaxFastElementArray) {
1874 __ li(a0, Operand(Smi::FromInt(flags))); 1874 __ li(a0, Operand(Smi::FromInt(flags)));
1875 __ Push(a3, a2, a1, a0); 1875 __ Push(a3, a2, a1, a0);
1876 __ CallRuntime(Runtime::kCreateArrayLiteral, 4); 1876 __ CallRuntime(Runtime::kCreateArrayLiteral, 4);
1877 } else { 1877 } else {
1878 FastCloneShallowArrayStub stub(isolate(), allocation_site_mode); 1878 FastCloneShallowArrayStub stub(isolate(), allocation_site_mode);
1879 __ CallStub(&stub); 1879 __ CallStub(&stub);
1880 } 1880 }
1881 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG);
1881 1882
1882 bool result_saved = false; // Is the result saved to the stack? 1883 bool result_saved = false; // Is the result saved to the stack?
1883 1884
1884 // Emit code to evaluate all the non-constant subexpressions and to store 1885 // Emit code to evaluate all the non-constant subexpressions and to store
1885 // them into the newly cloned array. 1886 // them into the newly cloned array.
1886 for (int i = 0; i < length; i++) { 1887 for (int i = 0; i < length; i++) {
1887 Expression* subexpr = subexprs->at(i); 1888 Expression* subexpr = subexprs->at(i);
1888 // If the subexpression is a literal or a simple materialized literal it 1889 // If the subexpression is a literal or a simple materialized literal it
1889 // is already set in the cloned array. 1890 // is already set in the cloned array.
1890 if (CompileTimeValue::IsCompileTimeValue(subexpr)) continue; 1891 if (CompileTimeValue::IsCompileTimeValue(subexpr)) continue;
(...skipping 3461 matching lines...) Expand 10 before | Expand all | Expand 10 after
5352 Assembler::target_address_at(pc_immediate_load_address)) == 5353 Assembler::target_address_at(pc_immediate_load_address)) ==
5353 reinterpret_cast<uint64_t>( 5354 reinterpret_cast<uint64_t>(
5354 isolate->builtins()->OsrAfterStackCheck()->entry())); 5355 isolate->builtins()->OsrAfterStackCheck()->entry()));
5355 return OSR_AFTER_STACK_CHECK; 5356 return OSR_AFTER_STACK_CHECK;
5356 } 5357 }
5357 5358
5358 5359
5359 } } // namespace v8::internal 5360 } } // namespace v8::internal
5360 5361
5361 #endif // V8_TARGET_ARCH_MIPS64 5362 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698