| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 323   void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | 323   void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | 
| 324 | 324 | 
| 325   // --------------------------------------------------------------------------- | 325   // --------------------------------------------------------------------------- | 
| 326   // JavaScript invokes | 326   // JavaScript invokes | 
| 327 | 327 | 
| 328   // Removes current frame and its arguments from the stack preserving | 328   // Removes current frame and its arguments from the stack preserving | 
| 329   // the arguments and a return address pushed to the stack for the next call. | 329   // the arguments and a return address pushed to the stack for the next call. | 
| 330   // |ra_state| defines whether return address is already pushed to stack or | 330   // |ra_state| defines whether return address is already pushed to stack or | 
| 331   // not. Both |callee_args_count| and |caller_args_count_reg| do not include | 331   // not. Both |callee_args_count| and |caller_args_count_reg| do not include | 
| 332   // receiver. |callee_args_count| is not modified, |caller_args_count_reg| | 332   // receiver. |callee_args_count| is not modified, |caller_args_count_reg| | 
| 333   // is trashed. | 333   // is trashed. |number_of_temp_values_after_return_address| specifies | 
|  | 334   // the number of words pushed to the stack after the return address. This is | 
|  | 335   // to allow "allocation" of scratch registers that this function requires | 
|  | 336   // by saving their values on the stack. | 
| 334   void PrepareForTailCall(const ParameterCount& callee_args_count, | 337   void PrepareForTailCall(const ParameterCount& callee_args_count, | 
| 335                           Register caller_args_count_reg, Register scratch0, | 338                           Register caller_args_count_reg, Register scratch0, | 
| 336                           Register scratch1, ReturnAddressState ra_state); | 339                           Register scratch1, ReturnAddressState ra_state, | 
|  | 340                           int number_of_temp_values_after_return_address); | 
| 337 | 341 | 
| 338   // Invoke the JavaScript function code by either calling or jumping. | 342   // Invoke the JavaScript function code by either calling or jumping. | 
| 339 | 343 | 
| 340   void InvokeFunctionCode(Register function, Register new_target, | 344   void InvokeFunctionCode(Register function, Register new_target, | 
| 341                           const ParameterCount& expected, | 345                           const ParameterCount& expected, | 
| 342                           const ParameterCount& actual, InvokeFlag flag, | 346                           const ParameterCount& actual, InvokeFlag flag, | 
| 343                           const CallWrapper& call_wrapper); | 347                           const CallWrapper& call_wrapper); | 
| 344 | 348 | 
| 345   void FloodFunctionIfStepping(Register fun, Register new_target, | 349   void FloodFunctionIfStepping(Register fun, Register new_target, | 
| 346                                const ParameterCount& expected, | 350                                const ParameterCount& expected, | 
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1035   }                                                                       \ | 1039   }                                                                       \ | 
| 1036   masm-> | 1040   masm-> | 
| 1037 #else | 1041 #else | 
| 1038 #define ACCESS_MASM(masm) masm-> | 1042 #define ACCESS_MASM(masm) masm-> | 
| 1039 #endif | 1043 #endif | 
| 1040 | 1044 | 
| 1041 }  // namespace internal | 1045 }  // namespace internal | 
| 1042 }  // namespace v8 | 1046 }  // namespace v8 | 
| 1043 | 1047 | 
| 1044 #endif  // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1048 #endif  // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 
| OLD | NEW | 
|---|