| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 void LeaveExitFrame(bool save_doubles); | 232 void LeaveExitFrame(bool save_doubles); |
| 233 | 233 |
| 234 // Leave the current exit frame. Expects the return value in | 234 // Leave the current exit frame. Expects the return value in |
| 235 // register eax (untouched). | 235 // register eax (untouched). |
| 236 void LeaveApiExitFrame(); | 236 void LeaveApiExitFrame(); |
| 237 | 237 |
| 238 // Find the function context up the context chain. | 238 // Find the function context up the context chain. |
| 239 void LoadContext(Register dst, int context_chain_length); | 239 void LoadContext(Register dst, int context_chain_length); |
| 240 | 240 |
| 241 // Conditionally load the cached Array transitioned map of type | 241 // Conditionally load the cached Array transitioned map of type |
| 242 // transitioned_kind from the native context if the map in register | 242 // transitioned_kind from the global context if the map in register |
| 243 // map_in_out is the cached Array map in the native context of | 243 // map_in_out is the cached Array map in the global context of |
| 244 // expected_kind. | 244 // expected_kind. |
| 245 void LoadTransitionedArrayMapConditional( | 245 void LoadTransitionedArrayMapConditional( |
| 246 ElementsKind expected_kind, | 246 ElementsKind expected_kind, |
| 247 ElementsKind transitioned_kind, | 247 ElementsKind transitioned_kind, |
| 248 Register map_in_out, | 248 Register map_in_out, |
| 249 Register scratch, | 249 Register scratch, |
| 250 Label* no_map_match); | 250 Label* no_map_match); |
| 251 | 251 |
| 252 // Load the initial map for new Arrays from a JSFunction. | 252 // Load the initial map for new Arrays from a JSFunction. |
| 253 void LoadInitialArrayMap(Register function_in, | 253 void LoadInitialArrayMap(Register function_in, |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 return Operand(object, index, scale, offset - kHeapObjectTag); | 954 return Operand(object, index, scale, offset - kHeapObjectTag); |
| 955 } | 955 } |
| 956 | 956 |
| 957 | 957 |
| 958 inline Operand ContextOperand(Register context, int index) { | 958 inline Operand ContextOperand(Register context, int index) { |
| 959 return Operand(context, Context::SlotOffset(index)); | 959 return Operand(context, Context::SlotOffset(index)); |
| 960 } | 960 } |
| 961 | 961 |
| 962 | 962 |
| 963 inline Operand GlobalObjectOperand() { | 963 inline Operand GlobalObjectOperand() { |
| 964 return ContextOperand(esi, Context::GLOBAL_OBJECT_INDEX); | 964 return ContextOperand(esi, Context::GLOBAL_INDEX); |
| 965 } | 965 } |
| 966 | 966 |
| 967 | 967 |
| 968 // Generates an Operand for saving parameters after PrepareCallApiFunction. | 968 // Generates an Operand for saving parameters after PrepareCallApiFunction. |
| 969 Operand ApiParameterOperand(int index); | 969 Operand ApiParameterOperand(int index); |
| 970 | 970 |
| 971 | 971 |
| 972 #ifdef GENERATED_CODE_COVERAGE | 972 #ifdef GENERATED_CODE_COVERAGE |
| 973 extern void LogGeneratedCodeCoverage(const char* file_line); | 973 extern void LogGeneratedCodeCoverage(const char* file_line); |
| 974 #define CODE_COVERAGE_STRINGIFY(x) #x | 974 #define CODE_COVERAGE_STRINGIFY(x) #x |
| (...skipping 12 matching lines...) Expand all Loading... |
| 987 } \ | 987 } \ |
| 988 masm-> | 988 masm-> |
| 989 #else | 989 #else |
| 990 #define ACCESS_MASM(masm) masm-> | 990 #define ACCESS_MASM(masm) masm-> |
| 991 #endif | 991 #endif |
| 992 | 992 |
| 993 | 993 |
| 994 } } // namespace v8::internal | 994 } } // namespace v8::internal |
| 995 | 995 |
| 996 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 996 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |