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

Side by Side Diff: src/ic/s390/ic-s390.cc

Issue 1909433003: Remove support for Object.observe (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 4 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/ic/ppc/ic-ppc.cc ('k') | src/ic/x64/ic-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #if V8_TARGET_ARCH_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/ic/ic.h" 7 #include "src/ic/ic.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/ic/ic-compiler.h" 9 #include "src/ic/ic-compiler.h"
10 #include "src/ic/stub-cache.h" 10 #include "src/ic/stub-cache.h"
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 Register elements_map = r8; 618 Register elements_map = r8;
619 Register elements = r9; // Elements array of the receiver. 619 Register elements = r9; // Elements array of the receiver.
620 // r6 and r7 are used as general scratch registers. 620 // r6 and r7 are used as general scratch registers.
621 621
622 // Check that the key is a smi. 622 // Check that the key is a smi.
623 __ JumpIfNotSmi(key, &maybe_name_key); 623 __ JumpIfNotSmi(key, &maybe_name_key);
624 // Check that the object isn't a smi. 624 // Check that the object isn't a smi.
625 __ JumpIfSmi(receiver, &slow); 625 __ JumpIfSmi(receiver, &slow);
626 // Get the map of the object. 626 // Get the map of the object.
627 __ LoadP(receiver_map, FieldMemOperand(receiver, HeapObject::kMapOffset)); 627 __ LoadP(receiver_map, FieldMemOperand(receiver, HeapObject::kMapOffset));
628 // Check that the receiver does not require access checks and is not observed. 628 // Check that the receiver does not require access checks.
629 // The generic stub does not perform map checks or handle observed objects. 629 // The generic stub does not perform map checks.
630 __ LoadlB(ip, FieldMemOperand(receiver_map, Map::kBitFieldOffset)); 630 __ LoadlB(ip, FieldMemOperand(receiver_map, Map::kBitFieldOffset));
631 __ AndP(r0, ip, 631 __ AndP(r0, ip, Operand(1 << Map::kIsAccessCheckNeeded));
632 Operand(1 << Map::kIsAccessCheckNeeded | 1 << Map::kIsObserved));
633 __ bne(&slow, Label::kNear); 632 __ bne(&slow, Label::kNear);
634 // Check if the object is a JS array or not. 633 // Check if the object is a JS array or not.
635 __ LoadlB(r6, FieldMemOperand(receiver_map, Map::kInstanceTypeOffset)); 634 __ LoadlB(r6, FieldMemOperand(receiver_map, Map::kInstanceTypeOffset));
636 __ CmpP(r6, Operand(JS_ARRAY_TYPE)); 635 __ CmpP(r6, Operand(JS_ARRAY_TYPE));
637 __ beq(&array); 636 __ beq(&array);
638 // Check that the object is some kind of JSObject. 637 // Check that the object is some kind of JSObject.
639 __ CmpP(r6, Operand(FIRST_JS_OBJECT_TYPE)); 638 __ CmpP(r6, Operand(FIRST_JS_OBJECT_TYPE));
640 __ blt(&slow, Label::kNear); 639 __ blt(&slow, Label::kNear);
641 640
642 // Object case: Check key against length in the elements array. 641 // Object case: Check key against length in the elements array.
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 patcher.masm()->brcl(cc, Operand((branch_instr & 0xffffffff) << 1)); 887 patcher.masm()->brcl(cc, Operand((branch_instr & 0xffffffff) << 1));
889 } else { 888 } else {
890 DCHECK(false); 889 DCHECK(false);
891 } 890 }
892 } 891 }
893 892
894 } // namespace internal 893 } // namespace internal
895 } // namespace v8 894 } // namespace v8
896 895
897 #endif // V8_TARGET_ARCH_S390 896 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/ic/ppc/ic-ppc.cc ('k') | src/ic/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698