OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 } | 501 } |
502 | 502 |
503 void SetFrameSlot(unsigned offset, intptr_t value) { | 503 void SetFrameSlot(unsigned offset, intptr_t value) { |
504 *GetFrameSlotPointer(offset) = value; | 504 *GetFrameSlotPointer(offset) = value; |
505 } | 505 } |
506 | 506 |
507 void SetCallerPc(unsigned offset, intptr_t value); | 507 void SetCallerPc(unsigned offset, intptr_t value); |
508 | 508 |
509 void SetCallerFp(unsigned offset, intptr_t value); | 509 void SetCallerFp(unsigned offset, intptr_t value); |
510 | 510 |
| 511 void SetCallerConstantPool(unsigned offset, intptr_t value); |
| 512 |
511 intptr_t GetRegister(unsigned n) const { | 513 intptr_t GetRegister(unsigned n) const { |
512 #if DEBUG | 514 #if DEBUG |
513 // This convoluted ASSERT is needed to work around a gcc problem that | 515 // This convoluted ASSERT is needed to work around a gcc problem that |
514 // improperly detects an array bounds overflow in optimized debug builds | 516 // improperly detects an array bounds overflow in optimized debug builds |
515 // when using a plain ASSERT. | 517 // when using a plain ASSERT. |
516 if (n >= ARRAY_SIZE(registers_)) { | 518 if (n >= ARRAY_SIZE(registers_)) { |
517 ASSERT(false); | 519 ASSERT(false); |
518 return 0; | 520 return 0; |
519 } | 521 } |
520 #endif | 522 #endif |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 Object** expression_stack_; | 991 Object** expression_stack_; |
990 int source_position_; | 992 int source_position_; |
991 | 993 |
992 friend class Deoptimizer; | 994 friend class Deoptimizer; |
993 }; | 995 }; |
994 #endif | 996 #endif |
995 | 997 |
996 } } // namespace v8::internal | 998 } } // namespace v8::internal |
997 | 999 |
998 #endif // V8_DEOPTIMIZER_H_ | 1000 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |