Chromium Code Reviews| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 // Give alias names to registers | 45 // Give alias names to registers |
| 46 const Register cp = { 8 }; // JavaScript context pointer | 46 const Register cp = { 8 }; // JavaScript context pointer |
| 47 const Register roots = { 10 }; // Roots array pointer. | 47 const Register roots = { 10 }; // Roots array pointer. |
| 48 | 48 |
| 49 enum InvokeJSFlags { | 49 enum InvokeJSFlags { |
| 50 CALL_JS, | 50 CALL_JS, |
| 51 JUMP_JS | 51 JUMP_JS |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 | 54 |
| 55 // Flags used for the AllocateInNewSpace functions. | |
| 56 enum AllocationFlags { | |
| 57 // No special flags. | |
| 58 NO_ALLOCATION_FLAGS = 0, | |
| 59 // Return the pointer to the allocated already tagged as a heap object. | |
| 60 TAG_OBJECT = 1 << 0, | |
| 61 // The content of the result register already contains the allocation top in | |
| 62 // new space. | |
| 63 RESULT_CONTAINS_TOP = 1 << 1, | |
| 64 SIZE_IN_WORDS = 1 << 2 | |
|
Vyacheslav Egorov (Chromium)
2010/05/07 13:18:26
Comment about SIZE_IN_WORDS meaning for the sake o
| |
| 65 }; | |
| 66 | |
| 67 | |
| 55 // MacroAssembler implements a collection of frequently used macros. | 68 // MacroAssembler implements a collection of frequently used macros. |
| 56 class MacroAssembler: public Assembler { | 69 class MacroAssembler: public Assembler { |
| 57 public: | 70 public: |
| 58 MacroAssembler(void* buffer, int size); | 71 MacroAssembler(void* buffer, int size); |
| 59 | 72 |
| 60 // Jump, Call, and Ret pseudo instructions implementing inter-working. | 73 // Jump, Call, and Ret pseudo instructions implementing inter-working. |
| 61 void Jump(Register target, Condition cond = al); | 74 void Jump(Register target, Condition cond = al); |
| 62 void Jump(byte* target, RelocInfo::Mode rmode, Condition cond = al); | 75 void Jump(byte* target, RelocInfo::Mode rmode, Condition cond = al); |
| 63 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); | 76 void Jump(Handle<Code> code, RelocInfo::Mode rmode, Condition cond = al); |
| 64 void Call(Register target, Condition cond = al); | 77 void Call(Register target, Condition cond = al); |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 630 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 643 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 631 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 644 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 632 #else | 645 #else |
| 633 #define ACCESS_MASM(masm) masm-> | 646 #define ACCESS_MASM(masm) masm-> |
| 634 #endif | 647 #endif |
| 635 | 648 |
| 636 | 649 |
| 637 } } // namespace v8::internal | 650 } } // namespace v8::internal |
| 638 | 651 |
| 639 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 652 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |