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

Side by Side Diff: src/s390/macro-assembler-s390.cc

Issue 2780283002: PPC/s390: [async-iteration] implement AsyncGenerator (Closed)
Patch Set: Created 3 years, 8 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/s390/macro-assembler-s390.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 <assert.h> // For assert 5 #include <assert.h> // For assert
6 #include <limits.h> // For LONG_MIN, LONG_MAX. 6 #include <limits.h> // For LONG_MIN, LONG_MAX.
7 7
8 #if V8_TARGET_ARCH_S390 8 #if V8_TARGET_ARCH_S390
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2395 matching lines...) Expand 10 before | Expand all | Expand 10 after
2406 STATIC_ASSERT(kSmiTag == 0); 2406 STATIC_ASSERT(kSmiTag == 0);
2407 TestIfSmi(object); 2407 TestIfSmi(object);
2408 Check(ne, kOperandIsASmiAndNotAGeneratorObject, cr0); 2408 Check(ne, kOperandIsASmiAndNotAGeneratorObject, cr0);
2409 push(object); 2409 push(object);
2410 CompareObjectType(object, object, object, JS_GENERATOR_OBJECT_TYPE); 2410 CompareObjectType(object, object, object, JS_GENERATOR_OBJECT_TYPE);
2411 pop(object); 2411 pop(object);
2412 Check(eq, kOperandIsNotAGeneratorObject); 2412 Check(eq, kOperandIsNotAGeneratorObject);
2413 } 2413 }
2414 } 2414 }
2415 2415
2416 void MacroAssembler::AssertAsyncGeneratorObject(Register object) {
2417 if (emit_debug_code()) {
2418 STATIC_ASSERT(kSmiTag == 0);
2419 TestIfSmi(object);
2420 Check(ne, kOperandIsASmiAndNotAGeneratorObject);
2421 push(object);
2422 CompareObjectType(object, object, object, JS_ASYNC_GENERATOR_OBJECT_TYPE);
2423 pop(object);
2424 Check(eq, kOperandIsNotAGeneratorObject);
2425 }
2426 }
2427
2416 void MacroAssembler::AssertUndefinedOrAllocationSite(Register object, 2428 void MacroAssembler::AssertUndefinedOrAllocationSite(Register object,
2417 Register scratch) { 2429 Register scratch) {
2418 if (emit_debug_code()) { 2430 if (emit_debug_code()) {
2419 Label done_checking; 2431 Label done_checking;
2420 AssertNotSmi(object); 2432 AssertNotSmi(object);
2421 CompareRoot(object, Heap::kUndefinedValueRootIndex); 2433 CompareRoot(object, Heap::kUndefinedValueRootIndex);
2422 beq(&done_checking, Label::kNear); 2434 beq(&done_checking, Label::kNear);
2423 LoadP(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); 2435 LoadP(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
2424 CompareRoot(scratch, Heap::kAllocationSiteMapRootIndex); 2436 CompareRoot(scratch, Heap::kAllocationSiteMapRootIndex);
2425 Assert(eq, kExpectedUndefinedOrCell); 2437 Assert(eq, kExpectedUndefinedOrCell);
(...skipping 2934 matching lines...) Expand 10 before | Expand all | Expand 10 after
5360 } 5372 }
5361 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); 5373 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift));
5362 ExtractBit(r0, dividend, 31); 5374 ExtractBit(r0, dividend, 31);
5363 AddP(result, r0); 5375 AddP(result, r0);
5364 } 5376 }
5365 5377
5366 } // namespace internal 5378 } // namespace internal
5367 } // namespace v8 5379 } // namespace v8
5368 5380
5369 #endif // V8_TARGET_ARCH_S390 5381 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/s390/macro-assembler-s390.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698