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

Side by Side Diff: src/ic/x64/ic-x64.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/s390/ic-s390.cc ('k') | src/ic/x87/ic-x87.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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 Label array, extra, check_if_double_array, maybe_name_key, miss; 512 Label array, extra, check_if_double_array, maybe_name_key, miss;
513 Register receiver = StoreDescriptor::ReceiverRegister(); 513 Register receiver = StoreDescriptor::ReceiverRegister();
514 Register key = StoreDescriptor::NameRegister(); 514 Register key = StoreDescriptor::NameRegister();
515 DCHECK(receiver.is(rdx)); 515 DCHECK(receiver.is(rdx));
516 DCHECK(key.is(rcx)); 516 DCHECK(key.is(rcx));
517 517
518 // Check that the object isn't a smi. 518 // Check that the object isn't a smi.
519 __ JumpIfSmi(receiver, &slow_with_tagged_index); 519 __ JumpIfSmi(receiver, &slow_with_tagged_index);
520 // Get the map from the receiver. 520 // Get the map from the receiver.
521 __ movp(r9, FieldOperand(receiver, HeapObject::kMapOffset)); 521 __ movp(r9, FieldOperand(receiver, HeapObject::kMapOffset));
522 // Check that the receiver does not require access checks and is not observed. 522 // Check that the receiver does not require access checks.
523 // The generic stub does not perform map checks or handle observed objects. 523 // The generic stub does not perform map checks.
524 __ testb(FieldOperand(r9, Map::kBitFieldOffset), 524 __ testb(FieldOperand(r9, Map::kBitFieldOffset),
525 Immediate(1 << Map::kIsAccessCheckNeeded | 1 << Map::kIsObserved)); 525 Immediate(1 << Map::kIsAccessCheckNeeded));
526 __ j(not_zero, &slow_with_tagged_index); 526 __ j(not_zero, &slow_with_tagged_index);
527 // Check that the key is a smi. 527 // Check that the key is a smi.
528 __ JumpIfNotSmi(key, &maybe_name_key); 528 __ JumpIfNotSmi(key, &maybe_name_key);
529 __ SmiToInteger32(key, key); 529 __ SmiToInteger32(key, key);
530 530
531 __ CmpInstanceType(r9, JS_ARRAY_TYPE); 531 __ CmpInstanceType(r9, JS_ARRAY_TYPE);
532 __ j(equal, &array); 532 __ j(equal, &array);
533 // Check that the object is some kind of JS object EXCEPT JS Value type. In 533 // Check that the object is some kind of JS object EXCEPT JS Value type. In
534 // the case that the object is a value-wrapper object, we enter the runtime 534 // the case that the object is a value-wrapper object, we enter the runtime
535 // system to make sure that indexing into string objects works as intended. 535 // system to make sure that indexing into string objects works as intended.
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 Condition cc = 845 Condition cc =
846 (check == ENABLE_INLINED_SMI_CHECK) 846 (check == ENABLE_INLINED_SMI_CHECK)
847 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 847 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
848 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 848 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
849 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 849 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
850 } 850 }
851 } // namespace internal 851 } // namespace internal
852 } // namespace v8 852 } // namespace v8
853 853
854 #endif // V8_TARGET_ARCH_X64 854 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ic/s390/ic-s390.cc ('k') | src/ic/x87/ic-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698