| 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 943 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_INDEX); | 964 return ContextOperand(esi, Context::GLOBAL_OBJECT_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 |