| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|    72  |    72  | 
|    73 struct SmiIndex { |    73 struct SmiIndex { | 
|    74   SmiIndex(Register index_register, ScaleFactor scale) |    74   SmiIndex(Register index_register, ScaleFactor scale) | 
|    75       : reg(index_register), |    75       : reg(index_register), | 
|    76         scale(scale) {} |    76         scale(scale) {} | 
|    77   Register reg; |    77   Register reg; | 
|    78   ScaleFactor scale; |    78   ScaleFactor scale; | 
|    79 }; |    79 }; | 
|    80  |    80  | 
|    81  |    81  | 
 |    82 void IterateCompiledFrame(const StandardFrame* frame, ObjectVisitor* v); | 
 |    83  | 
 |    84  | 
|    82 // MacroAssembler implements a collection of frequently used macros. |    85 // MacroAssembler implements a collection of frequently used macros. | 
|    83 class MacroAssembler: public Assembler { |    86 class MacroAssembler: public Assembler { | 
|    84  public: |    87  public: | 
|    85   // The isolate parameter can be NULL if the macro assembler should |    88   // The isolate parameter can be NULL if the macro assembler should | 
|    86   // not use isolate-dependent functionality. In this case, it's the |    89   // not use isolate-dependent functionality. In this case, it's the | 
|    87   // responsibility of the caller to never invoke such function on the |    90   // responsibility of the caller to never invoke such function on the | 
|    88   // macro assembler. |    91   // macro assembler. | 
|    89   MacroAssembler(Isolate* isolate, void* buffer, int size); |    92   MacroAssembler(Isolate* isolate, void* buffer, int size); | 
|    90  |    93  | 
|    91   // Prevent the use of the RootArray during the lifetime of this |    94   // Prevent the use of the RootArray during the lifetime of this | 
| (...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1409   void JumpToHandlerEntry(); |  1412   void JumpToHandlerEntry(); | 
|  1410  |  1413  | 
|  1411   // Compute memory operands for safepoint stack slots. |  1414   // Compute memory operands for safepoint stack slots. | 
|  1412   Operand SafepointRegisterSlot(Register reg); |  1415   Operand SafepointRegisterSlot(Register reg); | 
|  1413   static int SafepointRegisterStackIndex(int reg_code) { |  1416   static int SafepointRegisterStackIndex(int reg_code) { | 
|  1414     return kNumSafepointRegisters - kSafepointPushRegisterIndices[reg_code] - 1; |  1417     return kNumSafepointRegisters - kSafepointPushRegisterIndices[reg_code] - 1; | 
|  1415   } |  1418   } | 
|  1416  |  1419  | 
|  1417   // Needs access to SafepointRegisterStackIndex for compiled frame |  1420   // Needs access to SafepointRegisterStackIndex for compiled frame | 
|  1418   // traversal. |  1421   // traversal. | 
|  1419   friend class CompiledFrame; |  1422   friend void IterateCompiledFrame(const StandardFrame* frame, | 
 |  1423                                    ObjectVisitor* v); | 
|  1420 }; |  1424 }; | 
|  1421  |  1425  | 
|  1422  |  1426  | 
|  1423 // The code patcher is used to patch (typically) small parts of code e.g. for |  1427 // The code patcher is used to patch (typically) small parts of code e.g. for | 
|  1424 // debugging and other types of instrumentation. When using the code patcher |  1428 // debugging and other types of instrumentation. When using the code patcher | 
|  1425 // the exact number of bytes specified must be emitted. Is not legal to emit |  1429 // the exact number of bytes specified must be emitted. Is not legal to emit | 
|  1426 // relocation information. If any of these constraints are violated it causes |  1430 // relocation information. If any of these constraints are violated it causes | 
|  1427 // an assertion. |  1431 // an assertion. | 
|  1428 class CodePatcher { |  1432 class CodePatcher { | 
|  1429  public: |  1433  public: | 
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1497     masm->popfd();                                                        \ |  1501     masm->popfd();                                                        \ | 
|  1498   }                                                                       \ |  1502   }                                                                       \ | 
|  1499   masm-> |  1503   masm-> | 
|  1500 #else |  1504 #else | 
|  1501 #define ACCESS_MASM(masm) masm-> |  1505 #define ACCESS_MASM(masm) masm-> | 
|  1502 #endif |  1506 #endif | 
|  1503  |  1507  | 
|  1504 } }  // namespace v8::internal |  1508 } }  // namespace v8::internal | 
|  1505  |  1509  | 
|  1506 #endif  // V8_X64_MACRO_ASSEMBLER_X64_H_ |  1510 #endif  // V8_X64_MACRO_ASSEMBLER_X64_H_ | 
| OLD | NEW |