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

Side by Side Diff: src/mips64/macro-assembler-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 | « src/mips64/builtins-mips64.cc ('k') | src/objects.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. 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 <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
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 3073 matching lines...) Expand 10 before | Expand all | Expand 10 after
3084 Daddu(sp, sp, Operand(StackHandlerConstants::kSize - kPointerSize)); 3084 Daddu(sp, sp, Operand(StackHandlerConstants::kSize - kPointerSize));
3085 li(at, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); 3085 li(at, Operand(ExternalReference(Isolate::kHandlerAddress, isolate())));
3086 sd(a1, MemOperand(at)); 3086 sd(a1, MemOperand(at));
3087 } 3087 }
3088 3088
3089 3089
3090 void MacroAssembler::JumpToHandlerEntry() { 3090 void MacroAssembler::JumpToHandlerEntry() {
3091 // Compute the handler entry address and jump to it. The handler table is 3091 // Compute the handler entry address and jump to it. The handler table is
3092 // a fixed array of (smi-tagged) code offsets. 3092 // a fixed array of (smi-tagged) code offsets.
3093 // v0 = exception, a1 = code object, a2 = state. 3093 // v0 = exception, a1 = code object, a2 = state.
3094 Uld(a3, FieldMemOperand(a1, Code::kHandlerTableOffset)); 3094 ld(a3, FieldMemOperand(a1, Code::kHandlerTableOffset));
3095 Daddu(a3, a3, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); 3095 Daddu(a3, a3, Operand(FixedArray::kHeaderSize - kHeapObjectTag));
3096 dsrl(a2, a2, StackHandler::kKindWidth); // Handler index. 3096 dsrl(a2, a2, StackHandler::kKindWidth); // Handler index.
3097 dsll(a2, a2, kPointerSizeLog2); 3097 dsll(a2, a2, kPointerSizeLog2);
3098 Daddu(a2, a3, a2); 3098 Daddu(a2, a3, a2);
3099 ld(a2, MemOperand(a2)); // Smi-tagged offset. 3099 ld(a2, MemOperand(a2)); // Smi-tagged offset.
3100 Daddu(a1, a1, Operand(Code::kHeaderSize - kHeapObjectTag)); // Code start. 3100 Daddu(a1, a1, Operand(Code::kHeaderSize - kHeapObjectTag)); // Code start.
3101 dsra32(t9, a2, 0); 3101 dsra32(t9, a2, 0);
3102 Daddu(t9, t9, a1); 3102 Daddu(t9, t9, a1);
3103 Jump(t9); // Jump. 3103 Jump(t9); // Jump.
3104 } 3104 }
(...skipping 2982 matching lines...) Expand 10 before | Expand all | Expand 10 after
6087 } 6087 }
6088 if (mag.shift > 0) sra(result, result, mag.shift); 6088 if (mag.shift > 0) sra(result, result, mag.shift);
6089 srl(at, dividend, 31); 6089 srl(at, dividend, 31);
6090 Addu(result, result, Operand(at)); 6090 Addu(result, result, Operand(at));
6091 } 6091 }
6092 6092
6093 6093
6094 } } // namespace v8::internal 6094 } } // namespace v8::internal
6095 6095
6096 #endif // V8_TARGET_ARCH_MIPS64 6096 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698