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_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 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg, | 952 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg, |
953 &no_memento_found); | 953 &no_memento_found); |
954 j(equal, memento_found); | 954 j(equal, memento_found); |
955 bind(&no_memento_found); | 955 bind(&no_memento_found); |
956 } | 956 } |
957 | 957 |
958 // Jumps to found label if a prototype map has dictionary elements. | 958 // Jumps to found label if a prototype map has dictionary elements. |
959 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, | 959 void JumpIfDictionaryInPrototypeChain(Register object, Register scratch0, |
960 Register scratch1, Label* found); | 960 Register scratch1, Label* found); |
961 | 961 |
| 962 // OSR needs to adjust locals on the stack down one word over the vector. |
| 963 void OSRDropVectorFromStack(int unoptimized_slot_count, Register scratch0, |
| 964 Register scratch1); |
| 965 |
962 private: | 966 private: |
963 bool generating_stub_; | 967 bool generating_stub_; |
964 bool has_frame_; | 968 bool has_frame_; |
965 // This handle will be patched with the code object on installation. | 969 // This handle will be patched with the code object on installation. |
966 Handle<Object> code_object_; | 970 Handle<Object> code_object_; |
967 | 971 |
968 // Helper functions for generating invokes. | 972 // Helper functions for generating invokes. |
969 void InvokePrologue(const ParameterCount& expected, | 973 void InvokePrologue(const ParameterCount& expected, |
970 const ParameterCount& actual, | 974 const ParameterCount& actual, |
971 Handle<Code> code_constant, | 975 Handle<Code> code_constant, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 } \ | 1097 } \ |
1094 masm-> | 1098 masm-> |
1095 #else | 1099 #else |
1096 #define ACCESS_MASM(masm) masm-> | 1100 #define ACCESS_MASM(masm) masm-> |
1097 #endif | 1101 #endif |
1098 | 1102 |
1099 | 1103 |
1100 } } // namespace v8::internal | 1104 } } // namespace v8::internal |
1101 | 1105 |
1102 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1106 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |