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

Side by Side Diff: src/mips64/builtins-mips64.cc

Issue 682673002: Make NextCodeLink pointer 8-byte aligned after GC pointer updating uses atomics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/mips64/macro-assembler-mips64.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 5
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 // Pass function as argument. 1037 // Pass function as argument.
1038 __ push(a0); 1038 __ push(a0);
1039 __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1); 1039 __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1);
1040 } 1040 }
1041 1041
1042 // If the code object is null, just return to the unoptimized code. 1042 // If the code object is null, just return to the unoptimized code.
1043 __ Ret(eq, v0, Operand(Smi::FromInt(0))); 1043 __ Ret(eq, v0, Operand(Smi::FromInt(0)));
1044 1044
1045 // Load deoptimization data from the code object. 1045 // Load deoptimization data from the code object.
1046 // <deopt_data> = <code>[#deoptimization_data_offset] 1046 // <deopt_data> = <code>[#deoptimization_data_offset]
1047 __ Uld(a1, MemOperand(v0, Code::kDeoptimizationDataOffset - kHeapObjectTag)); 1047 __ ld(a1, MemOperand(v0, Code::kDeoptimizationDataOffset - kHeapObjectTag));
1048 1048
1049 // Load the OSR entrypoint offset from the deoptimization data. 1049 // Load the OSR entrypoint offset from the deoptimization data.
1050 // <osr_offset> = <deopt_data>[#header_size + #osr_pc_offset] 1050 // <osr_offset> = <deopt_data>[#header_size + #osr_pc_offset]
1051 __ ld(a1, MemOperand(a1, FixedArray::OffsetOfElementAt( 1051 __ ld(a1, MemOperand(a1, FixedArray::OffsetOfElementAt(
1052 DeoptimizationInputData::kOsrPcOffsetIndex) - kHeapObjectTag)); 1052 DeoptimizationInputData::kOsrPcOffsetIndex) - kHeapObjectTag));
1053 __ SmiUntag(a1); 1053 __ SmiUntag(a1);
1054 1054
1055 // Compute the target address = code_obj + header_size + osr_offset 1055 // Compute the target address = code_obj + header_size + osr_offset
1056 // <entry_addr> = <code_obj> + #header_size + <osr_offset> 1056 // <entry_addr> = <code_obj> + #header_size + <osr_offset>
1057 __ daddu(v0, v0, a1); 1057 __ daddu(v0, v0, a1);
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 __ break_(0xCC); 1587 __ break_(0xCC);
1588 } 1588 }
1589 } 1589 }
1590 1590
1591 1591
1592 #undef __ 1592 #undef __
1593 1593
1594 } } // namespace v8::internal 1594 } } // namespace v8::internal
1595 1595
1596 #endif // V8_TARGET_ARCH_MIPS64 1596 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « no previous file | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698