| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 if (object->IsHeapObject()) { | 244 if (object->IsHeapObject()) { |
| 245 LoadHeapObject(result, Handle<HeapObject>::cast(object)); | 245 LoadHeapObject(result, Handle<HeapObject>::cast(object)); |
| 246 } else { | 246 } else { |
| 247 Set(result, Immediate(object)); | 247 Set(result, Immediate(object)); |
| 248 } | 248 } |
| 249 } | 249 } |
| 250 | 250 |
| 251 // --------------------------------------------------------------------------- | 251 // --------------------------------------------------------------------------- |
| 252 // JavaScript invokes | 252 // JavaScript invokes |
| 253 | 253 |
| 254 // Setup call kind marking in ecx. The method takes ecx as an | 254 // Set up call kind marking in ecx. The method takes ecx as an |
| 255 // explicit first parameter to make the code more readable at the | 255 // explicit first parameter to make the code more readable at the |
| 256 // call sites. | 256 // call sites. |
| 257 void SetCallKind(Register dst, CallKind kind); | 257 void SetCallKind(Register dst, CallKind kind); |
| 258 | 258 |
| 259 // Invoke the JavaScript function code by either calling or jumping. | 259 // Invoke the JavaScript function code by either calling or jumping. |
| 260 void InvokeCode(Register code, | 260 void InvokeCode(Register code, |
| 261 const ParameterCount& expected, | 261 const ParameterCount& expected, |
| 262 const ParameterCount& actual, | 262 const ParameterCount& actual, |
| 263 InvokeFlag flag, | 263 InvokeFlag flag, |
| 264 const CallWrapper& call_wrapper, | 264 const CallWrapper& call_wrapper, |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 949 } \ | 949 } \ |
| 950 masm-> | 950 masm-> |
| 951 #else | 951 #else |
| 952 #define ACCESS_MASM(masm) masm-> | 952 #define ACCESS_MASM(masm) masm-> |
| 953 #endif | 953 #endif |
| 954 | 954 |
| 955 | 955 |
| 956 } } // namespace v8::internal | 956 } } // namespace v8::internal |
| 957 | 957 |
| 958 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 958 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |