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

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 2424433002: [ic] Delete old KeyedLoadIC code (Closed)
Patch Set: fix failing test Created 4 years, 2 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/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 void SafeMove(Register dst, const Immediate& x); 384 void SafeMove(Register dst, const Immediate& x);
385 void SafePush(const Immediate& x); 385 void SafePush(const Immediate& x);
386 386
387 // Compare object type for heap object. 387 // Compare object type for heap object.
388 // Incoming register is heap_object and outgoing register is map. 388 // Incoming register is heap_object and outgoing register is map.
389 void CmpObjectType(Register heap_object, InstanceType type, Register map); 389 void CmpObjectType(Register heap_object, InstanceType type, Register map);
390 390
391 // Compare instance type for map. 391 // Compare instance type for map.
392 void CmpInstanceType(Register map, InstanceType type); 392 void CmpInstanceType(Register map, InstanceType type);
393 393
394 // Check if a map for a JSObject indicates that the object has fast elements.
395 // Jump to the specified label if it does not.
396 void CheckFastElements(Register map, Label* fail,
397 Label::Distance distance = Label::kFar);
398
399 // Check if a map for a JSObject indicates that the object can have both smi 394 // Check if a map for a JSObject indicates that the object can have both smi
400 // and HeapObject elements. Jump to the specified label if it does not. 395 // and HeapObject elements. Jump to the specified label if it does not.
401 void CheckFastObjectElements(Register map, Label* fail, 396 void CheckFastObjectElements(Register map, Label* fail,
402 Label::Distance distance = Label::kFar); 397 Label::Distance distance = Label::kFar);
403 398
404 // Check if a map for a JSObject indicates that the object has fast smi only 399 // Check if a map for a JSObject indicates that the object has fast smi only
405 // elements. Jump to the specified label if it does not. 400 // elements. Jump to the specified label if it does not.
406 void CheckFastSmiElements(Register map, Label* fail, 401 void CheckFastSmiElements(Register map, Label* fail,
407 Label::Distance distance = Label::kFar); 402 Label::Distance distance = Label::kFar);
408 403
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 // Inline caching support 600 // Inline caching support
606 601
607 // Generate code for checking access rights - used for security checks 602 // Generate code for checking access rights - used for security checks
608 // on access to global objects across environments. The holder register 603 // on access to global objects across environments. The holder register
609 // is left untouched, but the scratch register is clobbered. 604 // is left untouched, but the scratch register is clobbered.
610 void CheckAccessGlobalProxy(Register holder_reg, Register scratch1, 605 void CheckAccessGlobalProxy(Register holder_reg, Register scratch1,
611 Register scratch2, Label* miss); 606 Register scratch2, Label* miss);
612 607
613 void GetNumberHash(Register r0, Register scratch); 608 void GetNumberHash(Register r0, Register scratch);
614 609
615 void LoadFromNumberDictionary(Label* miss, Register elements, Register key,
616 Register r0, Register r1, Register r2,
617 Register result);
618
619 // --------------------------------------------------------------------------- 610 // ---------------------------------------------------------------------------
620 // Allocation support 611 // Allocation support
621 612
622 // Allocate an object in new space or old space. If the given space 613 // Allocate an object in new space or old space. If the given space
623 // is exhausted control continues at the gc_required label. The allocated 614 // is exhausted control continues at the gc_required label. The allocated
624 // object is returned in result and end of the new object is returned in 615 // object is returned in result and end of the new object is returned in
625 // result_end. The register scratch can be passed as no_reg in which case 616 // result_end. The register scratch can be passed as no_reg in which case
626 // an additional object reference will be added to the reloc info. The 617 // an additional object reference will be added to the reloc info. The
627 // returned pointers in result and result_end have not yet been tagged as 618 // returned pointers in result and result_end have not yet been tagged as
628 // heap objects. If result_contains_top_on_entry is true the content of 619 // heap objects. If result_contains_top_on_entry is true the content of
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 inline Operand NativeContextOperand() { 1068 inline Operand NativeContextOperand() {
1078 return ContextOperand(esi, Context::NATIVE_CONTEXT_INDEX); 1069 return ContextOperand(esi, Context::NATIVE_CONTEXT_INDEX);
1079 } 1070 }
1080 1071
1081 #define ACCESS_MASM(masm) masm-> 1072 #define ACCESS_MASM(masm) masm->
1082 1073
1083 } // namespace internal 1074 } // namespace internal
1084 } // namespace v8 1075 } // namespace v8
1085 1076
1086 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1077 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698