| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 void Drop(int count); | 156 void Drop(int count); |
| 157 | 157 |
| 158 // Drop one element. | 158 // Drop one element. |
| 159 void Drop(); | 159 void Drop(); |
| 160 | 160 |
| 161 // Pop and save an element from the top of the expression stack. May emit | 161 // Pop and save an element from the top of the expression stack. May emit |
| 162 // code. | 162 // code. |
| 163 void Pop(Register reg); | 163 void Pop(Register reg); |
| 164 void Pop(Operand operand); | 164 void Pop(Operand operand); |
| 165 | 165 |
| 166 // Push an element on top of the expression stack. May emit code. | 166 // Push an element on top of the expression stack and emit a corresponding |
| 167 void Push(Register reg); | 167 // push instruction. |
| 168 void Push(Operand operand); | 168 void EmitPush(Register reg); |
| 169 void Push(Immediate immediate); | 169 void EmitPush(Operand operand); |
| 170 void EmitPush(Immediate immediate); |
| 170 | 171 |
| 171 private: | 172 private: |
| 172 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; | 173 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; |
| 173 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset; | 174 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset; |
| 174 static const int kContextOffset = StandardFrameConstants::kContextOffset; | 175 static const int kContextOffset = StandardFrameConstants::kContextOffset; |
| 175 | 176 |
| 176 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize; | 177 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize; |
| 177 | 178 |
| 178 MacroAssembler* masm_; | 179 MacroAssembler* masm_; |
| 179 | 180 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 194 int local0_index() const { return param0_index() + parameter_count_ + 4; } | 195 int local0_index() const { return param0_index() + parameter_count_ + 4; } |
| 195 | 196 |
| 196 // The index of the base of the expression stack. | 197 // The index of the base of the expression stack. |
| 197 int expression_base_index() const { return local0_index() + local_count_; } | 198 int expression_base_index() const { return local0_index() + local_count_; } |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 | 201 |
| 201 } } // namespace v8::internal | 202 } } // namespace v8::internal |
| 202 | 203 |
| 203 #endif // V8_VIRTUAL_FRAME_IA32_H_ | 204 #endif // V8_VIRTUAL_FRAME_IA32_H_ |
| OLD | NEW |