OLD | NEW |
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_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 void SafeMove(Register dst, const Immediate& x); | 374 void SafeMove(Register dst, const Immediate& x); |
375 void SafePush(const Immediate& x); | 375 void SafePush(const Immediate& x); |
376 | 376 |
377 // Compare object type for heap object. | 377 // Compare object type for heap object. |
378 // Incoming register is heap_object and outgoing register is map. | 378 // Incoming register is heap_object and outgoing register is map. |
379 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 379 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
380 | 380 |
381 // Compare instance type for map. | 381 // Compare instance type for map. |
382 void CmpInstanceType(Register map, InstanceType type); | 382 void CmpInstanceType(Register map, InstanceType type); |
383 | 383 |
384 // Check if a map for a JSObject indicates that the object has fast elements. | |
385 // Jump to the specified label if it does not. | |
386 void CheckFastElements(Register map, Label* fail, | |
387 Label::Distance distance = Label::kFar); | |
388 | |
389 // Check if a map for a JSObject indicates that the object can have both smi | 384 // Check if a map for a JSObject indicates that the object can have both smi |
390 // and HeapObject elements. Jump to the specified label if it does not. | 385 // and HeapObject elements. Jump to the specified label if it does not. |
391 void CheckFastObjectElements(Register map, Label* fail, | 386 void CheckFastObjectElements(Register map, Label* fail, |
392 Label::Distance distance = Label::kFar); | 387 Label::Distance distance = Label::kFar); |
393 | 388 |
394 // Check if a map for a JSObject indicates that the object has fast smi only | 389 // Check if a map for a JSObject indicates that the object has fast smi only |
395 // elements. Jump to the specified label if it does not. | 390 // elements. Jump to the specified label if it does not. |
396 void CheckFastSmiElements(Register map, Label* fail, | 391 void CheckFastSmiElements(Register map, Label* fail, |
397 Label::Distance distance = Label::kFar); | 392 Label::Distance distance = Label::kFar); |
398 | 393 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 // Inline caching support | 589 // Inline caching support |
595 | 590 |
596 // Generate code for checking access rights - used for security checks | 591 // Generate code for checking access rights - used for security checks |
597 // on access to global objects across environments. The holder register | 592 // on access to global objects across environments. The holder register |
598 // is left untouched, but the scratch register is clobbered. | 593 // is left untouched, but the scratch register is clobbered. |
599 void CheckAccessGlobalProxy(Register holder_reg, Register scratch1, | 594 void CheckAccessGlobalProxy(Register holder_reg, Register scratch1, |
600 Register scratch2, Label* miss); | 595 Register scratch2, Label* miss); |
601 | 596 |
602 void GetNumberHash(Register r0, Register scratch); | 597 void GetNumberHash(Register r0, Register scratch); |
603 | 598 |
604 void LoadFromNumberDictionary(Label* miss, Register elements, Register key, | |
605 Register r0, Register r1, Register r2, | |
606 Register result); | |
607 | |
608 // --------------------------------------------------------------------------- | 599 // --------------------------------------------------------------------------- |
609 // Allocation support | 600 // Allocation support |
610 | 601 |
611 // Allocate an object in new space or old space. If the given space | 602 // Allocate an object in new space or old space. If the given space |
612 // is exhausted control continues at the gc_required label. The allocated | 603 // is exhausted control continues at the gc_required label. The allocated |
613 // object is returned in result and end of the new object is returned in | 604 // object is returned in result and end of the new object is returned in |
614 // result_end. The register scratch can be passed as no_reg in which case | 605 // result_end. The register scratch can be passed as no_reg in which case |
615 // an additional object reference will be added to the reloc info. The | 606 // an additional object reference will be added to the reloc info. The |
616 // returned pointers in result and result_end have not yet been tagged as | 607 // returned pointers in result and result_end have not yet been tagged as |
617 // heap objects. If result_contains_top_on_entry is true the content of | 608 // heap objects. If result_contains_top_on_entry is true the content of |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 inline Operand NativeContextOperand() { | 1047 inline Operand NativeContextOperand() { |
1057 return ContextOperand(esi, Context::NATIVE_CONTEXT_INDEX); | 1048 return ContextOperand(esi, Context::NATIVE_CONTEXT_INDEX); |
1058 } | 1049 } |
1059 | 1050 |
1060 #define ACCESS_MASM(masm) masm-> | 1051 #define ACCESS_MASM(masm) masm-> |
1061 | 1052 |
1062 } // namespace internal | 1053 } // namespace internal |
1063 } // namespace v8 | 1054 } // namespace v8 |
1064 | 1055 |
1065 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1056 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |