| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 JS_ENTRY_HANDLER | 60 JS_ENTRY_HANDLER |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 | 63 |
| 64 // MacroAssembler implements a collection of frequently used macros. | 64 // MacroAssembler implements a collection of frequently used macros. |
| 65 class MacroAssembler: public Assembler { | 65 class MacroAssembler: public Assembler { |
| 66 public: | 66 public: |
| 67 MacroAssembler(void* buffer, int size); | 67 MacroAssembler(void* buffer, int size); |
| 68 | 68 |
| 69 // --------------------------------------------------------------------------- | 69 // --------------------------------------------------------------------------- |
| 70 // x64 Implementation Support |
| 71 |
| 72 // Test the MacroAssembler by constructing and calling a simple JSFunction. |
| 73 // Cannot be done using API because this must be done in the middle of the |
| 74 // bootstrapping process. |
| 75 // TODO(X64): Remove once we can get through the bootstrapping process. |
| 76 |
| 77 static void ConstructAndTestJSFunction(); |
| 78 |
| 79 // --------------------------------------------------------------------------- |
| 70 // GC Support | 80 // GC Support |
| 71 | 81 |
| 72 // Set the remembered set bit for [object+offset]. | 82 // Set the remembered set bit for [object+offset]. |
| 73 // object is the object being stored into, value is the object being stored. | 83 // object is the object being stored into, value is the object being stored. |
| 74 // If offset is zero, then the scratch register contains the array index into | 84 // If offset is zero, then the scratch register contains the array index into |
| 75 // the elements array represented as a Smi. | 85 // the elements array represented as a Smi. |
| 76 // All registers are clobbered by the operation. | 86 // All registers are clobbered by the operation. |
| 77 void RecordWrite(Register object, | 87 void RecordWrite(Register object, |
| 78 int offset, | 88 int offset, |
| 79 Register value, | 89 Register value, |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 } \ | 386 } \ |
| 377 masm-> | 387 masm-> |
| 378 #else | 388 #else |
| 379 #define ACCESS_MASM(masm) masm-> | 389 #define ACCESS_MASM(masm) masm-> |
| 380 #endif | 390 #endif |
| 381 | 391 |
| 382 | 392 |
| 383 } } // namespace v8::internal | 393 } } // namespace v8::internal |
| 384 | 394 |
| 385 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 395 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |