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

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

Issue 2743803002: s390: implement atomic exchange on TF (Closed)
Patch Set: small fix Created 3 years, 9 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 | « no previous file | src/compiler/s390/code-generator-s390.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/builtins/builtins-utils.h" 5 #include "src/builtins/builtins-utils.h"
6 #include "src/builtins/builtins.h" 6 #include "src/builtins/builtins.h"
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stub-assembler.h" 8 #include "src/code-stub-assembler.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 Node* index_integer; 277 Node* index_integer;
278 Node* index_word32 = 278 Node* index_word32 =
279 ConvertTaggedAtomicIndexToWord32(index, context, &index_integer); 279 ConvertTaggedAtomicIndexToWord32(index, context, &index_integer);
280 Node* array_length_word32 = TruncateTaggedToWord32( 280 Node* array_length_word32 = TruncateTaggedToWord32(
281 context, LoadObjectField(array, JSTypedArray::kLengthOffset)); 281 context, LoadObjectField(array, JSTypedArray::kLengthOffset));
282 ValidateAtomicIndex(index_word32, array_length_word32, context); 282 ValidateAtomicIndex(index_word32, array_length_word32, context);
283 283
284 Node* value_integer = ToInteger(context, value); 284 Node* value_integer = ToInteger(context, value);
285 285
286 #if V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC64 || \ 286 #if V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC64 || \
287 V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_S390 || V8_TARGET_ARCH_S390X 287 V8_TARGET_ARCH_PPC
288 Return(CallRuntime(Runtime::kAtomicsExchange, context, array, index_integer, 288 Return(CallRuntime(Runtime::kAtomicsExchange, context, array, index_integer,
289 value_integer)); 289 value_integer));
290 #else 290 #else
291 Node* index_word = ChangeUint32ToWord(index_word32); 291 Node* index_word = ChangeUint32ToWord(index_word32);
292 292
293 Node* value_word32 = TruncateTaggedToWord32(context, value_integer); 293 Node* value_word32 = TruncateTaggedToWord32(context, value_integer);
294 294
295 Label i8(this), u8(this), i16(this), u16(this), i32(this), u32(this), 295 Label i8(this), u8(this), i16(this), u16(this), i32(this), u32(this),
296 other(this); 296 other(this);
297 int32_t case_values[] = { 297 int32_t case_values[] = {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 332
333 // This shouldn't happen, we've already validated the type. 333 // This shouldn't happen, we've already validated the type.
334 Bind(&other); 334 Bind(&other);
335 Unreachable(); 335 Unreachable();
336 #endif // V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC64 336 #endif // V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC64
337 // || V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_S390 || V8_TARGET_ARCH_S390X 337 // || V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_S390 || V8_TARGET_ARCH_S390X
338 } 338 }
339 339
340 } // namespace internal 340 } // namespace internal
341 } // namespace v8 341 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/s390/code-generator-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698