OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 // of the frame, leaving the previous top-of-frame value on top of | 324 // of the frame, leaving the previous top-of-frame value on top of |
325 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). | 325 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). |
326 void Nip(int num_dropped); | 326 void Nip(int num_dropped); |
327 | 327 |
328 private: | 328 private: |
329 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; | 329 static const int kLocal0Offset = JavaScriptFrameConstants::kLocal0Offset; |
330 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset; | 330 static const int kFunctionOffset = JavaScriptFrameConstants::kFunctionOffset; |
331 static const int kContextOffset = StandardFrameConstants::kContextOffset; | 331 static const int kContextOffset = StandardFrameConstants::kContextOffset; |
332 | 332 |
333 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize; | 333 static const int kHandlerSize = StackHandlerConstants::kSize / kPointerSize; |
| 334 static const int kPreallocatedElements = 5 + 8; // 8 expression stack slots. |
334 | 335 |
335 CodeGenerator* cgen_; | 336 CodeGenerator* cgen_; |
336 MacroAssembler* masm_; | 337 MacroAssembler* masm_; |
337 | 338 |
338 List<FrameElement> elements_; | 339 List<FrameElement> elements_; |
339 | 340 |
340 // The number of frame-allocated locals and parameters respectively. | 341 // The number of frame-allocated locals and parameters respectively. |
341 int parameter_count_; | 342 int parameter_count_; |
342 int local_count_; | 343 int local_count_; |
343 | 344 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 | 472 |
472 bool Equals(VirtualFrame* other); | 473 bool Equals(VirtualFrame* other); |
473 | 474 |
474 friend class JumpTarget; | 475 friend class JumpTarget; |
475 }; | 476 }; |
476 | 477 |
477 | 478 |
478 } } // namespace v8::internal | 479 } } // namespace v8::internal |
479 | 480 |
480 #endif // V8_VIRTUAL_FRAME_ARM_H_ | 481 #endif // V8_VIRTUAL_FRAME_ARM_H_ |
OLD | NEW |