OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #include "assembler.h" | 31 #include "assembler.h" |
32 | 32 |
33 namespace v8 { | 33 namespace v8 { |
34 namespace internal { | 34 namespace internal { |
35 | 35 |
36 // Forward declaration. | 36 // Forward declaration. |
37 class JumpTarget; | 37 class JumpTarget; |
38 | 38 |
39 | 39 |
40 // Helper types to make flags easier to read at call sites. | |
41 enum InvokeFlag { | |
42 CALL_FUNCTION, | |
43 JUMP_FUNCTION | |
44 }; | |
45 | |
46 enum CodeLocation { | |
47 IN_JAVASCRIPT, | |
48 IN_JS_ENTRY, | |
49 IN_C_ENTRY | |
50 }; | |
51 | |
52 enum HandlerType { | |
53 TRY_CATCH_HANDLER, | |
54 TRY_FINALLY_HANDLER, | |
55 JS_ENTRY_HANDLER | |
56 }; | |
57 | |
58 | |
59 // Flags used for the AllocateObjectInNewSpace functions. | |
60 enum AllocationFlags { | |
61 // No special flags. | |
62 NO_ALLOCATION_FLAGS = 0, | |
63 // Return the pointer to the allocated already tagged as a heap object. | |
64 TAG_OBJECT = 1 << 0, | |
65 // The content of the result register already contains the allocation top in | |
66 // new space. | |
67 RESULT_CONTAINS_TOP = 1 << 1 | |
68 }; | |
69 | |
70 | |
71 // MacroAssembler implements a collection of frequently used macros. | 40 // MacroAssembler implements a collection of frequently used macros. |
72 class MacroAssembler: public Assembler { | 41 class MacroAssembler: public Assembler { |
73 public: | 42 public: |
74 MacroAssembler(void* buffer, int size); | 43 MacroAssembler(void* buffer, int size); |
75 | 44 |
76 // --------------------------------------------------------------------------- | 45 // --------------------------------------------------------------------------- |
77 // GC Support | 46 // GC Support |
78 | 47 |
79 // Set the remembered set bit for [object+offset]. | 48 // Set the remembered set bit for [object+offset]. |
80 // object is the object being stored into, value is the object being stored. | 49 // object is the object being stored into, value is the object being stored. |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 } \ | 392 } \ |
424 masm-> | 393 masm-> |
425 #else | 394 #else |
426 #define ACCESS_MASM(masm) masm-> | 395 #define ACCESS_MASM(masm) masm-> |
427 #endif | 396 #endif |
428 | 397 |
429 | 398 |
430 } } // namespace v8::internal | 399 } } // namespace v8::internal |
431 | 400 |
432 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 401 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |