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 // --------------------------------------------------------------------------- | |
80 // GC Support | 70 // GC Support |
81 | 71 |
82 // Set the remembered set bit for [object+offset]. | 72 // Set the remembered set bit for [object+offset]. |
83 // object is the object being stored into, value is the object being stored. | 73 // object is the object being stored into, value is the object being stored. |
84 // If offset is zero, then the scratch register contains the array index into | 74 // If offset is zero, then the scratch register contains the array index into |
85 // the elements array represented as a Smi. | 75 // the elements array represented as a Smi. |
86 // All registers are clobbered by the operation. | 76 // All registers are clobbered by the operation. |
87 void RecordWrite(Register object, | 77 void RecordWrite(Register object, |
88 int offset, | 78 int offset, |
89 Register value, | 79 Register value, |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 } \ | 396 } \ |
407 masm-> | 397 masm-> |
408 #else | 398 #else |
409 #define ACCESS_MASM(masm) masm-> | 399 #define ACCESS_MASM(masm) masm-> |
410 #endif | 400 #endif |
411 | 401 |
412 | 402 |
413 } } // namespace v8::internal | 403 } } // namespace v8::internal |
414 | 404 |
415 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 405 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |