OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 | 950 |
951 // Expects object in eax and returns map with validated enum cache | 951 // Expects object in eax and returns map with validated enum cache |
952 // in eax. Assumes that any other register can be used as a scratch. | 952 // in eax. Assumes that any other register can be used as a scratch. |
953 void CheckEnumCache(Label* call_runtime); | 953 void CheckEnumCache(Label* call_runtime); |
954 | 954 |
955 // AllocationMemento support. Arrays may have an associated | 955 // AllocationMemento support. Arrays may have an associated |
956 // AllocationMemento object that can be checked for in order to pretransition | 956 // AllocationMemento object that can be checked for in order to pretransition |
957 // to another type. | 957 // to another type. |
958 // On entry, receiver_reg should point to the array object. | 958 // On entry, receiver_reg should point to the array object. |
959 // scratch_reg gets clobbered. | 959 // scratch_reg gets clobbered. |
960 // If allocation info is present, conditional code is set to equal | 960 // If allocation info is present, conditional code is set to equal. |
961 void TestJSArrayForAllocationMemento(Register receiver_reg, | 961 void TestJSArrayForAllocationMemento(Register receiver_reg, |
962 Register scratch_reg); | 962 Register scratch_reg, |
| 963 Label* no_memento_found); |
| 964 |
| 965 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg, |
| 966 Register scratch_reg, |
| 967 Label* memento_found) { |
| 968 Label no_memento_found; |
| 969 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg, |
| 970 &no_memento_found); |
| 971 j(equal, memento_found); |
| 972 bind(&no_memento_found); |
| 973 } |
963 | 974 |
964 private: | 975 private: |
965 bool generating_stub_; | 976 bool generating_stub_; |
966 bool allow_stub_calls_; | 977 bool allow_stub_calls_; |
967 bool has_frame_; | 978 bool has_frame_; |
968 // This handle will be patched with the code object on installation. | 979 // This handle will be patched with the code object on installation. |
969 Handle<Object> code_object_; | 980 Handle<Object> code_object_; |
970 | 981 |
971 // Helper functions for generating invokes. | 982 // Helper functions for generating invokes. |
972 void InvokePrologue(const ParameterCount& expected, | 983 void InvokePrologue(const ParameterCount& expected, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1100 } \ | 1111 } \ |
1101 masm-> | 1112 masm-> |
1102 #else | 1113 #else |
1103 #define ACCESS_MASM(masm) masm-> | 1114 #define ACCESS_MASM(masm) masm-> |
1104 #endif | 1115 #endif |
1105 | 1116 |
1106 | 1117 |
1107 } } // namespace v8::internal | 1118 } } // namespace v8::internal |
1108 | 1119 |
1109 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1120 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |